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

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
theorysavage
Posts: 2
Joined: 2014-07-28T09:36:27-07:00
Authentication code: 6789

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

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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.
theorysavage
Posts: 2
Joined: 2014-07-28T09:36:27-07:00
Authentication code: 6789

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

Post 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.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post 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.
Post Reply