Automating GIF export to a fixed file size

B
Posted By
Bernie
Nov 22, 2006
Views
502
Replies
3
Status
Closed
You can’t save GIFs to a set file size since they do not use lossy compression. (That and the time and energy required to test every palette combination to get to said file size are not worth the effort)

How to Improve Photoshop Performance

Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!

JO
Jim_Oblak
Nov 22, 2006
which is calculated in no time

This is not correct. It does take time for Photoshop to calculate. Try saving larger images for web to see it.

You are seeing Photoshop ‘resave’ the file each time you make a change in the color count in ‘save for web’.

If you were to replicate this, you would need some automated function to save a file several times at various index color counts to find the ideal file size. I could not begin to imagine how to do this in Photoshop.

You might want to check out if this is possible in ImageMagick, which loves command line functions and scripting.
JO
Jim_Oblak
Nov 22, 2006
but since I’m doing all this for mobile I won’t do any large images

I was only suggesting the use of large images to demonstrate that Photoshop does actually save temp files to calculate file sizes. I don’t think you can get around this without having a function that saves several copies of the same file to find the smallest size.
Y
YrbkMgr
Nov 23, 2006
The long and the short of it is, you can’t do what you’re asking – not natively in photoshop.

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections