Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ that, use the command line option -ls:
$ jpeg -ls -c infile.ppm out.jpg

The "-c" command line switch is necessary to disable the color transformation
as JPEG LS typically encodes in RGB and not YCbCr space.
as JPEG LS typically encodes in RGB and not YCbCr space. This will introduce an
application data marker Adobe 14 to indicate the RGB color space in the output
stream.

Optionally, you may specify the JPEG LS "near" parameter (maximum error) with
the -m command line switch:
Expand Down Expand Up @@ -193,10 +195,10 @@ or, for floating point images:
$ jpeg infile.jpg out.pfm


If you want to decode a JPEG LS image, then you may want to tell the
decoder explicitly to disable the color transformation even though the
corresponding marker signalling coding in RGB space is typically missing
for JPEG LS:
If you want to decode a JPEG LS image, even one containing a SPIFF header with
rgb colorspace, then you may want to tell the decoder explicitly to disable the
color transformation even though the corresponding marker signalling coding in
RGB space is typically missing for JPEG LS:

$ jpeg -c infile.jpg out.ppm

Expand Down