Imagick trimImage function issue
Posted: 2018-09-10T03:23:44-07:00
Hello Team,
Can any one please let me know how I am getting the two different image mode for the trim output of an image.
Like I am checking the below command on my two different servers which are having different image magick versions installed.
Server 1: Version "ImageMagick 6.7.8-9" is installed and when I am executing the below command then the output image mode in photoshop is showing "RGB" and which is correct because my input image mode is also in "RGB".
Server 2: Version "ImageMagick 6.9.4-10" is installed and when I am executing the below command then the output image mode in photoshop is showing "Grayscale" and which is I think incorrect because my input image mode is in "RGB".
COMMAND:
exec("convert iuputImg.jpg -fuzz 1% -trim +repage outputImg.jpg");
Please any one let me know what exactly I am doing wrong or what need to be added in mentioned command. Also I used the PHP "trimImage " function and same issue faced with this also.
Let me know if anyone need the input image for checking.
Thanks in advanced
Can any one please let me know how I am getting the two different image mode for the trim output of an image.
Like I am checking the below command on my two different servers which are having different image magick versions installed.
Server 1: Version "ImageMagick 6.7.8-9" is installed and when I am executing the below command then the output image mode in photoshop is showing "RGB" and which is correct because my input image mode is also in "RGB".
Server 2: Version "ImageMagick 6.9.4-10" is installed and when I am executing the below command then the output image mode in photoshop is showing "Grayscale" and which is I think incorrect because my input image mode is in "RGB".
COMMAND:
exec("convert iuputImg.jpg -fuzz 1% -trim +repage outputImg.jpg");
Please any one let me know what exactly I am doing wrong or what need to be added in mentioned command. Also I used the PHP "trimImage " function and same issue faced with this also.
Let me know if anyone need the input image for checking.
Thanks in advanced