"-strip" and "+profile *" don't remove ICC profiles when the output is miff format.
For example, create an image, assign a profile, remove it, and save as miff. Then examine the miff for an ICC profile:
Code: Select all
f:\web\im>%IMG7%magick xc: -profile sRGB.icc +profile "*" x.miff
Code: Select all
f:\web\im>%IMG7%magick x.miff -verbose info: |grep 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
Code: Select all
f:\web\im>%IMG7%magick xc: -profile sRGB.icc -strip x.miff
f:\web\im>%IMG7%magick x.miff -verbose info: |grep 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
A workaround is to write to tiff instead of miff.
Code: Select all
f:\web\im>%IMG7%magick xc: -profile sRGB.icc +profile "*" x.tiff
f:\web\im>%IMG7%magick x.tiff -verbose info: |grep icc
f:\web\im>%IMG7%magick xc: -profile sRGB.icc -strip x.tiff
f:\web\im>%IMG7%magick x.tiff -verbose info: |grep icc