5 Replies Latest reply: Jun 20, 2013 8:21 PM by Van Middleton RSS

    Need one Action to resize Portrait or Landscape orientation image

    bkoopers Community Member

      I recorded these two Actions:

       

      1)  resize a Portrait orientation image to a height of 800 pixels (constraining proportions) and then “Save for Web” to a jpg with a quality of 24%

      2)  resize a Landscape orientation image to a width of 800 pixels (constraining proportions) and then “Save for Web” to a jpg with a quality of 24%

       

      How can I create one Action that will work for both Landscape and Portrait images (setting the longest dimension to 800 pixels keeping the other dimension in proportion)?

       

      I am using Photoshop CS5 v12.0.4x32 and Windows XP Pro SP3.

       

      Thanks to anyone who can help me out.

        • 1. Re: Need one Action to resize Portrait or Landscape orientation image
          Jeff Schewe Community Member

          bkoopers wrote:

           

          How can I create one Action that will work for both Landscape and Portrait images (setting the longest dimension to 800 pixels keeping the other dimension in proportion)?

           

          Record the action using the Automate plug-in Fit Image and set the Width and Height to 800 pixels.

          • 2. Re: Need one Action to resize Portrait or Landscape orientation image
            bkoopers Community Member

            Thanks. I did not know that the "Fit Image" function existed or where to find it (even after you told me about it) so I did a google search and found a video tutorial on it here:

             

            http://digital-photography-school.com/how-to-use-fit-image-in-photoshop-video

             

            which says it is under "File-Automate-Fit Image".

             

            On the above webpage, somebody commented that instead of using "Fit Image", you can also use "Image-Image Size" and set the width and height to an identical percentage that matches the required reduction and that works too. So now I have two ways to do the reduction of both orientations with a single Action!

             

            Thanks for your help.

            • 3. Re: Need one Action to resize Portrait or Landscape orientation image
              Jeff Schewe Community Member

              bkoopers wrote:

               

              On the above webpage, somebody commented that instead of using "Fit Image", you can also use "Image-Image Size" and set the width and height to an identical percentage that matches the required reduction and that works too.

               

              No, actually, that won't work...try it yourself. Image Size hard codes a specific image resizing. Fit Image is what you need to use.

              • 4. Re: Need one Action to resize Portrait or Landscape orientation image
                bkoopers Community Member

                Jeff Schewe wrote:

                 

                No, actually, that won't work...try it yourself. Image Size hard codes a specific image resizing. Fit Image is what you need to use.

                 

                OK, I just tired it. I created two Actions (one using "Fit Image" set to 800 pixels and another using "Image Size" set to 17.4216% to reduce 4592 to 800 pixels). I ran each Action against a mix of portrait and landscape orientation images and the results were identical and correct (the larger dimension was reduced to 800 piexels and the smaller to 532 pixels).

                 

                Since all my master images are 4592x3056 (or 3056x4592), the 17.4216% reduces to 800x532 (or 532x800). If I had a mix of different size master images, then 17.4216% would not result in 800 pixels. In that case, I would need to use "Fit Image" to get 800 pixels or I would need a new Action with a different percentage.

                 

                In conclusion, you are correct. "Fit Image" is what I should use so it will result in 800 pixels regardless of the master image size. Thanks for your help.

                • 5. Re: Need one Action to resize Portrait or Landscape orientation image
                  Van Middleton Community Member

                  It's complicated - I used the "Fit Image" command, then filled in both height and width with the same (longest side) dimension. I also added a border and sharpened them. You can use them for free, i put them up on my site here.