radare / tiv

terminal image viewer
BSD 3-Clause "New" or "Revised" License
144 stars 15 forks source link

JPEG scaling (width) problem #4

Open xparq opened 5 years ago

xparq commented 5 years ago

Hi, (s)tiv is great fun, thanks guys! :)

Just FYI: stiv-jpeg seems to fail scaling some jpegs, though (despite that optimistic comment in the code ;) ), overflowing the specified width, sometimes quite a lot. (Changing the width does change the picture, but the result is incorrect. Some images can be contained, turning the width low enough, but some will overflow even when setting the width to 1. I have no idea about the JPEG fmt., or libjpeg, but my gut feeling is that the scaling may be more off with bigger images. Didn't really test, I know this is kinda POC code anyway. Cheers!)

E.g.:

image

stiv-jpeg IMG_20181230_144433.jpg 10 256

image

radare commented 4 years ago

just make the width of the terminal bigger