Jump to content
apollo_de

Resizing Multiple Images Using a Macro Fails

Recommended Posts

Hi,

didn't find a solution by searching the forum ... the problem:

I've multiple images, for simplicity say two, with different pixel sizes (w x h):

1. 4032 x 3024 px
2. 3600 x 2700 px

I want to do a simple batch operation, to just reduce the height to say 1080 px, keeping the aspect ratio.

Trying to write a macro failed, because the images differ in size and the menu Document > Resize Document ... > ... doesn't allow to leave one of the Size fields (width/height) unpopulated, so that every image would have a height of 1080 px and an adapted width. 

Currently one of these two images will always have an unwanted aspect ratio.

I'm just wondering because Photoshop Elements has the ability to leave either the width or the height field free and all images are "batch-resized" properly, keeping the correct aspect ratio.

I don't want to change Apps all the time ... is there a AP solution, did I miss something?

TIA, regards,
apollo_de 
 

Share this post


Link to post
Share on other sites

It can be done in a macro but you don't need one

Use...

File > New Batch Job

Just set the height to 1080 and leave the "A" (Aspect Ratio) setting ticked


Due to the fact that Boris Johnson is now our Prime Minister, punctuation, spelling and grammar will never be worried about ever again.  We now have far bigger problems to be worried about.

Share this post


Link to post
Share on other sites

Thanks carl123,

I knew that. The idea behind was, that there were far more tasks I wanted to be done by the macro - resizing was just the first part of the procedure ...  Didn't want to break the process into parts.

Any other ideas welcome ...

Cheers,
apollo_de

Share this post


Link to post
Share on other sites

Resizing using a macro is very complex, because most methods you'll think of remember the final size of the image you used when creating the macro, and thus it won't work well for images with different sizes. There have been a few complex macros created that can resize images that have different sizes, For example, @carl123 posted this one previously. You can probably find others by searching the Resources forum.

But if you can do it via the batch job itself you may have better results and it will be simpler. In any case, I would make that a separate macro, rather than trying to have one macro that does resizing and other actions. Developing and using the  macros will be much simpler that way.


-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.8.3.641 and 1.8.4.650 Beta   / Affinity Designer 1.8.3.641 and 1.8.4.650 Beta  / Affinity Publisher 1.8.3.641 and 1.8.4.651 Beta.

Share this post


Link to post
Share on other sites

If you really need to use a macro to re-size, then you need to use Filter > Distort > Equations. I wrote a macro to resize to a fixed maximum height or width here. You could easily adapt this to your needs.

John


Windows 10, Affinity Photo 1.8,3 Designer 1.8.3 and Publisher 1.8.3 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Share this post


Link to post
Share on other sites

Hi John,

thanks for the suggestion. I will have a look at that and then decide ... 

At first glance the suggestion of Walt seems more attempting and an easier way to go to me.

Walt has good arguments and a simple solution (carl123 also suggested it): "In any case, I would make that a separate macro, rather than trying to have one macro that does resizing and other actions."

I think my request is answered - no further comments needed. 

I thank all of you for fast and great support!

apollo_de
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.