Overlay multiple animated gifs on jpeg (converted to gif)
Posted: 2008-03-09T08:52:32-07:00
Hi there, I would like some help with the following situation:
I have been trying and googling for 2 days now but cant seem to find the correct way to make this work.
I have made an upload form where people can upload their foto's these are getting converted to gif 256 colors, now what i would like to do is overlay a few animated gifs over this uploaded picture, i got it to work with 1 animated gif like this:
If i am not mistaking what happens here is: i set the logo2.gif (this is the actual overlay but couldnt get it animated with srcover for some reason.) as the main image with the width and height of the picture.
Then i put the picture that someone uploads at the back of the transparent logo2.gif.
The problem is, if i do this multiple times with different locations of the logo2.gif the newest logo2.gif will be animated but the ones that i put in before will be stills.
My question is, how can i get multiple "Animated gifs" to overlay a picture(gif)
I will make sure all the gifs have the same framecount etc.
Thanks in advance!
I have been trying and googling for 2 days now but cant seem to find the correct way to make this work.
I have made an upload form where people can upload their foto's these are getting converted to gif 256 colors, now what i would like to do is overlay a few animated gifs over this uploaded picture, i got it to work with 1 animated gif like this:
Code: Select all
exec('/usr/bin/convert logo2.gif -repage 640x480+140+80\! -coalesce \
-draw \'image DstOver 0,0 0,0 "fotoblings/25010903200811411205059282.gif"\' \
-layers Optimize overlay_images/testje.gif');
Then i put the picture that someone uploads at the back of the transparent logo2.gif.
The problem is, if i do this multiple times with different locations of the logo2.gif the newest logo2.gif will be animated but the ones that i put in before will be stills.
My question is, how can i get multiple "Animated gifs" to overlay a picture(gif)
I will make sure all the gifs have the same framecount etc.
Thanks in advance!