"-distort Barrrel" gives wrong centre pixel
Posted: 2010-04-27T06:44:44-07:00
The effect occurs with real-world examples, but here is a simple test:
The "Barrel" shouldn't change anything, but the pixel at (49,49) becomes almost white. Other values (eg 0.999 or 1.001 instead of 1) show the bad behaviour.
The bad behaviour doesn't occur when the input is a solid colour.
IM 6.6.0-8 Q16 on Windows 7.
Code: Select all
convert -size 100x100 plasma: plasma.png
convert plasma.png ^
-distort Barrel 0,0,0,1 ^
plasma_debarrel.png
The bad behaviour doesn't occur when the input is a solid colour.
IM 6.6.0-8 Q16 on Windows 7.