Code: Select all
convert Original.tif[0] -profile sRGB.icc o.tif
"identify -verbose o.tif" shows the file is sRGB but contains metadata:
Code: Select all
photoshop:ColorMode: 4
photoshop:ICCProfile: U.S. Web Coated (SWOP) v2
Code: Select all
convert Original.tif[0] -profile sRGB.icc o.tif
Code: Select all
photoshop:ColorMode: 4
photoshop:ICCProfile: U.S. Web Coated (SWOP) v2
Code: Select all
convert Original.tif[0] -strip -profile /Users/fred/images/profiles/USWebCoatedSwop.icc -profile /Users/fred/images/profiles/sRGB.icc Original_rgb2.tif
Code: Select all
convert Original.tif[0] +profile icc -profile /Users/fred/images/profiles/USWebCoatedSwop.icc -profile /Users/fred/images/profiles/sRGB.icc Original_rgb2.tif
Yes, I see that now also and it is very strange. That kind of confirms that IM may not be writing the correct meta data in the resulting image.snibgo wrote:"identify -verbose o.tif" shows the file is sRGB but contains metadata:
photoshop:ColorMode: 4
photoshop:ICCProfile: U.S. Web Coated (SWOP) v2
Code: Select all
Properties:
icc:copyright: sRGB built-in
icc:description: sRGB built-in
icc:manufacturer: (lcms internal)
icc:model: sRGB built-in
...
photoshop:ColorMode: 4
photoshop:ICCProfile: U.S. Web Coated (SWOP) v2
...
tiff:photometric: RGB
This can be done with +profile tiff:37724, but background transparency (that is shown only in Photoshop) is lost.snibgo wrote: Perhaps the best solution is for an IM operation "-stripPhotoshop" or similar that removes all Photoshop metadata.
That doesn't work here.246246 wrote:This can be done with +profile tiff:37724 ...
Code: Select all
convert Original.tif[0] +profile tiff:37724 -profile sRGB.icc o.tif
identify -verbose o.tif
Code: Select all
photoshop:ColorMode: 4
photoshop:ICCProfile: U.S. Web Coated (SWOP) v2
It seems that CMYK profile is in XMP profile.... still shows:Code: Select all
photoshop:ColorMode: 4 photoshop:ICCProfile: U.S. Web Coated (SWOP) v2
Code: Select all
d:\tmp>convert -quiet Original.tif[0] +profile icc +profile xmp tif:- | identify -verbose - | find /i "icc"
Code: Select all
convert -quiet Original.tif[0] +profile xmp +profile icc -profile sRGB.icc o.tif
identify -verbose o.tif | find /i "icc"
icc:copyright: Copyright 2007 International Color Consortium
icc:description: sRGB v4 ICC preference perceptual intent beta
icc:manufacturer: sRGB v4 ICC preference perceptual intent beta
icc:model: sRGB v4 ICC preference perceptual intent beta
Profile-icc: 60960 bytes
icc:copyright: Copyright 2007 International Color Consortium
icc:description: sRGB v4 ICC preference perceptual intent beta
icc:manufacturer: sRGB v4 ICC preference perceptual intent beta
icc:model: sRGB v4 ICC preference perceptual intent beta
Profile-icc: 60960 bytes
Code: Select all
convert -quiet Original.tif[0] +profile xmp +profile icc -colorspace sRGB o.tif
Code: Select all
convert Original.psd +profile xmp -colorspace sRGB o.tif
Code: Select all
convert Original.psd +profile xmp -profile sRGB.icc o.tif
Code: Select all
convert Original.tif[0] \
\( -clone 0 -alpha extract \) \
\( -clone 0 -alpha off +profile "*" \
-profile /Users/fred/images/profiles/USWebCoatedSwop.icc \
-profile /Users/fred/images/profiles/sRGB.icc \) \
-delete 0 +swap -alpha off -compose copy_opacity -composite Original_rgb5.tif
How not work? Whatis the result like?fmw42 wrote:These do not work for me.
This command:246246 wrote:How not work? Whatis the result like?fmw42 wrote:These do not work for me.
Code: Select all
convert Original.tif[0] +profile "xmp" -profile /Users/fred/images/profiles/sRGB.icc Original_rgb2.tif
What I wrote (to get correct image) is convert from psd.fmw42 wrote:
This command:
In other viewers besides PS, it has the right colors, but no transparency. In PS, it has transparency but has orange color where it should be brown.Code: Select all
convert Original.tif[0] +profile "xmp" -profile /Users/fred/images/profiles/sRGB.icc Original_rgb2.tif
wellyman1 wrote:should I go back to approaching it this way? it did produce the desired result
convert Original.tif -alpha off /Users/tewellman/profiles/sRGB.icc -alpha on rgbout6.tif
Transparency is not 'gone' with this conversion, Original.tif has transparency only detected in Photoshop (at least in Windows, imdisplay shows background as white.)fmw42 wrote:That does not work for me. If I open that in PS, the colors are wrong. And in the other viewers, the transparency is gone
This is the case. as you remove all profile in frame 2, photoshop-only-transparency is gone.fmw42 wrote:But the alpha was gone. This seems to be a problem with your original image. All my viewers do not display the transparency, except for PS. I will report this on the bugs forum.Code: Select all
convert Original.tif[0] \ \( -clone 0 -alpha extract \) \ \( -clone 0 -alpha off +profile "*" \ -profile /Users/fred/images/profiles/USWebCoatedSwop.icc \ -profile /Users/fred/images/profiles/sRGB.icc \) \ -delete 0 +swap -alpha off -compose copy_opacity -composite Original_rgb5.tif