Skip to content

Creating compatible JPEG images (tip) #27

Description

@wdimmit

After a bit of trial and error, I've sorted out how to create readJPEG compatible JPEG images from the command line. Requires ImageMagick.

convert image.jpg -sampling-factor 1x1 -define jpeg:extent=5000b image_encoded.jpg

The key here is -sampling-factor 1x1 without it, the tool produces incompatible images (H2V2, I think). Also useful is -define jpeg:extent=5000b which adjusts the quality parameter as needed to cram the image into a limited file size.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions