Atalasoft
HomeProductsPurchaseDownloadSupportCompany InfoForumsBlogs
Support Center.

Atalasoft Knowledgebase

Home : Resize an animated GIF using DotImage
Q10086 - INFO: Resize an animated GIF using DotImage

Resizing an animated GIF is not as simple as it might first seem.  There are some key considerations to take into account:

  1. Each frame must be independently resized.
  2. The offset of the frame must also be adjusted by the X and Y ratio.  We must account for offsets that don't line up exactally.  For example, if you are resizing by 0.5 and one offset is 71 ... the resulting offset will not line up with the rest of the image.
  3. Almost all animated GIF's use transparency for optimization.  The transparent palette index must be retained.  Any interpolation will give the edges of transparent areas a strange colored border.
  4. Resizing the image significantly larger results in a blocky image due to the nearestneighbor resizing which uses no interpolation.

The attached project contains a simple console application demonstrating this in C# using DotImage 3.0.

Related Articles
No Related Articles Available.

Article Attachments
ResizeAnimatedGif.zip

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2010. InstantASP Ltd. All Rights Reserved