Jump to content
You must now use your email address to sign in [click for more info] ×

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 
 

Link to comment
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

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
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

Link to comment
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
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
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.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC

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

Link to comment
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
 

Link to comment
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.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | 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.