resize an animated gif

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

robert

resize an animated gif

Postby robert » Wed Oct 19, 2005 9:17 am

hello..

how can i resize an animated gif in xnview please ?

User avatar
xnview
Author of XnView
Posts: 28086
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: resize an animated gif

Postby xnview » Wed Oct 19, 2005 9:24 am

robert wrote:hello..

how can i resize an animated gif in xnview please ?

No sorry it's not possible
Pierre.

robert

Postby robert » Wed Oct 19, 2005 9:40 am

thank you :(

User avatar
Drahken
Posts: 883
Joined: Sun Apr 10, 2005 4:29 pm

Postby Drahken » Wed Oct 19, 2005 12: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?

User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

Anim GIF & PNG

Postby DOS386 » Fri Aug 18, 2006 7:38 pm

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.

User avatar
Drahken
Posts: 883
Joined: Sun Apr 10, 2005 4:29 pm

Postby Drahken » Fri Aug 18, 2006 8:16 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
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!

User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

Re: resize an animated gif

Postby DOS386 » Sat Aug 02, 2008 1:16 pm

robert wrote:how can i resize an animated gif in xnview please ?


http://www.lcdf.org/gifsicle/

Works, free (but not with XNVIEW) :-)
There is indeed no WinZIP under my rock.

User avatar
herr_k.
Posts: 187
Joined: Fri Jan 06, 2006 6:11 pm

Postby herr_k. » Fri Aug 08, 2008 8:14 pm

+1 ,i would also like to resize animated gifs!

maybe this can be done via xnview batch file somehow?
never worked with batchfiles though..

but like drakhen described above (splitting,resizing,combining), it shouldnt be too hard to implement?

User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

AGIF & APNG

Postby DOS386 » Sat Aug 23, 2008 6:34 am

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 :shock: )

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.

User avatar
herr_k.
Posts: 187
Joined: Fri Jan 06, 2006 6:11 pm

Postby herr_k. » Sat Feb 14, 2009 8:50 pm

bump3.

Escargot Fou

GiF Resizer

Postby Escargot Fou » Sat Feb 14, 2009 10:57 pm

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

User avatar
herr_k.
Posts: 187
Joined: Fri Jan 06, 2006 6:11 pm

Postby herr_k. » Sat Feb 14, 2009 11:04 pm

we do not want hints for another software.
we want it to get implemented.

AngelMoney

Forget it!

Postby AngelMoney » Fri Feb 27, 2009 3:31 pm

All of this is worthless! I have Mac! THIS website cannot help ME! :evil: :evil: :evil:

SharkD
Posts: 37
Joined: Sun Jul 30, 2006 6:57 am

Re: AGIF & APNG

Postby SharkD » Mon Nov 02, 2009 5:04 am

DOS386 wrote:Oops ... forgot to post download link to my DOS and Win32 ports:

http://freefile.kristopherw.us/uploads/ ... fs150k.zip


Could you list the Windows command-line options so that we can actually know how to use your program? :)

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'.

User avatar
wubijacq
Posts: 38
Joined: Fri Mar 19, 2010 7:51 pm

Re: resize an animated gif

Postby wubijacq » Tue Oct 05, 2010 8:31 pm

xnview wrote:
robert wrote:hello..

how can i resize an animated gif in xnview please ?

No sorry it's not possible

but you can resize each frame of an animated gif and convert gif87a to gif89a


Return to “Classic - General Support”

Who is online

Users browsing this forum: No registered users and 1 guest