Solved

Resize animated gifs

Posted on 2004-10-07
10
15,968 Views
Last Modified: 2012-08-14
Hey

Anyone know how to resize animated gifs from the command line? What I am trying to use now is Image Magick, but I could use any other instead, if it only works. I need to be able to resize images on-the-fly so I need something I can execute from the command line. I am using Windows as server platform.

This is what I have tried to do so far with IM:
Original gif: http://gnus.no/aniorig.gif

copy aniorig.gif ani1.gif
mogrify -resize 100x100 ani1.gif
http://gnus.no/ani1.gif

copy aniorig.gif ani2.gif
mogrify -crop 50% ani2.gif
http://gnus.no/ani2.gif

As you can see here, no luck so far..

So if anyone know how to resize gif animations with IM or another tool, please tell me!

Magnus
0
Comment
Question by:sntvei99
  • 2
  • 2
  • 2
  • +3
10 Comments
 
LVL 30

Expert Comment

by:VirusMinus
ID: 12259116
0
 
LVL 30

Expert Comment

by:VirusMinus
ID: 12260065
is this for the web? you could use php or ASP.net to do it via inbuilt routines
0
 
LVL 15

Expert Comment

by:lyonst
ID: 12261395
Also take a look at irfanview http://www.irfanview.com/
0
 

Expert Comment

by:Alegis
ID: 12269496
Irfanview can't resize animating gifs!

As for IM, maybe this will be of help, explains why the command in IM changed
http://www.cit.gu.edu.au/~anthony/graphics/imagick6/cmdline/
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:sntvei99
ID: 12274460
Thanks for your suggestions.

VirusMinus: I have tried some of the tools you listed but I didnt find any that supports gif (animated!) resizing from the command line. I have also tried to resize using PHP's inbuilt module gd2, but it doesnt support animated gifs at the moment, it just takes the first image in the animation and makes a still picture out of that.

Alegis: Yes, the best option would be to do it like IM does from the command line, the problem is that I get very strange output with it as you can see in my first post. Maybe Im doing something wrong with the parameters... but I dont get it.

I want to resize the gifs with from the command line like: "resize 100x100 animated.gif". That is the dream :-)
0
 
LVL 4

Expert Comment

by:leslynf
ID: 12291787
Your original is also not animated. If you use the html code, you can resize it with animation in tack.

I.E.,

     <IMG SRC="NameOfFile.gif" WIDTH="50" HEIGHT="50">

The 50 here is pixels. If you place 50% here, it will try to make the graphic 50% of the window in which the user is working.

Leslyn :)
0
 

Author Comment

by:sntvei99
ID: 12306563
I dont use html. Btw, you dont actually resize the picture with html, only make it look smaller. That is not what I want.

I finally found a neat program named GIFSicle that does the job!
0
 
LVL 4

Expert Comment

by:leslynf
ID: 12540226
No objection!

Leslyn :)
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12573266
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I've been using this technique since Adobe CS2, and it should work with any version of Illustrator that includes the appearance panel. In this tutorial we'll create a button using the appearance panel in Adobe Illustrator, and then save it as a r…
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Learn how to set up basic frames and paths in Prezi and understand the open space that Prezi allows you to create presentations in.
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now