Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Where values of $image is a path to an animated gifs and $output is a path to the destination.
For this gif, http://d.imagehost.org/0088/test.gif, the code outputs nothing. Must an animated gif have certain attributes for ImageMagick to process it? Is there a gif normalization that I need to do?
Ah, my mistake- I uploaded one of the animated gifs I was testing that worked rather than one that doesn't. Please look at this one instead: http://d.imagehost.org/0350/bettertest.gif
Your GIF "bettertest.gif" image appears to be fully coalesced already. No transparency, no sub-frame optimization!
It is also VERY large. for a GIF animation with a very very very small delay! That is not very nice!
It also have undefined disposals, which usually means to use 'None' disposal.
When I rung -coalesce on it the disposal was set properly to 'None' and everything else is as it should be. It remained a fully-coalesced' or film-stripe like overlay animation!
So its the size of the file that is the problem? I'd love to optimize them or scale the image size, but any commands I attempt to execute on them output nothing. Both of these fail:
I had no problems converting or processing them. And even on machines that have limited memory IM can switch to slower disk based storage to get around it.
What version of IM are you using. It may be very old!
I would not think the version would a problem, but one never knows if there was a bug at that time. Can you do it on the command line successfully as I did? I am not much of PHP person to be able to critique your code. But others, like user Bonzo, may be able to help (rubblewebs.com)
One comment == are you sure that your are actually accessing the http image via PHP? PHP may limit your ability to do that. But again I don't know PHP that well.
I'm going to open a ticket with HostGator to see if they have any thoughts regarding the version issue. All of the code works with SOME gifs and the first section of code works with all gifs so it is definitely accessing the images correctly. I've even ran this with server relative paths to the images and depending on the gif, it produced the same results.
I feel like there is something I need to do to these gifs to prep them for the more complicated code (output4.gif). If I first use IM to make the gifs tiny, it runs fine.