enhancement suggestion for -clut
Posted: 2008-07-12T17:01:54-07:00
I have notice that -clut will not process a multi-frame gif (without separating the frames). I was wondering, whether that could be changed in the near future, if not too difficult. For example:
create gradient:
convert -size 100x100 gradient: -rotate 90 grad100.gif
make into 3 frame gif:
convert grad100.gif grad100.gif grad100.gif grad100stack.gif
negate the gradient to make a lut:
convert grad100.gif -negate grad100_neg.gif
apply the lut to see if it will negate all 3 frames:
convert grad100stack.gif grad100_neg.gif -clut grad100stack_clut_neg.gif
result is that the output contains only one frame
On the other hand, other operators will process all frames. For example:
convert grad100stack.gif -negate grad100stack_neg.gif
does produce 3 frames for the output
Thanks
Fred
create gradient:
convert -size 100x100 gradient: -rotate 90 grad100.gif
make into 3 frame gif:
convert grad100.gif grad100.gif grad100.gif grad100stack.gif
negate the gradient to make a lut:
convert grad100.gif -negate grad100_neg.gif
apply the lut to see if it will negate all 3 frames:
convert grad100stack.gif grad100_neg.gif -clut grad100stack_clut_neg.gif
result is that the output contains only one frame
On the other hand, other operators will process all frames. For example:
convert grad100stack.gif -negate grad100stack_neg.gif
does produce 3 frames for the output
Thanks
Fred