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

Recommended Posts

  • Staff
On 8/19/2021 at 6:44 PM, R C-R said:

This is weird. Sometimes I see this kind of blurring on merge down, other times not, but I have not been able to work out what triggers it.

For example, in this dead simple Door.afphoto file, I can merge down the knob layer into the plate layer & there is no blurring. But merging the resulting layer or just the plate layer into the door layer causes blurring ... & the amount & position of the blurring is not the same for those two merges.

I am also sometimes seeing weird redraw issues for the thumbnails in the Layers panel if I use Merge Down followed by an undo -- sometimes the thumbnail shows the layer's contents off to one side & much smaller than it did before the merge & undo.

Hi R C-R,
This one if failing because the door layer's dpi differs from the other two (it was stretched and has 46x32dpi whereas the other two are 96 dpi). Rasterise the door layer, to set it to the same dpi as the rest of layers/document, then all will work/merge fine (no blurring).

Link to comment
Share on other sites

On 8/18/2021 at 11:14 AM, R C-R said:

Whenever I do not want my carefully & precisely placed & sized pixel objects arbitrarily moved, resized, or displaying stair-stepped jagged edges.

That doesn't make sense. The defect is that the entire image is blurred. To address (the coherent portion of) your concern, only the overlaying chunk need be resampled and merged down.

Meanwhile, I encountered this yet again and had to abandon Affinity Photo. It can't be trusted with this basic function. I got Pixelmator, which handles this operation just fine; even when the merged item has been stretched.

Link to comment
Share on other sites

39 minutes ago, Stokestack said:

That doesn't make sense. The defect is that the entire image is blurred.

The entire image is blurred because to me it would not make sense to blur just a "chunk" of it.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

The only part that needs to be "blurred" is the one being merged down; and even then only if it has been resized, or moved by fractional pixels. Once the chunk to be merged is brought into pixel alignment and DPI conformity with the underlying layer, each of its pixels can be mathematically blended with the one directly below it. Any other pixels in the composition should be untouched.

Link to comment
Share on other sites

On 9/8/2021 at 10:44 PM, Stokestack said:

The only part that needs to be "blurred" is the one being merged down; and even then only if it has been resized, or moved by fractional pixels. Once the chunk to be merged is brought into pixel alignment and DPI conformity with the underlying layer, each of its pixels can be mathematically blended with the one directly below it. Any other pixels in the composition should be untouched.

This is a mis-conception.

Merge down does exactly what it name says: it merges the upper layer into the lower. If DPI or position do not match exactly, the merge process produces blurriness by design, unavoidable. Think of an extreme example: Merging down a 100x100px layer into a 10x10px layer. 
There is no way to keep the result sharp.

So to avoid blurriness, you have 2 very simple options already explained by others:

  1. rasterize the lower layer to bring it into the correct resolution. (Preferred)
  2. swap both layers, to have the correct one in bottom position (more complex, same result as option 1 in best case)

Photo works perfectly fine.

Never the less, it would be great if Photo would ring an alarm bell if someone tries to merge down into a layer showing unsuitable DPI (not equal do document DPI), or uses non-integer position for the „down“ position layer.

If you are asking why photo doesn’t automatically rasterizes the „down“ layer: 

  • It is absolutely possible that an expert user wants the effect, or even uses higher DPI bottom layer. . 

left: high over low DPI

right: low over high DPI

image.png.f45a1da567e1ac2de670ae73e1f8621c.png

merge down DPI.afphoto

Edited by NotMyFault
Added file and screenshot

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

That is just wrong. What is the "correct" resolutioon?

"If DPI or position do not match exactly, the merge process produces blurriness by design, unavoidable"

Wrong. Only ONE of the images need be resampled, to match the other one. In every case where I've encountered this bug, I was merging a small area down onto a much larger (and non-resized) image. There is no reason the entire large image should be altered.

Link to comment
Share on other sites

  • Staff

Hi @Stokestack
I'm sorry for the inconvenience these issues are causing you. There's a few situations where rasterising the layer is necessary. There may also be some bug(s) somewhere.
Do you mind attaching a sample file where you are experiencing those issues please? It's a lot easier if we all start with the same reference file/are on the same page. If you wish i can provide an upload link so you can send the file privately - just let me know. Thank you.

Link to comment
Share on other sites

On 9/13/2021 at 5:38 AM, MEB said:

Do you mind attaching a sample file where you are experiencing those issues please? It's a lot easier if we all start with the same reference file/are on the same page.

Thanks for the follow-up. I'm happy to provide a file. In this one, select the top layer and merge down. Then do it again. The image degrades further each time.

And you'll note that these images are captured from a screen and cut & pasted into this document with no transformations. So there should be none of the much-debated resampling or DPI-related shenanigans. Not to mention that the hand-drawn portion was drawn right on top of the image, and merging it still causes degradation.

 

PhotoMergeDegrades.afphoto

Link to comment
Share on other sites

10 minutes ago, Stokestack said:

So there should be none of the much-debated resampling or DPI-related shenanigans.

The width of one & heights of both of your Background (Pixel) layers are not integer pixel values:

