Page 1 of 1
-clut command changes in v7?
Posted: 2017-06-07T11:23:53-07:00
by chaoscarnage
We used to use -clut to recolor some images and after upgrading to version 7 it doesn't appear to work the same way.
Code: Select all
img1.png grad.png -clut -newimg.png
Now it seems to just splat one color all over the image without applying the gradient along the greyscale.
Re: -clut command changes in v7?
Posted: 2017-06-07T11:53:13-07:00
by fmw42
Please supply your exact IM version and platform and your two input image. You can upload to any free hosting service and put the URLs here. Is your img1 grayscale and grad color or the other way around or what?
Re: -clut command changes in v7?
Posted: 2017-06-07T12:06:29-07:00
by fmw42
It seems to work fine for me using IM 7.0.5.10 Mac OSX Sierra
Input:
Code: Select all
magick \( -size 256x256 gradient: \) \( rainbow.jpg -gravity north -crop 600x1+0+0 +repage \) -clut result1.png
Input:
Code: Select all
magick logo.png \( -size 1x256 gradient: -rotate 90 -gamma 1.5 \) -clut result2.png
Re: -clut command changes in v7?
Posted: 2017-06-07T12:43:21-07:00
by chaoscarnage
Here is an imgur album with images and the resulting image
http://imgur.com/a/7u5Oa
I used
Code: Select all
convert grey.png rainbow.png -clut newimg.png
Linux Ubuntu 14.04.5 LTS
Version: ImageMagick 7.0.5-7 Q16 x86_64 2017-05-25
Re: -clut command changes in v7?
Posted: 2017-06-07T12:53:37-07:00
by chaoscarnage
EDIT: updated album with how it turns out in version 6
Re: -clut command changes in v7?
Posted: 2017-06-07T12:56:06-07:00
by Bonzo
Looks like the transparency is being coloured.
Re: -clut command changes in v7?
Posted: 2017-06-07T13:23:29-07:00
by magick
Try
Code: Select all
convert -channel RGB grey.png rainbow.png -clut newimg.png
See
https://www.imagemagick.org/script/porting.php.
Re: -clut command changes in v7?
Posted: 2017-06-07T14:17:19-07:00
by chaoscarnage
Thanks for the quick response! Looks good!