Need Resize to Filesize Action

390 views12 repliesLast post: 5/15/2008
Is it possible, to resize pictures (PNG, JPG) as an automated action to a specific filesize. (Photoshop V.7)
#1
I doubt it's possible. Possibly could be scripted.
#3
Couldn't you record an Action using Save For Web to an optimized file size in the SFW Optimize Menu?
#4
Ok, if this forum is prefered... ;)

SFW Optimize Menu ... hmm... ahhhh this tiny arrow there? Cool, I see this Menu to the first time. Maybe this is recordable into a action. I will give it a try.

As I understand this option, it chances the pixel-size of the picture until it fits the file size limit. Right? Or does it change the quality, too?
#5
It only changes the JPEG compression (quality). If you have a pixel size target, you can record that as well. Congrats on finding the menu, it is pretty hidden. ;)

Wait. Now that I'm thinking about it... there might be a problem doing it this way. I can't remember if it is the target file size, or the JPEG quality number that is recorded in the Action. If it the compression number, this method will not be consistent. I'm not at my PS computer to check right now.
#6
AFAIR, the 'optimize to file size' function is not recordable...
#7
Yeah, I just checked. An Action records the compression amount that the Optimize File Size chooses, not the target file size. Sorry for bad info.
Script, maybe.
#8
I don't have a glue on scripting for PS.

Is here someone who can write something like that?

It's Ok if the target-size is hard coded. I think I can modify a given script. But writing one from the scratch... don't think so.
#9
Ok, I think I've found something.

But how can I run a *.jsx file?
I do not know this type of file.
#12