resize animated gif?! |
[eluser]M A F I A[/eluser]
Hi, Can you help me to resize an animated gif to a little size? (tumbnailing with PHP) I want to have an animated gif after resizing... Regards, David Gates.
[eluser]Pygon[/eluser]
Good luck -- I don't think GD supports this (atleast not in PHP). You might look at the ImageMagik library and a custom class but I don't believe there are any functions for resizing animated gifs.
[eluser]M A F I A[/eluser]
ImageMagick? I hadn't worked with this. Can you give me a PHP code to do that? (I'm sorry for my VERY BAD English lang.)
[eluser]M A F I A[/eluser]
Thank you Base Willy, Found This on IM forums: Quote:Hi,Can you test this and tell me what happened? My server doesn't support IM. Can you introduce me a free webhosting that support IM? I want to see if this is my answer, change my webhosting.
[eluser]Base Willy[/eluser]
You're welcome. With image magick you can resize an image with one simple command, like exec("convert big_image.gif -resize 50x50 small_image.gif"), and it will keep the animation. Sorry but I can't suggest you any hosting with IM because I don't know any and got used to use my own server ![]() Good luck!
[eluser]M A F I A[/eluser]
Thank you. I found 110mb.com. It support IM, But exec() function has disabled for security reasons. Is there any way to do that? Here is the page that I used that code: http://bacheteroon.110mb.com/IM.php
[eluser]Base Willy[/eluser]
The other way is using php extension to work with IM but I don't know if it's installed there and haven't worked with it, command line is easy enough.
[eluser]M A F I A[/eluser]
Can you give an example to me? Or... Can you test this code on your own server and send me the result in the browser in a zip file with images and html? Code: <?PHP exec("convert image.gif -resize 234x30 img.gif"); ?> Thanks. |
Welcome Guest, Not a member yet? Register Sign In |