PHP Classes

Animation distortions

Recommend this page to a friend!

      GIF images into animated GIF with native PHP class  >  All threads  >  Animation distortions  >  (Un) Subscribe thread alerts  
Subject:Animation distortions
Summary:Strange decoder results with moving animation contents
Messages:6
Author:Ricardas
Date:2007-11-19 08:55:16
Update:2009-04-29 05:28:28
 

  1. Animation distortions   Reply   Report abuse  
Picture of Ricardas Ricardas - 2007-11-19 08:55:16
Hello,
the class is very interesting and useful, but I just cant get it work right.
When im trying to split animation, the results are often distorted.
Whats interesting, im using the same class as in the official site:
gifs.hu/phpclasses/demos/GifBuilder ...
but the results ar so different from original and from each other.

#Here are some example gifs:
#this is the original gif, without any modifications
members.lycos.co.uk/papildomas/gifs ...

#this one is the result of my script wich is using the class
#the script does nothing but uses the class to split the frames.
#weird distortion. Contents is jumping from side to side.
members.lycos.co.uk/papildomas/gifs ...

#and this was generated with gifbuilder example script
#http://gifs.hu/phpclasses/demos/GifBuilder/index.php
#some frames are strangely croped.
members.lycos.co.uk/papildomas/gifs ...

#and another gif..
members.lycos.co.uk/papildomas/gifs ...
members.lycos.co.uk/papildomas/gifs ...
members.lycos.co.uk/papildomas/gifs ...

What Im trying to do is split the frames, make some modifications to them and poot them all back to a single animation file. For now, I cant even reproduce the original animation..
Iv looked for an answer in this forum, but couldnt find one. Sorry if I missed something.
Thanks for any advidce.

  2. Re: Animation distortions   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2007-11-19 16:53:32 - In reply to message 1 from Ricardas
Hi,

Made a small modification in my GIFDecoder script that can be used to determine the originaly XY offsets of an animated image which has difference XY distances of frame parts.

Of course if you want to use some difference distances of frame parts shall be set the disposal value from 2 into 1 that not erase the drawed picutres by frames!

Can you view and download here with your sample and modified source:
phpclasses.gifs.hu/demos/XYOffsets/

  3. Re: Animation distortions   Reply   Report abuse  
Picture of Ricardas Ricardas - 2007-11-21 15:54:28 - In reply to message 2 from László Zsidi
Thank you for such a quick reply!
Many gifs now works perfect! But still, some of them returns very strange results after decoding.

Maybe this will help:
These are unmodified originals:
members.lycos.co.uk/papildomas/gifs ...
members.lycos.co.uk/papildomas/gifs ...
members.lycos.co.uk/papildomas/gifs ...

After decoding 1st or 2nd gif, i noticed some damaged frames.
And decoding process of 3rd gif dies with a message:

Catchable fatal error: Object of class GIFEncoder could not be converted to string in /home/GIFEncoder.class.php on line 182

  4. Re: Animation distortions   Reply   Report abuse  
Picture of Dejan Milojevic Dejan Milojevic - 2009-04-22 21:46:29 - In reply to message 2 from László Zsidi
Dear László,

I see that you have modified your GIFDecoder class and extended it with the possibility to know the original X and Y coordinates of each frame in animated gif.

I see that the message from you with this information have been posted in November 2007 and that the lates downloadable package dates from July 2007.

Additionally, in the mean time your gifs.hu site has stoped serving your files and examples (owner change I guess), so I hope that you can supply the latest sources and examples of your scripts through this site.

Thank you very much in advance.

Best regards,
--
Dejan Milojevic

  5. Re: Animation distortions   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2009-04-29 02:57:18 - In reply to message 4 from Dejan Milojevic
I am building an another site and there is i would like to grab so many qualified web resources with downloadable & working online examples.
Don't worry, i develop my exist resources continuously and i have some great ideas.:)
I am calling shortly...

Best regards,
László

  6. Re: Animation distortions   Reply   Report abuse  
Picture of Dejan Milojevic Dejan Milojevic - 2009-04-29 05:28:28 - In reply to message 5 from László Zsidi
Dear László,

Thank you very much for the information. I'm looking forward to seeing
your new site.

Best regards.