in reply to Re: reversed colors png images.
in thread reversed colors png images.
I'm making an animated gif with perl and i'm using the gd module. I use the newFromPng method to import images. Then i'm working on an animation that looks like:
use GD; $img = GD::Image->newFromPng('test1.png'); $img2 = GD::Image->newFromPng('test2.png'); $img3 = GD::Image->newFromPng('test3.png'); $data = $img->gifanimbegin(1,0); $data.=$img->gifanimadd(0,0,0,1); $data.=$img2->gifanimadd(0,0,0,1); $data.=$img3->gifanimadd(0,0,0,1); $data.=$img->gifanimend; binmode STDOUT; print $data;
I can't provide code to demonstrate my problem.But my problem is that the image colors get mixed up, so the screen starts blinking.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: reversed colors png images.
by BrowserUk (Patriarch) on Dec 18, 2013 at 16:31 UTC | |
|
Re^3: reversed colors png images.
by Anonymous Monk on Dec 18, 2013 at 16:26 UTC |