I want to perform 3 steps in a single convert comaand
1. convert the image from CMYK to RGB
2. convert the background of a image to transparent
3.convert image to png.
Code: Select all
convert -profile <path>\CoatedFOGRA27.icc -profile <path>\sRGB_v4_ICC_preference.icc -resample 300x300 -depth 8 "%1"[0] -fuzz 10% -transparent white -flatten -resize 1260x1260 -quality 80 "%2"
Code: Select all
convert -profile <path>\CoatedFOGRA27.icc -profile <path>\sRGB_v4_ICC_preference.icc -resample 300x300 -depth 8 "%1"[0] -background none -flatten -resize 1260x1260 -quality
I am able to convert the image to RGB and also generate a .png file but using the above script background is not converted to transparent. Can you please let me know the Imagemagick script for converting the background. the source file which I am using is a .eps
Thanks in advance.