Case 1:
To deal with Tiff files which contains multiple channels, we have included "alpha off" in the command and worked fine
Code: Select all
convert -alpha off inputImage[0] -units pixelsperinch -resample 150 outputImage.jpg
https://www.dropbox.com/s/7sxzqjjbuoz0m ... a.tif?dl=0
Case 2:
For some TIFF files, we are losing transparency and background becomes black, when we tested by removing "alpha off", the output was fine without black background
Code: Select all
convert inputImage[0] -units pixelsperinch -resample 150 outputImage.jpg
https://www.dropbox.com/s/1gh3xf99ohlco ... e.tif?dl=0
Now, we want use a generic command to deal with all tiff files, irrespective of channels and background transparency
If Generic command not possible, then how to detect files that contains multiple channels, so that we will include "alpha off"
We tried below commands, but got same result for above two files
Code: Select all
identify -format '%[channels]' inputImage.tif
Code: Select all
"Alpha: srgba(243,243,245,0)"
Any insight?