1968904503_Xformpanelupper.jpg.a22bc94e28cad0eeb75fe28ae7120c87.jpg 1403535228_Xformpanellower.jpg.c7eb5f6b3dca99b8b4415e6bfe728d63.jpg

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Why are they at two different dpi? 164 and 165? Why are their dimensions fractional pixels if they are just screen captures?

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | 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

  • Staff

@Hi @Stokestack,
Thanks for the file. As pointed out already you are merging two layers with different DPI's and also non-pixel aligned. If you rasterise the bottom layer before merging down, all should work without blurring. This is already logged to be looked at and I bumped/updated the issue to bring it up to devs attention again.
If you want to ensure it will work in all cases without having to mess/care about with decimal places, dpi's etc. remember to rasterise the bottom layer first.
Thank you all for your feedback/files/support.

Link to comment
Share on other sites

Thanks, but I never scaled these images, and "pixel alignment" was ON in Photo when I composed the document. Not to mention that any resampling need only be done once, on one of the mismatched elements.

Yes, these are screen shots with no extra manipulation other than cutting, pasting, and positioning. Their DPI should be the same. Nor did I enter non-integer values for anything.

Also, why would I "rasterize" a bitmap? This is not a reasonable step to expect anyone to guess. Nor have I seen it required in any other image-manipulation application for these simple layer operations.

I appreciate your escalation of the issue.

Link to comment
Share on other sites

18 minutes ago, Stokestack said:

Their DPI should be the same.

But it is not. One is 165 DPI, and the other is 164 DPI, and neither matches the document DPI of 144.

If you pasted them into a 144 DPI document, they each came in as an (Image) layer initially. If you resized them to make them fit into the document then you changed its DPI when doing that resizing, and apparently did not get them both to exactly the same size.

(Hint: One way of seeing this is to open the .afphoto file in Publisher, and then to select a layer and use Layer > Convert to Image Resource. Do that for both the screenshot layers, and you can see the difference.)

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

It doesn't matter how many times anyone repeatedly observes the situation. So what?

The same sequence of steps in any other image-manipulation program that I can find does not produce this blurring. So it must be possible to do it right.

Even Photo doesn't always do it. You can paste an image over another, resize its layer, and merge down without blurring in many instances. So the resizing theory really doesn't hold up.

Link to comment
Share on other sites

9 minutes ago, Stokestack said:

So the resizing theory really doesn't hold up.

But it does... and perhaps the only difference is other apps doesn't allow non integer pixel values in all cases (I can't remember entering/reading anything else that integer as pixel values in other apps).

Link to comment
Share on other sites

7 minutes ago, Stokestack said:

It doesn't matter how many times anyone repeatedly observes the situation. So what?

The "so what" is that the DPI's of the two bottom layers do not match those of the document or of each other.

Like Walt said, that won't happen without some sort of user input.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

Just now, Stokestack said:

And yet you don't say how.

There is no way for any of us to know that unless we know exactly how you added those two bottom pixel layers to the file & if you did anything to them afterwards.

One way to do that would be enable Save History with Document on the File menu, & then recreate the file from scratch. Post that file so we can see how it happened, or if it is a bug.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

I have been using Affinity Photo for some time for pixel art. There are no issues with merging layers **as long as you make sure everything is the same dpi and pixel aligned**

The problem IMO is that not everything pixels aligns even when you have all the 'snap to pixel' settings set to 'on'. Copy/paste for example often pastes at fractional pixels. Plus the interface is obtuse, there are far too many options and it should be much easier to select a single preference saying you only want to work at an integer pixel level.

But, as long as you make sure everything is pixel aligned, merging layers does not blur!

 

Link to comment
Share on other sites

1 hour ago, Wosven said:

We notice the different PPI in your files, nothing more to say.

That has nothing to do with your "but it does" claim, which was in response to this:

Quote

Even Photo doesn't always do it. You can paste an image over another, resize its layer, and merge down without blurring in many instances. So the resizing theory really doesn't hold up.

So again: How?

15 minutes ago, BitBull said:

The problem IMO is that not everything pixels aligns even when you have all the 'snap to pixel' settings set to 'on'. ..

But, as long as you make sure everything is pixel aligned, merging layers does not blur!

So... we're supposed to use the option that doesn't work, to prevent the behavior that shouldn't happen.

Link to comment
Share on other sites

7 minutes ago, BitBull said:

Copy/paste for example often pastes at fractional pixels.

When pasting pixel images, I can sometimes have one of their x or y coordinates to be at a fractional pixel location but so far I have been unable to paste anything where the width & height was anything other than integer pixel values.

Do you maybe have a 'recipe' for pasting an image to a non-integer pixel width or height?

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

7 minutes ago, Stokestack said:

That has nothing to do with your "but it does" claim, which was in response to this:

It is undeniably true that the DPI's of two of your layers in your example file are not identical, nor do they match the DPI of the document itself. That can easily be explained if you resized those layers; otherwise there is no other explanation than a bug nobody else seems able to reproduce.

All 3 1.10.8, & all 3 V2.4.2 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

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.