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!)
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., orlibjpeg
, 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.:
stiv-jpeg IMG_20181230_144433.jpg 10 256