Jump to content

Recommended Posts

Posted

Hello - I just downloaded Affinity.  The very first thing I tried was to select an area of my image, but I want to constrain it to an aspect ratio.  This is something I have to do a lot.  But I don't see the setting for that.  Is there one?  I didn't see a similar question in the forums, sorry if I missed it.

Thanks

 

Posted

Hi @sabibo, Welcome to the Affinity forums.

You could use the Crop Tool with various constraint/ratio options.

Bildschirmfoto2024-08-03um16_40_38.thumb.jpg.3ec37ad4e38dc7b2e5fb430e315af1be.jpg

There are quite a few threads in the forum about cropping / aspect ratio / size. But the forum search engine requires and finds exact terms only, so if you enter your question in an internet search with the addition (site: …) to search in the Affinity forum only you may get more wanted results:

>> select an area of my image, but I want to constrain it to an aspect ratio  site:https://forum.affinity.serif.com <<

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted

Welcome to the Affinity forums, @sabibo.

First, which of the Affinity applications are you using? I'll assume Affinity Photo for the rest of this, pending your response.

Next, what will you want to do after you make the selection? That may help determine what is the best way to go. For example, if your intent is to Crop the image, then using the Crop Tool rather than making a pixel selection will offer the aspect ratio you're interested in, and is what I would normally use.

But it could be done using the Rectangular Marquee Tool. Make a selection approximately the size you want, then adjust it using the W and H fields in the Transform panel. If you click the chain icon to preserve aspect ration, when you adjust one of those values the other will adjust automatically.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.5

  • 1 month later...
Posted (edited)

Sorry to necro this thread, but I think the question is quite valid using Affinity Photo.

But let me use a real-life example. Quite often I have to select parts of a photo for, say, a Pinterest post. If I would use Photoshop, I'd set 'Fixed Ratio' under Style in the Marquee Tool and then set Width to 10, Height to 15 so I have a perfect Pinterest post aspect ratio. Then I can just freely select parts, experiment a bit and find a good cutout for the end result.

As a tiny bonus question: does anyone know how to enable keyboard shortcuts in file save dialogs? I'm very used to be able to press D when prompted with a "do you want to save this document" dialog. EDIT: Command+Delete is "Don't Save"!

Edited by Carloes
Posted
2 hours ago, Carloes said:

As a tiny bonus question: does anyone know how to enable keyboard shortcuts in file save dialogs? I'm very used to be able to press D when prompted with a "do you want to save this document" dialog. EDIT: Command+Delete is "Don't Save"!

Welcome to the Affinity forums.

What OS do you use, and what prompts are you getting? Screenshots would be nice.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.5

Posted
2 hours ago, Carloes said:

so that part is solved.

… wasn't the other part already solved before your post?

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted
2 hours ago, Carloes said:

Unless you can tell me how you can set an aspect ratio on the marquee tool?

We cannot. You may have to change how you work. You can set a fixed aspect ratio with the crop tool, the problem is that you cannot see the area/image outside the cropped area. 

EDIT: fixed a mis-observation on my part and revealed by @walt.farrell.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
Just now, Old Bruce said:

We cannot. You may have to change how you work. You can set a fixed aspect ratio with the crop tool, the problem is that you cannot see the area/image outside the cropped area. 

Thank you for your answer! Too bad Affinity Photo cannot do that, hopefully the developers will implement it in the future.

Posted

Create a rectangle with the correct aspect ratio you want

Lower the opacity of that rectangle

When done turn that rectangle into a pixel marquee with Select > Selection from Layer & Delete

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.

Posted
2 hours ago, Old Bruce said:

You can set a fixed aspect ratio with the crop tool, the problem is that you cannot see the area/image outside the cropped area

Can you explain what you mean by that? I can see areas outside the crop box.

image.png.ee2577fe699d056c4674d78a7e6a7b81.png

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.5

Posted
11 minutes ago, walt.farrell said:

Can you explain what you mean by that? I can see areas outside the crop box.

Weird, when I checked earlier I couldn't. Now I can. Not sure what happened.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
3 hours ago, Carloes said:

No? Unless you can tell me how you can set an aspect ratio on the marquee tool?

As mentioned in Walt's first post, you can use the Transform Panel to set the size of the marquee with a desired aspect ratio.

Start with any marquee, then enter the wanted ratio, here for instance Din A4 …

Bildschirmfoto2024-09-10um22_36_16.jpg.5daf4102571f78c76f4bf8efbd91eda3.jpg

…then close the 'lock' + enter the wanted width to get the according height, or vice versa:

Bildschirmfoto2024-09-10um22_39_41.jpg.89b7c400d96064f8fd22f5a9da66e17d.jpg

If you want to create a selection by dragging you need indeed a workaround: Create an empty Pixel layer and switch to the MoveTool which enables you to drag the handles together with the marquee…

Bildschirmfoto2024-09-10um22_50_31.jpg.21b91817d4ec5843a4de25a053de52f4.jpg

… with or without Shift key pressed, according to your preference setting:

Bildschirmfoto2024-09-10um23_00_43.jpg.87f879ea162b0211ee177e5554eec658.jpg

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted
7 hours ago, Old Bruce said:

Weird, when I checked earlier I couldn't. Now I can. Not sure what happened.

Not sure if this will explain it but if I crop an image with the Crop Tool then the cropped out part won't show after I hit Apply. But if I then reselect the Crop Tool & do not have "Reveal" checked, I can't see the cropped out area until I reenable that option.

All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

  • 7 months later...
Posted

The solution highlighted by Tomaso works very nicely, but I wonder why there is no way to do this directly when the marque tool is selected… if I remember well, the previous version of Affinity Photo actually allowed to do it easily, same implementation as in the crop tool, not sure why this feature has been removed…

Posted

@lucaben On my Mac, it gives me a perfectly square or round aspect ratio if I hold down the Cmd key while dragging when using the Marquis tool.

2024 MacBook Pro M4 Max, 48GB, 1TB SSD, Sequoia OS, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish, Wacom Intuos 4 PTK-640 graphics tablet, 2TB OWC SSD USB external hard drive.

Posted
10 minutes ago, Ldina said:

@lucaben On my Mac, it gives me a square or round aspect ratio if I hold down the Cmd key while using the Marquis tool.

Same for me, so I wonder if @lucaben is using Windows if holding down the Control key would do the same ... or if the status bar indicates that it will....

All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted

@Ldina The goal is to have the Marquee tool open, then define a ratio (say 1:2 because you need to make Pinterest posts), and then being able to drag the marquee tool around to select a part of an image. You can do this in Photoshop if you open the Marquee tool and then select "Fixed Ratio". In Affinity Photo the option to crop a ratio exists, but you resize the crop area instead of being able to drag a marquee tool.

I still hope the team adds this functionality at some point, because it's what is keeping me from switching fully to Affinity.

Posted
1 minute ago, Carloes said:

In Affinity Photo the option to crop a ratio exists, but you resize the crop area instead of being able to drag a marquee tool.

Not sure exactly what you mean by that but you can drag around the 'marching ants' marquee selection if the Mode: is set to New.

A less convenient way to do this is to click on Quick Mask in the toolbar (or use the Q keyboard shortcut) & switch to the Move tool. You can then drag or resize the marquee 

All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
On 9/10/2024 at 4:07 PM, thomaso said:

Start with any marquee, then enter the wanted ratio, here for instance Din A4 …

Maybe I am missing something obvious, but how do you set a ratio in the Transform panel for a 'marching ants' marquee selection?

Same question for what @Carloes said about an option to crop a ratio of a 'marching ants' marquee selection.

All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
1 minute ago, R C-R said:

Maybe I am missing something obvious, but how do you set a ratio in the Transform panel for a 'marching ants' marquee selection?

As @thomaso mentioned earlier in the thread, by adding the marquee selection to a blank pixel layer and then selecting the Move Tool... This will allow you to set width and height values for the selection...

Affinity Designer 2.6.3 | Affinity Photo 2.6.3 | Affinity Publisher 2.6.3
MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Posted
16 minutes ago, Hangman said:

As @thomaso mentioned earlier in the thread, by adding the marquee selection to a blank pixel layer and then selecting the Move Tool... This will allow you to set width and height values for the selection...

??? Blank (empty) or not, I can enter pixel numbers (document units like pixels or cm's) for w or h values but I am asking how to set a ratio (in the Transform panel or elsewhere).

EDIT: Say I want to set a marquee I dragged out to an arbitrary size, like 200 x 600 px. I want to change it so the ratio is 2:3 (like say 200 x 300 px). Obviously, I can easily do the math for something this simple & just manually change 600 to 300, but  there does not seem to be any way to set the ratio directly in the Transform panel.

Can someone please show me a step by step way to do this?

All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted
59 minutes ago, R C-R said:

Say I want to set a marquee I dragged out to an arbitrary size, like 200 x 600 px. I want to change it so the ratio is 2:3 (like say 200 x 300 px). Obviously, I can easily do the math for something this simple & just manually change 600 to 300, but  there does not seem to be any way to set the ratio directly in the Transform panel.

Sorry, yes, it's a case of doing the math, I'm afraid, there is no other way to achieve this...

Affinity Designer 2.6.3 | Affinity Photo 2.6.3 | Affinity Publisher 2.6.3
MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Posted
3 minutes ago, Hangman said:

Sorry, yes, it's a case of doing the math, I'm afraid, there is no other way to achieve this...

What would be ideal is if the Transform panel would take expressions like H*3/2 for W or the like.

All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

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.