Skip navigation
Currently Being Moderated

Actions and Save for Web

Jul 24, 2012 8:48 PM

I have tried to research this on my own searching the forum and asking users far more advanced than I am to no avail. I thought it might be possible that someone here would know whether what I want is feasible.

 

I use the "Optimize to file size" feature in the Save For Web Panel constantly. I am planning on doing a large amount of conversions in the near future (by which I mean resaving .jpegs at a certain dimension and resolution. As far as the dimension and resolution go, there is no difficulty creating an action to do that. But the icing on the cake for me is have them all processed through Save for Web at a certain file size (for the sake of argument, say 500K). Yes, I know that the resulting images will vary in quality (obviously) because the end result will very much depend on their file size to begin with but that is not an issue for me for my purposes.

 

Save for Web has various presets and allows you to save presets; however, it does not allow you to save the Optimize to file size as a preset. When I try to record an action, and go to the Save for Web, use the Optimize etcetera, the action created lists the quality of the image I process to record the action. So, for example, if my image is less than 500K, the quality recorded in the action is 100. If my image exceeds 500K, the quality might be 86 and that is what the action records. For whatever reason, what is recorded is the quality rather than the 500K. I am not sure if this is being written clearly enough to explain. I want every image to end up being 500K regardless of what the final quality is (quality being the difference between the original image and the image as saved by Save for Web). But actions are saving the attribute of quality rather than file size.  Sigh. I think I am just repeating myself trying to make it clear but probably failing. In case a screen shot helps clarify, here it is. If this can't be done, I would love to know that so I can give up trying.Screen Shot 2012-07-24 at 11.43.33 PM.jpg

 
Replies
  • Currently Being Moderated
    Jul 24, 2012 10:35 PM   in reply to KimberlyGabriel

    I want every image to end up being 500K regardless of what the final quality is (quality being the difference between the original image and the image as saved by Save for Web).

    You may have to resort to Scripting for this task … it may need a fairly convoluted approach but I think it has come up before, so someone may be able to help you over at

    http://forums.adobe.com/community/photoshop/photoshop_scripting

     
    |
    Mark as:
  • JJMack
    3,425 posts
    Jan 9, 2006
    Currently Being Moderated
    Jul 25, 2012 6:27 AM   in reply to KimberlyGabriel

    There is a basic problem in even though images are being saved in jpeg format using jpeg compression how well an image will compress depends on the complexity and detail in the image.  There is as far as I know a good way to predict what the file size will be at any quality setting.  Perhaps you could write a script save image at a high quality setting retrived the saved file size from the file system and if greater the 500k lower the quality overwrite the file and recheck the size end the loop at quality 0 no mater what the file size is.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 6:35 AM   in reply to JJMack

    Perhaps you could write a script save image at a high quality setting retrived the saved file size from the file system and if greater the 500k lower the quality overwrite the file and recheck the size end the loop at quality 0 no mater what the file size is.

    I’m pretty sure I’ve seen several threads on this, but currently I could only find this one:

    http://forums.adobe.com/message/3874646#3874646

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points