Search found 4 matches

by madvillager
2018-11-14T19:53:12-07:00
Forum: IMagick
Topic: How do I shift the hue of a black png?
Replies: 7
Views: 134812

Re: How do I shift the hue of a black png?

colorizeImage() and tintImage() are working now!

I had to add a third parameter "true" like this:

$image->tintImage('rgba(255,0,0)', 1, true);

@Damack addresses this issue here: https://github.com/mkoppanen/imagick/issues/182

(Though I still don't understand why I needed "true"... perhaps ...
by madvillager
2018-11-14T17:20:28-07:00
Forum: IMagick
Topic: How do I shift the hue of a black png?
Replies: 7
Views: 134812

Re: How do I shift the hue of a black png?

I'm looking for a more versatile solution. As far as I understand opaquePaintImage() it's looking for a specific color to change. What if the "black png" actually contains variations of blacks (#000000, #012103) and opacities (100%, 88%)? I don't know the imagick jargon (yet), but in layman's terms ...
by madvillager
2018-11-14T15:26:37-07:00
Forum: IMagick
Topic: How do I shift the hue of a black png?
Replies: 7
Views: 134812

Re: How do I shift the hue of a black png?

here's a visual for my question with sample graphic:

http://barrettalley.com/imagick.html

photoshop's hue/saturation filter was used to accomplish the above. with an adjustment to hue, saturation, and lightness with "colorize" turned on.

i understand @fmw42's point of not being able to colorize ...
by madvillager
2018-11-14T14:05:10-07:00
Forum: IMagick
Topic: How do I shift the hue of a black png?
Replies: 7
Views: 134812

How do I shift the hue of a black png?

hello friends!

Imagick newbie here...

having difficulty accomplishing something simple: load a black png and shift its color before outputting to screen.

platform: OSX Mojave

php --ri imagick

returns

imagick module => enabled
imagick module version => 3.4.3
imagick classes => Imagick ...