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
What is the difference between +profile "*" and -strip ?
-
- Posts: 2
- Joined: 2014-07-28T09:36:27-07:00
- Authentication code: 6789
- 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 ?
JPG does not support transparency nor multilayer/multiframe/multiplage, so +matte and -flatten is likely doing nothing./opt/imagemagick-6.8/bin/convert' 'in.jpg'[0] +matte -flatten -quality 90 +matte +profile "*" -colorspace sRGB -resize 850x850">"
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
convert rose_adobergb.jpg +profile "*" -set colorspace sRGB rose_srgb.jpg
This indeed hangs. I will report on bugs forum.
-
- Posts: 2
- Joined: 2014-07-28T09:36:27-07:00
- Authentication code: 6789
Re: What is the difference between +profile "*" and -strip ?
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.
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 ?
From the command-line-options page:
It also removes any EXIF data if there is any.strip the image of any profiles or comments.