Post Reply 

"automatic" gif resizing or preview file size for gif

Jun 30, 2012, 15:24 (This post was last modified: Jun 30, 2012 15:29 by gideongaye.)
Post: #1
"automatic" gif resizing or preview file size for gif
I'll come straight out and admit: yes, my real problem here is my laziness but, ignoring that, the 'problem' I have is getting so tired of and annoyed with the whole trial & error schtick that comes with saving animated gifs (scale image, save, check file size, repeat to first step until file size is finally desirable).

Two possible solutions come to mind, one I admit is probably quite unrealistic but I would think the other has a good chance of existing.

First, the unrealistic solution possibility. Is there a plugin or anything else where I can input a file size and it could calculate the exact (or close to exact) scale I would need to resize to if I want the gif to be around that file size? (i.e. "For this gif to be 879kb your best bet would (probably) be 515 x 283")

Now then, the more realistic (or at least I think it is) solution possibility. What about being able to preview a file size of an animated gif before saving? (i.e. "If you save this 400 x 226 gif it will most likely be '(insert byte size here)'kb")

I deeply appreciate help/solutions that can be given, of course. c:
Find all posts by this user
Quote this message in a reply
Jun 30, 2012, 16:13
Post: #2
RE: "automatic" gif resizing or preview file size for gif
That would be pretty close to saving the file... A brute force approach would be to run a script that iterates scaling down the image and saving it. Then you pick the file closest to your target size and erase the rest.

On the other hand there are ways to optimize GIFs, and image size isn't the only parameter.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Jul 1, 2012, 13:50 (This post was last modified: Jul 1, 2012 13:51 by gideongaye.)
Post: #3
RE: "automatic" gif resizing or preview file size for gif
(Jun 30, 2012 16:13)ofnuts Wrote:  That would be pretty close to saving the file... A brute force approach would be to run a script that iterates scaling down the image and saving it. Then you pick the file closest to your target size and erase the rest.

Does such a script already exist?

(Jun 30, 2012 16:13)ofnuts Wrote:  On the other hand there are ways to optimize GIFs, and image size isn't the only parameter.

I know about removing frames but there are other methods besides the standard 'resize' and 'remove frames'? What are they?
Find all posts by this user
Quote this message in a reply
Jul 1, 2012, 13:55
Post: #4
RE: "automatic" gif resizing or preview file size for gif
1) the number of colors
2) if you have the GAP (Gimp Animation Package), then you have "Filter/Animation/Optimize (for GIF)" that factorizes the common parts in frames.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to add a magnification segment of an image to the original size image fenpeppertree 1 72 Nov 7, 2017 17:05
Last Post: paynekj
  How to start with A4 size space markx 1 75 Nov 6, 2017 04:59
Last Post: ythgilb
  XCF Thumbnail/Preview Image DailyLunatic 6 3,897 Oct 23, 2017 11:46
Last Post: paynekj
  Recently Used File List foberle 1 115 Oct 14, 2017 13:55
Last Post: ythgilb
  increasing size of menus / windows freedda 1 201 Aug 21, 2017 05:55
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS