in reply to Pixel setting oddity - Image:Magick
In $img_gry->Set('pixel[$col,$row]' => 'rgb($sub_red, $sub_green, $sub_blue )'); the single quotes prevent interpolation which means Image::Magick is given the strings '$col', and '$row' instead of the values you expect. I didn't read the documentation to see if anything else is wrong, but this does look highly suspicious. Aren't you getting any warnings for that? I'm surprised Image::Magick doesn't complain about the invalid input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pixel setting oddity - Image:Magick
by afoken (Chancellor) on May 11, 2015 at 12:30 UTC | |
by Eily (Monsignor) on May 11, 2015 at 12:42 UTC | |
by merrymonk (Hermit) on May 12, 2015 at 06:58 UTC | |
by afoken (Chancellor) on May 12, 2015 at 08:28 UTC |