density recompresses jpg

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
dargaud
Posts: 31
Joined: 2006-08-06T01:58:58-07:00

density recompresses jpg

Post by dargaud »

Hello all,
From the man page:
The density option is an attribute and does not alter the underlying raster image
... except that it doesn't work for me. The command

Code: Select all

mogrify -density 300 MultipleSummits.jpg
reduces the file size by 10% and drops the quality accordingly. From looking at the pixel difference, I'm pretty sure there's a jpg recompression.
The same is true if I try to add a profile to an existing image:

Code: Select all

mogrify -profile AdobeRGB1998.icc MultipleSummits.jpg
alters the pixel values.
It's so elementary that I must be doing something wrong. So, how do I change density/profiles/... without touching the pixels ?
Post Reply