.tif-files and clip-paths
Posted: 2010-02-16T00:46:09-07:00
Hi,
I just recently started using imagick, and am now trying to port my old 'convert -this -that'-code to imagick. I've gotten most of the stuff to work, apart from two issues:
1. I need to be able to convert a whole bunch of formats, including TIFF-files. Since ImageMagick have some problems with finding clip-paths in these files, I previously made a special case for them, using the following command (found elsewhere in this forum):
To be honest, I'm not actually sure I know what this command does, and are thus having huge problems converting it to imagick. Any ideas?
2. Some files need to be negated using negateImage, but I'm not sure which ones. Running the command for all files results in some files beeing negated when they shouldn't be. Is there any way to find out which images need to be negated?
Thanks in advance!
/ Per Holmäng
I just recently started using imagick, and am now trying to port my old 'convert -this -that'-code to imagick. I've gotten most of the stuff to work, apart from two issues:
1. I need to be able to convert a whole bunch of formats, including TIFF-files. Since ImageMagick have some problems with finding clip-paths in these files, I previously made a special case for them, using the following command (found elsewhere in this forum):
Code: Select all
convert filename.tif \( -clip -colorspace RGB -threshold 100% -clone 0 +clip -fill white +opaque black -negate -flatten \) -compose copy_opacity -composite filename.png
2. Some files need to be negated using negateImage, but I'm not sure which ones. Running the command for all files results in some files beeing negated when they shouldn't be. Is there any way to find out which images need to be negated?
Thanks in advance!
/ Per Holmäng