jphelp32 wrote:
I wouldn't expect sips to re-compress the image if I'm only adding the color profile and no other modifications.
I'm pretty confident it
is re-compressing the JPEG. Here's how I tested it:
1. Add a color profile to a JPEG, just like you did.
2. Take that JPEG and load it, along with the original JPEG, into Photoshop in the same file, in different layers. Change the mode of the top layer to "Difference" and flatten the file. The picture looks like it's all black, but it's not.
3. Use a tool, like the levels adjustment, to increase the contrast. Where the two pictures differ, there will be "noise" in the picture.
However, if I duplicate a JPEG in the Finder, import the Finder duplicate and the original, and repeat steps 2 and 3, I get a black picture, no noise in it at all regardless of how much I mess with the levels.
You can change the compression level sips uses by using "
-s formatOptions" and then one of
low,
normal,
high,
best , or a numerical percentage. That will also change the size of your file...
charlie