resize an animated gif
Moderators: XnTriq, helmut, xnview
-
- Author of XnView
- Posts: 41908
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: resize an animated gif
No sorry it's not possiblerobert wrote:hello..
how can i resize an animated gif in xnview please ?
Pierre.
-
- Posts: 884
- Joined: Sun Apr 10, 2005 4:29 pm
You could try http://www.gdgsoft.com/anituner/ It allows the import and export of animated GIFs, although I don't know how well (if at all) it supports resizing.
http://www.wildfiredesign.net/gifeq/index.htm Is a GIF optimizer, I don't know whether or not it supports resizing.
Movies 13 http://jansfreeware.com/jfgraphics.htm should work.
If all else fails, you can use http://www.snapfiles.com/get/gifsplitter.html to break the animation into BMP files, use xnview to resize them and convert them to still GIFs, then use http://www.snapfiles.com/get/unfreez.html to recompile them back into an animated GIF. True, it is a long process, but at least the other 2 progs you need are very small (88k and 19k), and you can use the batch processing in xnview to easily do the resizing/converting.
Edit: That gives me an idea. I realize that you probably don't include animated gif support due to the copyright issues, but what about adding an ability to export to unfreeze or some other similar program?
http://www.wildfiredesign.net/gifeq/index.htm Is a GIF optimizer, I don't know whether or not it supports resizing.
Movies 13 http://jansfreeware.com/jfgraphics.htm should work.
If all else fails, you can use http://www.snapfiles.com/get/gifsplitter.html to break the animation into BMP files, use xnview to resize them and convert them to still GIFs, then use http://www.snapfiles.com/get/unfreez.html to recompile them back into an animated GIF. True, it is a long process, but at least the other 2 progs you need are very small (88k and 19k), and you can use the batch processing in xnview to easily do the resizing/converting.
Edit: That gives me an idea. I realize that you probably don't include animated gif support due to the copyright issues, but what about adding an ability to export to unfreeze or some other similar program?
-
- Posts: 291
- Joined: Sun Jun 11, 2006 2:43 pm
Anim GIF & PNG
EDIT (after >2 years) : deleted very obsolete stuff, see newer and more informative post below
Last edited by DOS386 on Fri Oct 15, 2010 1:53 am, edited 3 times in total.
-
- Posts: 884
- Joined: Sun Apr 10, 2005 4:29 pm
I don't know for certain why pierre doesn't add animated gif support, but I know that 99% of the time it's missing in a prog, it's because of the copyright issues revolving around gifs. However, all the unisys patents on gifs expired in 2003 and 2004, and IBMs patents are due to expire this month, so it's really not an issue anymore.
PNGs can't be animated. There is a format based on PNG which is animated, it's called MNG. Problem is that no browsers support it natively, and few image creation programs support it. There is also a group working on APNG, which is an animated PNG format, but it's still just at the discussion stage. For animation, you're currentl;y stuck with GIF or flash.
On a side note, someone managed to use GIF's animation function to produce a truecolor GIF. Pretty darn pointless though, considering the massive size of the file. Nearly 200k for the truecolor GIF, or 14K for PNG, or 4K for JPG.
http://phil.ipal.org/tc.html
PNGs can't be animated. There is a format based on PNG which is animated, it's called MNG. Problem is that no browsers support it natively, and few image creation programs support it. There is also a group working on APNG, which is an animated PNG format, but it's still just at the discussion stage. For animation, you're currentl;y stuck with GIF or flash.
On a side note, someone managed to use GIF's animation function to produce a truecolor GIF. Pretty darn pointless though, considering the massive size of the file. Nearly 200k for the truecolor GIF, or 14K for PNG, or 4K for JPG.
http://phil.ipal.org/tc.html
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
-
- Posts: 291
- Joined: Sun Jun 11, 2006 2:43 pm
Re: resize an animated gif
http://www.lcdf.org/gifsicle/robert wrote:how can i resize an animated gif in xnview please ?
Works, free (but not with XNVIEW)

