Search found 3 matches

by yapposai
2013-12-12T17:54:15-07:00
Forum: Users
Topic: using fx to add a constant to each rgb pixel
Replies: 4
Views: 2825

Re: using fx to add a constant to each rgb pixel

Thank you for your replies,

I'll investigate the recolor and evaluateImage and see what I come up with.
by yapposai
2013-12-12T09:15:23-07:00
Forum: Users
Topic: using fx to add a constant to each rgb pixel
Replies: 4
Views: 2825

Re: using fx to add a constant to each rgb pixel

I gave up on the fx function and just did the following: 1.create a new grayscale image for the amount you want to lighten/darken 2. use composite_plus or composite_minus to darken or lighten the image. it seems much faster. $tmp = new Imagick(); $tmp->newImage($img->getImageWidth(), $img ...
by yapposai
2013-12-12T08:27:13-07:00
Forum: Users
Topic: using fx to add a constant to each rgb pixel
Replies: 4
Views: 2825

using fx to add a constant to each rgb pixel

Hi, I'm looking for a way to add a constant value to each of the rgb pixel of an image. I'm currently using the fxImage function in php. The reason I want to do this is am trying to change the brightness of the image similar to how my html5 javscript library does it. I can do what I want using $img ...