LOSSLESS JPEG usage

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
kkh

LOSSLESS JPEG usage

Post by kkh »

hi
i want to compress lossless jpeg

regarding to : http://www.imagemagick.org/Usage/formats/#jpg_lossless

i used following command:

Code: Select all

convert -quality 100 -compress lossless 1.bmp 1.llj
but i can't see any compression at all, at least the PSNR is lossless.
I am using Linux and windows
(on linux i have already tried libjpeg-6b, libjpeg-7 libjpeg-8)

same results.

where is my mistake?
by the way, i did also try with .jpg extension instead of .llj because i thought libjpeg need that somehow but then the output is lossy.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: LOSSLESS JPEG usage

Post by fmw42 »

I think you need to use JP2000 for lossless jpg, but to do so you need to install if necessary the Jasper delegate library.

convert image.bmp JP2:image.jp2
Post Reply