There is indeed no WinZIP under my rock.
-
- Posts: 192
- Joined: Fri Jan 06, 2006 6:11 pm
-
- Posts: 291
- Joined: Sun Jun 11, 2006 2:43 pm
AGIF & APNG
Oops ... forgot to post download link to my DOS and Win32 ports:
GIFS150K.zip
> maybe this can be done via xnview batch file somehow?
Resizing the frames: YES. Re-merging them: NO.
> it shouldnt be too hard to implement?
Minimal AGIF creation should be rather easy, OTOH "optimizing" is a considerable amount of additional work.
Thus so-far the preferred way to do:
- If GIF is "optimized", "unoptimize" it with GIFSICLE (XN can't)
- Extract the frames with GIFSICLE or NC/XN
- Resize the frames using NC/XN and appropriate algo (this will convert them into 24bpp True color), save as BMP
- Re-palettize them using NC/XN, save as GIF
- Re-merge with GIFSICLE (or above mentioned UNFREEZE)
- Re-optimize with GIFSICLE (XN can't)
The problem is that you will get a separate palette for every frame this way (-> bloated GIF). To avoid this problem, one can "merge" the frames into 1 static BMP using XN (not NC ??) before resizing and palettize this one BMP only, and then re-split (but how ? Have to code something
)
GIFSICLE has a "resize" feature doing all in one step, but uses the "nearest neighbor" algo only - gives bad results except for zooming up with an integer factor.
Anyway, AGIF is obsolete:
http://en.wikipedia.org/wiki/Animated_PNG
http://wiki.mozilla.org/APNG_Specification
GIFS150K.zip
> maybe this can be done via xnview batch file somehow?
Resizing the frames: YES. Re-merging them: NO.
> it shouldnt be too hard to implement?
Minimal AGIF creation should be rather easy, OTOH "optimizing" is a considerable amount of additional work.
Thus so-far the preferred way to do:
- If GIF is "optimized", "unoptimize" it with GIFSICLE (XN can't)
- Extract the frames with GIFSICLE or NC/XN
- Resize the frames using NC/XN and appropriate algo (this will convert them into 24bpp True color), save as BMP
- Re-palettize them using NC/XN, save as GIF
- Re-merge with GIFSICLE (or above mentioned UNFREEZE)
- Re-optimize with GIFSICLE (XN can't)
The problem is that you will get a separate palette for every frame this way (-> bloated GIF). To avoid this problem, one can "merge" the frames into 1 static BMP using XN (not NC ??) before resizing and palettize this one BMP only, and then re-split (but how ? Have to code something

GIFSICLE has a "resize" feature doing all in one step, but uses the "nearest neighbor" algo only - gives bad results except for zooming up with an integer factor.
Anyway, AGIF is obsolete:
http://en.wikipedia.org/wiki/Animated_PNG
http://wiki.mozilla.org/APNG_Specification
Last edited by DOS386 on Fri Oct 15, 2010 1:54 am, edited 2 times in total.
There is indeed no WinZIP under my rock.
GiF Resizer
http://www.ashongsoft.com
GiF Resizer helps you resize your gif animated image files.
Sometimes, when we get animated image file files in gif format from internet are to big for special use. Most of the image conversion softwares only output static image instead of animated ones. GIF Resizer can help you exactly resize animated gif images and keep all animation settings.
And GiF Resizer is freeware, you don't need to cost any money on it.
Doc/Help http://www.ashongsoft.com/gif.resizer.documents.html
GiF Resizer helps you resize your gif animated image files.
Sometimes, when we get animated image file files in gif format from internet are to big for special use. Most of the image conversion softwares only output static image instead of animated ones. GIF Resizer can help you exactly resize animated gif images and keep all animation settings.
And GiF Resizer is freeware, you don't need to cost any money on it.
Doc/Help http://www.ashongsoft.com/gif.resizer.documents.html
-
- Posts: 192
- Joined: Fri Jan 06, 2006 6:11 pm
-
- Posts: 38
- Joined: Sun Jul 30, 2006 6:57 am
Re: AGIF & APNG
Could you list the Windows command-line options so that we can actually know how to use your program?DOS386 wrote:Oops ... forgot to post download link to my DOS and Win32 ports:
http://freefile.kristopherw.us/uploads/ ... fs150k.zip

Thanks.
[edit]
Nevermind. I found it and will post it here:
'Gifsicle' manipulates GIF images. Its most common uses include combining
single images into animations, adding transparency, optimizing animations for
space, and printing information about GIFs.
Usage: J:\ProgsWin\GIFS150K\GIFW.EXE [OPTION | FILE | FRAME]...
Mode options: at most one, before any filenames.
-m, --merge Merge mode: combine inputs, write stdout.
-b, --batch Batch mode: modify inputs, write back to
same filenames.
-e, --explode Explode mode: write N files for each input,
one per frame, to 'input.frame-number'.
-E, --explode-by-name Explode mode, but write 'input.name'.
General options: Also --no-OPTION for info and verbose.
-I, --info Print info about input GIFs. Two -I's means
normal output is not suppressed.
--color-info, --cinfo --info plus colormap details.
--extension-info, --xinfo --info plus extension details.
-V, --verbose Prints progress information.
-h, --help Print this message and exit.
--version Print version number and exit.
-o, --output FILE Write output to FILE.
-w, --no-warnings Don't report warnings.
--conserve-memory Conserve memory at the expense of speed.
--multifile Support concatenated GIF files.
Frame selections: #num, #num1-num2, #num1-, #name
Frame change options:
--delete FRAMES Delete FRAMES from input.
--insert-before FRAME GIFS Insert GIFS before FRAMES in input.
--append GIFS Append GIFS to input.
--replace FRAMES GIFS Replace FRAMES with GIFS in input.
--done Done with frame changes.
Image options: Also --no-OPTION and --same-OPTION.
-B, --background COL Makes COL the background color.
--crop X,Y+WxH, --crop X,Y-X2,Y2
Crops the image.
--crop-transparency Crops transparent borders off the image.
--flip-horizontal, --flip-vertical
Flips the image.
-i, --interlace Turns on interlacing.
-S, --logical-screen WxH Sets logical screen to WxH.
-p, --position X,Y Sets frame position to (X,Y).
--rotate-90, --rotate-180, --rotate-270, --no-rotate
Rotates the image.
-t, --transparent COL Makes COL transparent.
Extension options: Also --no-OPTION and --same-OPTION.
-x, --app-extension N D Adds an app extension named N with data D.
-c, --comment TEXT Adds a comment before the next frame.
--extension N D Adds an extension number N with data D.
-n, --name TEXT Sets next frame's name.
Animation options: Also --no-OPTION and --same-OPTION.
-d, --delay TIME Sets frame delay to TIME (in 1/100sec).
-D, --disposal METHOD Sets frame disposal to METHOD.
-l, --loopcount[=N] Sets loop extension to N (default forever).
-O, --optimize[=LEV] Optimize output GIFs.
-U, --unoptimize Unoptimize input GIFs.
Whole-GIF options: Also --no-OPTION.
--careful Write larger GIFs that avoid bugs in other
programs.
--change-color COL1 COL2 Changes COL1 to COL2 throughout.
-k, --colors N Reduces the number of colors to N.
--color-method METHOD Set method for choosing reduced colors.
-f, --dither Dither image after changing colormap.
--resize WxH Resizes the output GIF to WxH.
--resize-width W Resizes to width W and proportional height.
--resize-height H Resizes to height H and proportional width.
--scale XFACTOR[xYFACTOR] Scales the output GIF by XFACTORxYFACTOR.
--transform-colormap CMD Transform each output colormap by shell CMD.
--use-colormap CMAP Set output GIF's colormap to CMAP, which can
be 'web', 'gray', 'bw', or a GIF file.
[Don't] Report bugs to <ekohler@gmail.com>.
WARNING: Experimental port, pipe coloring and Floyd stuff might not work.
Too much information? Try 'J:\ProgsWin\GIFS150K\GIFW.EXE --help | more'.
-
- Posts: 42
- Joined: Fri Mar 19, 2010 7:51 pm
Re: resize an animated gif
but you can resize each frame of an animated gif and convert gif87a to gif89axnview wrote:No sorry it's not possiblerobert wrote:hello..
how can i resize an animated gif in xnview please ?