jankljuc Posted March 27, 2023 Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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...
AffinityMakesMeWonder Posted March 27, 2023 Share Posted March 27, 2023 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 guy playing around with the Affinity Suite - really love typographic, photographing, Color & forms, AND, old Synthesizers from the 1980-1990’s… Macbook Pro 16” M1 2021 connected to an 32” curved 5K external display, iPad Pro 12.9” M1 2021, iPad Pro 10.5” A10X 2017, iMac 27” 5K/i7 late 2015 - also an Lenovo iMac i7 clone with 24” touch screen and Windows 10… Link to comment Share on other sites More sharing options...
Hilltop Posted March 27, 2023 Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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, 2023 Author Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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.4.0.2301 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.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. 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, 2023 Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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, 2023 Author Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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.4.0.2301 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.3155. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155. 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, 2023 Author Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 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, 2023 Share Posted March 27, 2023 Here's another method by @thomaso: Quote Link to comment Share on other sites More sharing options...
lacerto Posted March 28, 2023 Share Posted March 28, 2023 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, 2023 Author Share Posted March 28, 2023 Thank you everyone for the suggestions and help. Really appreciate it. Quote Link to comment Share on other sites More sharing options...
Reitei17 Posted June 14 Share Posted June 14 hi, i downloaded the Fill alpha of selected pixels.afmacro, but i cant import it. when i drag it says not an affinity doc, when i import from macro and from the library i cant find that file. it is hidden means it is not the supported file Quote Link to comment Share on other sites More sharing options...
R C-R Posted June 14 Share Posted June 14 35 minutes ago, Reitei17 said: hi, i downloaded the Fill alpha of selected pixels.afmacro, but i cant import it. when i drag it says not an affinity doc, when i import from macro and from the library i cant find that file. it is hidden means it is not the supported file It should be wherever you downloaded it to, probably your Downloads folder if you are on a Mac. You should be able to search on its file name to find it if you don't see it there. Also note that you can only import *.macros files (note the plural) in the Library panel. Individual *.macro (note the singular form) into the Macro panel, & only when you have a document open to receive it. Quote All 3 1.10.8, & all 3 V2.5.5 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
Reitei17 Posted June 15 Share Posted June 15 (edited) ok it works with open document, thank you Edited June 15 by Reitei17 Quote Link to comment Share on other sites More sharing options...
lepr Posted June 15 Share Posted June 15 (edited) Also, after importing the .afmacro file to the Macro panel, it can be saved from there into your macros library. Edited June 15 by lepr typo 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.