Jump to content

How to resize a layer without making the edges blurry?


Recommended Posts

If I have a layer like so:

1904450747_Capturedecran2021-03-15a16_10_48.png.f665698fd1151280e33de2f27bf79cbb.png

And if I try to transform it, it will get blurry edges like so:

1708460688_Capturedecran2021-03-15a16_11_07.png.916c81cb466a7355bc8777e33de149b9.png

I'm wondering if there's a way to prevent this from happening?

So far I've found on the forum a "solution", which is to change the view quality. It works in the editor, but as soon as the image is exported the blurry edges are back.

Another solution I've found is to stack 5 times the same layer so that the transparency goes away. It works but that's a bit ridiculous and it's particularly tedious when you need to resize multiple layers.

So is there any actual solution to this?

Link to comment
Share on other sites

Looks like you are transforming a pixel selection. Enlarge a Pixel and it will have that weird edge happening.

MacBook Pro (13-inch, Mid 2012) Mac OS 10.12.6 || Mac Pro (Late 2013) Mac OS 11.6.8

Affinity Designer 1.10.5 | Affinity Photo 1.10.5 | Affinity Publisher 1.10.5 | Beta versions as they appear.

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

Link to comment
Share on other sites

What is missing is a "scale-up" by natural numbers which simply repeats each pixel instead of interpolating (smoothing).

The same is required for scale-down: allow to choose every x pixel instead of averaging.

 

Link to comment
Share on other sites

22 minutes ago, laurent22 said:

There's a selection on that screenshot, but I'm actually enlarging the layer (not a selection). I've just tried again with no active selection, and it still does it.

I've attached a sample file showing the issue. Simply select the layer, then resize it horizontally and you'll see the blurry edge.

SampleResize.afphoto 9.82 kB · 0 downloads

 

I've previously posted this method to stretch the layer and remove the feathering of the alpha. It definitely does work if you follow the instructions carefully.

  1. Activate Move Tool and select the unstretched layer.
  2. Cmd+click the layer's thumbnail in Layers panel to get a pixel selection marquee (marching ants) around it.
  3. Stretch the layer - the marquee will grow with the layer. The marquee is essential so do not remove it.
  4. In Channels panel, click the Composite Alpha thumbnail so that the RGB channels become hidden and non-editable.
  5. Ensure the primary colour is opaque and do Edit > Fill With Primary Colour (or use the secondary colour if you prefer) to eliminate the feathering of the layer's alpha.
  6. Click the circular arrow at top right of Channels Panel to restore all channels to visible and editable.
  7. Now the marquee can be removed.
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...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | 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.