jankljuc Posted March 27 Share Posted March 27 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! Quote Link to comment Share on other sites More sharing options...
GarryP Posted March 27 Share Posted March 27 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. Quote Link to comment Share on other sites More sharing options...
AffinityMakesMeSmile Posted March 27 Share Posted March 27 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… Quote 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 More sharing options...
Hilltop Posted March 27 Share Posted March 27 Just tried this in APh 2.0.4 and I don't see what the OP described. The selected bitmap is extended w/o 'stretching issues'. Quote Link to comment Share on other sites More sharing options...
GarryP Posted March 27 Share Posted March 27 It doesn’t seem to be as obvious to me in V2.0.4 as it was in V1 but there’s still some ‘stretching’, at the transitions to transparency at least – see attached video. But maybe I'm doing something wrong. 2023-03-27 12-35-18.mp4 Quote Link to comment Share on other sites More sharing options...
jankljuc Posted March 27 Author Share Posted March 27 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"? Quote Link to comment Share on other sites More sharing options...
GarryP Posted March 27 Share Posted March 27 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. Quote Link to comment Share on other sites More sharing options...
GarryP Posted March 27 Share Posted March 27 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. Old Bruce 1 Quote Link to comment Share on other sites More sharing options...
Pšenda Posted March 27 Share Posted March 27 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. Quote 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 More sharing options...
Hilltop Posted March 27 Share Posted March 27 30 minutes ago, jankljuc said: @HilltopWhat if you try grabbing just the upper or the lower point and then "stretch"? That's what I did. First the upper handle and then the lower, and next the screenshot. Quote Link to comment Share on other sites More sharing options...
GarryP Posted March 27 Share Posted March 27 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. Quote Link to comment Share on other sites More sharing options...
Hilltop Posted March 27 Share Posted March 27 I took another look and with a magnification of close to 600%, there's some blurriness at the edges that were extended: Quote Link to comment Share on other sites More sharing options...
jankljuc Posted March 27 Author Share Posted March 27 24 minutes ago, Pšenda said: Do you have pixel perfect drawing and selection? My "stretch" is completely clean. Yes, i believe it's pixel perfect. Problem.mp4 Quote Link to comment Share on other sites More sharing options...
lepr Posted March 27 Share Posted March 27 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. Quote Link to comment Share on other sites More sharing options...
Pšenda Posted March 27 Share Posted March 27 Just for interest - strange behavior. Video_2023-03-27_154215.mp4 58 minutes ago, jankljuc said: i believe it's pixel perfect To be sure - "Move by whole pixel" must be Off. Quote 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 More sharing options...
jankljuc Posted March 27 Author Share Posted March 27 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! Quote Link to comment Share on other sites More sharing options...
lepr Posted March 27 Share Posted March 27 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: Select the region of pixels to be stretched Press cmd+J to duplicate the region to a new Pixel object Do not clear the pixel selection and do not deselect the object Press V for Move Tool and stretch the object Run the macro to make the stretched object entirely opaque Quote Link to comment Share on other sites More sharing options...
lepr Posted March 27 Share Posted March 27 Here's another method by @thomaso: Quote Link to comment Share on other sites More sharing options...
lacerto Posted March 28 Share Posted March 28 You might be able to work around simple compositions, but as there is nothing like this available in Photo: ...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: ...and paste back: Quote Link to comment Share on other sites More sharing options...
jankljuc Posted March 28 Author Share Posted March 28 Thank you everyone for the suggestions and help. Really appreciate it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.