Recoloring images broken
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Recoloring images broken
I can probably go with either method, though would prefer to leave as is, since I do not know the ramification of the change on my scripts. But lets wait for Anthony to reply. I have shown that most if not all his examples will work, but he may have other considerations to factor in.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Recoloring images broken
No patch is my vote (keep transparency) until we can properly re-develop it to use the channel setting.
How about my question on 'alpha_blend' in IMv7 (equivalent to the 'sync' channel channel in IMv6)?
That is the swicth used to determine if -threshold does per-channel thresholding, or the default grayscaled threshold.
How about my question on 'alpha_blend' in IMv7 (equivalent to the 'sync' channel channel in IMv6)?
That is the swicth used to determine if -threshold does per-channel thresholding, or the default grayscaled threshold.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Recoloring images broken
That is not clear. No patch would mean to leave it as it was in the last release, which means that alpha would not be preserved. The patch was going to revert it to the way it was before IM 6.7.6.6Anthony wrote:No patch is my vote (keep transparency) until we can properly re-develop it to use the channel setting.
Please clarify.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Recoloring images broken
I mean. preserve the alpha.. as it was before it was changed (as it is exampled in IM examples in multiple places)
http://www.imagemagick.org/Usage/color_mods/#colorize
and last example in Masks as Colored Shapes
http://www.imagemagick.org/Usage/masking/#shapes
Note the 'blend including transparency' can be achieved using 'blend composition'.
Doing this while preserving existing alpha transparency (as -colorize) is not as easy.
On the other hand the patch version handles...
convert test.png -fill '#FF0000FF' -colorize 50% show:
convert test.png -fill '#FF000080' -colorize 50% show:
Same as if compose blend was used
BUT the very old (preserve alpha) version just uses red without semi-transparency.
I prefer the older version (reserve transparency) but with the blend effect with a semi-transparent color.
(a sort of mix of the two styles -- plus blending for the color, with a wierd type of multiplied alpha blending)
Something no other operator provides!
As such I re-iterate my previous stance....
Remove the changes to the oldest style (as showen in IM examples), until such time as operator can be re-developed properly, extending that handling to semi-transparent colors, according to the channel setting and 'sync/alpha blending' flags, which it currently ignores.
http://www.imagemagick.org/Usage/color_mods/#colorize
and last example in Masks as Colored Shapes
http://www.imagemagick.org/Usage/masking/#shapes
Note the 'blend including transparency' can be achieved using 'blend composition'.
Doing this while preserving existing alpha transparency (as -colorize) is not as easy.
On the other hand the patch version handles...
convert test.png -fill '#FF0000FF' -colorize 50% show:
convert test.png -fill '#FF000080' -colorize 50% show:
Same as if compose blend was used
BUT the very old (preserve alpha) version just uses red without semi-transparency.
I prefer the older version (reserve transparency) but with the blend effect with a semi-transparent color.
(a sort of mix of the two styles -- plus blending for the color, with a wierd type of multiplied alpha blending)
Something no other operator provides!
As such I re-iterate my previous stance....
Remove the changes to the oldest style (as showen in IM examples), until such time as operator can be re-developed properly, extending that handling to semi-transparent colors, according to the channel setting and 'sync/alpha blending' flags, which it currently ignores.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/