Skip to content

Creating compatible JPEG images (tip) #27

@wdimmit

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.

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