Page 1 of 1

What is the difference between +profile "*" and -strip ?

Posted: 2014-07-28T09:47:56-07:00
by theorysavage
Hello,

We have compiled a new 6.8 version of IM (in an attempt to upgrade from Ubuntu's packaged 6.7.7-10.

Our command using +profile "*" just hangs. Removing +profile "*" resolves the hangup, and adding -strip instead seems achieve the same result.

Example:
'/opt/imagemagick-6.8/bin/convert' 'in.jpg'[0] +matte -flatten -quality 90 +matte +profile "*" -colorspace sRGB -resize 850x850">" 'out.jpg'


What I'm wondering is whether the API has intentionally changed in regard to +profile or whether this is a bug, or even possibly a compilation error.

Thank you,
Tom Gleason

Re: What is the difference between +profile "*" and -strip ?

Posted: 2014-07-28T10:05:26-07:00
by fmw42
/opt/imagemagick-6.8/bin/convert' 'in.jpg'[0] +matte -flatten -quality 90 +matte +profile "*" -colorspace sRGB -resize 850x850">"
JPG does not support transparency nor multilayer/multiframe/multiplage, so +matte and -flatten is likely doing nothing.

I am on IM 6.8.9.5 Q16 Mac OSX

# create a jpg with adobe profle

Code: Select all

convert rose: -profile /users/fred/images/profiles/AdobeRGB1998.icc rose_adobergb.jpg
identify -verbose rose_adobergb.jpg
...
  Properties:
    date:create: 2014-07-28T09:59:51-07:00
    date:modify: 2014-07-28T09:59:51-07:00
    icc:copyright: Copyright 2000 Adobe Systems Incorporated
    icc:description: Adobe RGB (1998)
    icc:manufacturer: Adobe RGB (1998)
    icc:model: Adobe RGB (1998)
    jpeg:colorspace: 2
    jpeg:sampling-factor: 2x2,1x1,1x1
    signature: d516c129fcd421bcf19ec389edadc9968f97457408dc816c4f6240e28fbb6a78
  Profiles:
    Profile-icc: 560 bytes
#Remove profile:
convert rose_adobergb.jpg +profile "*" -set colorspace sRGB rose_srgb.jpg

This indeed hangs. I will report on bugs forum.

Re: What is the difference between +profile "*" and -strip ?

Posted: 2014-07-28T10:50:06-07:00
by theorysavage
Thanks. We know that +matte and -flatten are pointless here, but I included them because we do in this command to support multiple formats, in case they were factors.

Is -strip equivalent for us at this point? It seems to work the same, but I'm not 100% sure.

Re: What is the difference between +profile "*" and -strip ?

Posted: 2014-07-28T11:03:46-07:00
by Bonzo
From the command-line-options page:
strip the image of any profiles or comments.
It also removes any EXIF data if there is any.