Skip to content

JPEG scaling (width) problem #4

@xparq

Description

@xparq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions