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

Affinity Photo Transform Selection


Recommended Posts

Hello everyone,


I'm trying to switch from Photoshop to Affinity Photo and I cannot get over a weird thing that is happening when transforming a selection. In Photoshop when you transform a selection is "extends" pixels, but in Affinity Photo it looks like it "stretches" them in a weird way, where the layer gets some kind of a shadow. Please see the attached picture. I make a selection and use the move tool with the upper or lower point to transform the selection. Would anyone know how to transform a selection in a similar way that Photoshop does?


Thank you in advance!

s4l8hxt.png

Link to comment
Share on other sites

Welcome to the forums @jankljuc

Photo doesn’t do this the same way that Photoshop does.

As you have seen, Photo ‘stretches’ the pixels in the selection – the ‘content’ of each original pixel is ‘shared’ between the new pixels so that transparency is introduced where the ‘content’ becomes ‘thinner’.

Think of stretching a balloon, where the material of the balloon becomes lighter in the areas which are stretched because there’s less material in those areas.

As far as I know the only way to alleviate the effect is to duplicate the ‘stretched’ layer until the transparency isn’t as noticeable and then, if necessary, merge the duplicated layers. If there is a better way of doing this then I would also like to know about it.

There have been requests for this to change.

Link to comment
Share on other sites

39 minutes ago, GarryP said:

Welcome to the forums @jankljuc

Photo doesn’t do this the same way that Photoshop does.

As you have seen, Photo ‘stretches’ the pixels in the selection – the ‘content’ of each original pixel is ‘shared’ between the new pixels so that transparency is introduced where the ‘content’ becomes ‘thinner’.

Think of stretching a balloon, where the material of the balloon becomes lighter in the areas which are stretched because there’s less material in those areas.

As far as I know the only way to alleviate the effect is to duplicate the ‘stretched’ layer until the transparency isn’t as noticeable and then, if necessary, merge the duplicated layers. If there is a better way of doing this then I would also like to know about it.

There have been requests for this to change.

Is this behavior changed in Affinity Photo 2.10 beta 1732?

I can’t reproduce this - for me it is the Adobe Photoshop way of stretching that occurs when doing the above example…

Happy amateur that playing around with the Affinity Suite - really love typograhics, photographing, colors & forms...

Macbook Pro 16” M1 2021, iPad Pro 12.9” M1 2021, iPad Pro 10.5” A10X 2017, iMac 27” 5K/i7 late 2015…

Link to comment
Share on other sites

Thank you everyone for a reply. Maybe I should mention that I'm also running version 2.0.4 on macOS. @GarryP I think it's not as obvious on your end, because you are dealing with much bigger squares that I did. The example of squares I posted were much smaller in comparison to yours.

@HilltopWhat if you try grabbing just the upper or the lower point and then "stretch"?

Link to comment
Share on other sites

The smaller the initial selection, the larger the ‘stretching’ will be because there are fewer pixels to ‘stretch’.

In other words, the amount of ‘content’ in the pixels being ‘stretched’ is smaller so that ‘stretched content’ has to cover a larger area and gets ‘stretched’ more.

Link to comment
Share on other sites

Maybe a better way of thinking about it is this:

Imagine dripping a small drop of dark paint onto a while tile.
The drop looks dark because the paint is mostly in the same place and so all of the ‘pigment’ in the paint is mostly in the same place making it look dark.

Then imagine spreading that drop over the white tile.
There is the same amount of paint, and therefore the same amount of ‘pigment’, but, because it’s spread over a larger surface area, the colour isn’t as dark as it was when it was all in one drop.

The pixels being ‘stretched’ are the ‘pigments’ in the paint, the larger the area the lighter they will look.

Link to comment
Share on other sites

43 minutes ago, GarryP said:

at the transitions to transparency at least – see attached video.

Do you have pixel perfect drawing and selection? My "stretch" is completely clean.

image.png.3409be4a4748866e02b36c14e490a058.png

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.2.1.2075
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.2506.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.2506.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

6 minutes ago, Pšenda said:

Do you have pixel perfect drawing and selection?

I’m pretty sure that I did.
My pixel snapping is set to Force Pixel Alignment and my Transform Panel shows me integer values (Decimal Places set to 3 in Preferences / User Interface), as can be seen in my earlier video.
If I’ve missed something then please tell me.

The effect can be seen more easily by using the Column Marquee Tool to make the selection, copying the selection and pasting, and then dragging one of the left/right sizing handles.

Link to comment
Share on other sites

6 hours ago, jankljuc said:

Hello everyone,
I'm trying to switch from Photoshop to Affinity Photo and I cannot get over a weird thing that is happening when transforming a selection. In Photoshop when you transform a selection is "extends" pixels, but in Affinity Photo it looks like it "stretches" them in a weird way, where the layer gets some kind of a shadow. Please see the attached picture. I make a selection and use the move tool with the upper or lower point to transform the selection.

 

The "shadow" in your example is the dark background being revealed where the pixels of the stretched layer have reduced opacity.

The opacity reduction is a result of bilinear resampling of both the alpha of pixels in the coloured layer and alpha of pixels in the selection mask.

 

Link to comment
Share on other sites

Just for interest - strange behavior.

 

 

58 minutes ago, jankljuc said:

i believe it's pixel perfect

To be sure - "Move by whole pixel" must be Off. 

 

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.2.1.2075
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.2506.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.2506.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Any useful solution to this problem (using any other tool, changing some settings, etc.) or some kind of a workaround would be much appreciated, because currently I still need to use Photoshop to do this thing and then use Affinity Photo to continue with my edit. Thank you in advance!

Link to comment
Share on other sites

32 minutes ago, jankljuc said:

Any useful solution to this problem (using any other tool, changing some settings, etc.) or some kind of a workaround

Attached is a macro named 'Fill alpha of selected pixels'.

Fill alpha of selected pixels.afmacro

To use it:

  1. Select the region of pixels to be stretched
  2. Press cmd+J to duplicate the region to a new Pixel object
  3. Do not clear the pixel selection and do not deselect the object
  4. Press V for Move Tool and stretch the object
  5. Run the macro to make the stretched object entirely opaque

 

Link to comment
Share on other sites

You might be able to work around simple compositions, but as there is nothing like this available in Photo:

image.thumb.png.bf16382c5711bb7ab9d9d0e7f84d388b.png

...I think that you just need to cut (or copy), paste [a new document from Clipboard (File > New From Clipboard)], then do Document > Resize Document:

image.png.57f1dce9c50f0106cf344d01db4fc07a.png

...and paste back:

image.thumb.png.643166ae4ea59631b186aff7551f6b16.png

 

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.