5 Replies Latest reply on Aug 4, 2012 10:13 AM by KimberlyGabriel

    Actions and Save for Web

    KimberlyGabriel Level 1

      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

        • 1. Re: Actions and Save for Web
          c.pfaffenbichler Level 9

          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

          1 person found this helpful
          • 2. Re: Actions and Save for Web
            KimberlyGabriel Level 1

            Thank you. I never thought of scripts--have never tried them. I did look at the question posed there and I think my eyes are still crossed after reading it. Have only had one cup of coffee this morning. Perhaps after another I will brave posting my question there although I hesitate to do so given that I know zero about scripts so I would be looking for a fish rather than how to fish and I always find those posts slightly annoying.

            • 3. Re: Actions and Save for Web
              JJMack Most Valuable Participant

              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.

              1 person found this helpful
              • 4. Re: Actions and Save for Web
                c.pfaffenbichler Level 9

                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

                1 person found this helpful
                • 5. Re: Actions and Save for Web
                  KimberlyGabriel Level 1

                  Thank you so much for looking at this: I have marked all your answers as helpful. I think that this is out of my league for now. I did look at the references but believe that it would take me longer to get a handle on scripts than it would to just bite the bullet. Maybe some day but I have to prioritize my learning. Again, I really do appreciate the help.