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

Avoid anti aliasing when resizing image


Recommended Posts

I was searching through the forum but don‘t seem to get a definite answer to my question.

I’m working with lineart that has completely sharp edges. Whenever I resize (both in Designer and Photo) I get a smoothed out result. Is there any way to avoid this?

Also, moving a selected portion of the lineart around on the same layer (in Photo) results in smoothed out lines.

Any help is greatly appreciated 🙏

Link to comment
Share on other sites

There are countless threads covering the topic.

It depends on you actual file size and resize factor, and your intention about resizing- there are many possibilities.

You want to upscale by factor 2, 3, or 4, and get smooth diagonals (but without blurriness)

or do you want to keep the original blockiness, e.g. make every individual pixel x times larger without smoothing diagonals and other lines?
 

Please give us a concrete example document and exact resizing intentions.

Photo or Designer?
resize document, for export, or resize Layer within document?
Having trouble with anti-aliasing?
Having trouble with blurry selections?
 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

So, for resizing an imported image in Designer I have found a working solution by exporting a tiff file from Photo using the “nearest” option. No smoothing of lines when resizing it in Designer. 👍

But resizing a layer created inside of Photo (e.g. hard lines with the threshold function > flattened) or even just moving a selected portion of that layer results in smoothed line. Here is a clip:

 

Link to comment
Share on other sites

Ok, resizing within a document always uses Bilinear Resampling, see:

The basic workaround is to use copy / new from clipboard / Pixel Art resize / copy / paste back. When exporting, use "nearest neighbour".

When moving objects, have snapping active, and "Force Pixel Alignment".

When selecting with Lasso (freehand) tool, check settings:

  • anti-aliasing off
  • feather 0 px / off

You get more accurate results if converting selections to masks (create mask), and then ensure a hard edge for the mask by PT filter with formula A=step(A,1/2). This ensures selections are 0 or 100%, and nothing in between.

 

To Summarise, you need to ensure all factors are perfectly managed:

  1. create hard selections (AA off, feather off)
  2. snapping (force pixel alignment, no move by whole pixels)
  3. show transfer panel, have 6 digits for pixel
  4. Use pixel as unit for documents 
  5. Use pixel as unit for lines
  6. Use nearest neighbour for Export
  7. Use Pixel Art resize
  8. use integer factors when resizing layers (but avoid this)
  9. use document size with whole integer for x and y
  10. activate grid with 1px (or 8px + 8 divisions) 
  11. if you resize a layer inside a document, rasterise immediately and check for unwanted blurriness. Undo and correct if required.
  12. Never use "merge down", except the lower layer has been rasterised immediately before (or you are sure its perfectly aligned and has document DPI)

This list is probably incomplete ;-)

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

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.