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

Resizing Ajustment Layer with Mask after Unclipping


Recommended Posts

I ran into this problem today and I hope there is a better way to address;

 

1) After the 'Develop" persona step, I moved to the Photo personal and cropped a portrait photo for the size I was looking for

2) I started my editing and workflow which included selecting nd masking out the subjects eyes and then creating an adjustment layer/mask allowing my to increase the brightness of just the eyes.

3) After exporting the document, I realized I need to change the size and aspect ratio of the final image.

4)  Within the Photo Persona, I used "Document/Unclip Canvas" to reset the size of the document back to the original form.

 

This is where the problem arose.

 

The Adjustment Layer/Mask created in step 2 did not resize to the original document size and was now too small for the canvas creating notable boarders within the image.  IOW, the adjustment layer/mask for the eyes was smaller the the original document and as i had increased the 'brightness' there was a noticeable border around the document.

 

The attached image illustrates the problem.  Note the lighter boarder around the edges.

 

if i tried to adjust the size of this Adjustment Layer/Mask, it was scaled and the area used to highlight the eyes was also scaled and hence no longer over the eyes, but showing up on the forehead as two bright blotches.

 

So - is there any way to adjust the size of an adjustment layer/mask WiTHOUT scaling .... or do i simply need to adjust my workflow so that cropping is the last step ?

slice1.jpg

Link to comment
Share on other sites

Quote

... The Adjustment Layer/Mask created in step 2 did not resize to the original document size and was now too small for the canvas creating notable boarders within the image.  IOW, the adjustment layer/mask for the eyes was smaller the the original document and as i had increased the 'brightness' there was a noticeable border around the document. ...

Yes it behaves always like that when adjustment layers or live filter layer masks are used and the document size is changed afterwards (it's especially good visable when making the doc smaller afterwards here). This is probably a common bug with adjustment masks here, though I don't know if it has already be filed in as one (a bug).

During some tryouts I saw that you can only overcome to this, if you flatten or combine the visual layers (meaning building one single flattened layer out of the image layer and the adjustment mask) here before resizing the document.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

2 hours ago, v_kyr said:

Yes it behaves always like that when adjustment layers or live filter layer masks are used and the document size is changed afterwards (it's especially good visable when making the doc smaller afterwards here). This is probably a common bug with adjustment masks here, though I don't know if it has already be filed in as one (a bug).

During some tryouts I saw that you can only overcome to this, if you flatten or combine the visual layers (meaning building one single flattened layer out of the image layer and the adjustment mask) here before resizing the document.

 

I reported it, but Serif don't think messing up the design when resizing the document is a bug.

 

 

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

7 hours ago, toltec said:

I reported it, but Serif don't think messing up the design when resizing the document is a bug.

To be fair about it, I think he means it is not a bug in the traditional programming sense of a coding error that causes an incorrect or unintended result. In that respect he is probably right -- the app is working as intended -- but the real issue is if it should work like that or in a more user friendly way. I think we can agree that the more user friendly way is what users would prefer.

 

Anyway, considering what he said about resizing a document not keeping proportions on a layer by layer basis, there is another workaround besides flattening the layer first, which is to resize the parent layer(s) first & then resize the document appropriately. It is far from elegant & a royal PITA to have to do it that way, but it does work ... kinda. That is, the radius is scaled proportionally but the center point remains document oriented, so it still has to be adjusted. >:(

Edited by R C-R
restored missing text I clumsily deleted

All 3 1.10.8, & all 3 V2.4.1 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 hours ago, toltec said:

I reported it, but Serif don't think messing up the design when resizing the document is a bug.

 

If you apply a Depth of Field live filter layer (nested) on an image and afterwards resize the image doc, it leaves unsightly transparent areas in the image which you probably don't want to have there then.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

2 hours ago, R C-R said:

To be fair about it, I think he means it is not a bug in the traditional programming sense of a coding error that causes an incorrect or unintended result. In that respect he is probably right -- the app is working as intended -- but the real issue is if it should work like that or in a more user friendly way. I think we can agree that the more user friendly way is what users would prefer.

 

No, I think it must be a bug Thinking Face on Apple iOS 11.2

 

If you resize the D.O.F. filter inside a parent layer by dragging the parent layer handles, it works as it would be expected to. i.e. the D.O.F. filter resizes with the image. It also works if you use a Filter, as opposed to a Filter Layer. So why not when you resize the document with the Live Filter Layer nested ?

 

If I put text inside a layer and resize the document, both objects resize to their proportions.

text.png.ed7baae3ee01dee523ec597ae7427589.png

 

I just tried Live Perspective, and a few others. They nearly all screw it up, which makes them all but unusable without workarounds.

 

Even the lighting filter

5a882baf8f00a_koala1.jpg.cccf384e9f1b362e5eddcb1f5b702861.jpg

Before

 

koala2.jpg.2e4664fb57379e4f81745c5c86699c67.jpg

After resizing the document

 

If I nest the Live Filter and resize the parent layer.

5a882da21881b_koala5.jpg.62b3776933709434abae4dfed33cae1e.jpg

It is OK.

 

Imagine setting several Lights, Reflections etc, only to have everything move in relationship to where you put them. Ouch !

 

Funnily enough, the Vignette Filter does get it right when resizing.

5a882c8c84b9f_koala3.jpg.08b3fc44ca81c1b8ac01b73d330b2c88.jpg

5a882c8d143a8_Koala4.jpg.2d7d3480704dce82d821a197d14bc275.jpg

 

I can't honestly think that anyone would deliberately design it like that. If it looks like a bug and acts like a bug . . . 

 

bug.jpg.c36b035c0488feae9e38ed54b1afbdd0.jpg   Thinking Face on Samsung Experience 9.0

 

I just tried a few other Filters, and they all go wrong too. Pinch/Punch, Distort, Halftone and so on.  I could not try Defringe but if that went wrong too, it would have to be redone.

 

Strangely, If you paint on a Layer Mask the mask does rescale with the image, even although the Filter it is masking does not scale. Weird !

 

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

1 hour ago, toltec said:

No, I think it must be a bug

All I am saying is in the original programming sense, a software "bug" just refers to something that is not working as the programmer intended. It doesn't have anything to do with if that is what users want it to do.

All 3 1.10.8, & all 3 V2.4.1 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

10 minutes ago, R C-R said:

All I am saying is in the original programming sense, a software "bug" just refers to something that is not working as the programmer intended. It doesn't have anything to do with if that is what users want it to do.

 

OK, how about a "Design flaw" ?

 

I guess it depends on if the programmer designed it to make a mess of our carefully laid out designs, or not.  ;)

 

We may never know.

 

MITE.jpg.c630e56448b7770ef9ca9f310fc63799.jpg

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

1 hour ago, toltec said:

We may never know.

We may also never know how much time & effort it would take to rewrite & debug the code to do whatever as users we would like, or how that would affect improving other existing features or adding new ones.

All 3 1.10.8, & all 3 V2.4.1 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

15 minutes ago, R C-R said:

We may also never know how much time & effort it would take to rewrite & debug the code to do whatever as users we would like, or how that would affect improving other existing features or adding new ones.

 

True, but it is a pretty disastrous fault, bug, omission or whatever, when every single Live Filter Layer (except vignette) goes horribly wrong when resizing the document. That is a huge part of the Affinity Photo feature set, rendered next to useless.

 

When it comes to code, the code to resize the filter layers already exists. It is used every time the parent layer is resized with a Live Filter layer nested inside it. I'm sure Serif could quickly adapt it.

 

If I was reviewing Photo as a program, my rating would go from 4 stars to 2 stars if only half the features actually worked properly. Maybe less than 2.

 

I am a big Affinity fan and used to working round minor bugs and omissions, but that is truly awful.

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

5 minutes ago, toltec said:

True, but it is a pretty disastrous fault, bug, omission or whatever, when every single Live Filter Layer (except vignette) goes horribly wrong when resizing the document. That is a huge part of the Affinity Photo feature set, rendered next to useless.

I guess we will have to agree to disagree on that. I can't speak for anyone else, but the only time I want or need to resize a document is when I am exporting it to a raster format. Otherwise, I have no reason to resize it.

All 3 1.10.8, & all 3 V2.4.1 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

Try this

Before unclipping the document

Invert the adjustment/mask layer  (Ctrl + I on the thumbnail)

Then unclip

Then Invert the adjustment/mask layer again

Don't have time to test properly but it seemed to work on what I was working on

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

Interesting idea.

 

Mind you, on a product that is supposed to challenge Photoshop, can you imagine what Adobe would be saying about all the contortions needed to get a basic operation to work?

 

I'm sure they will be sleeping well tonight ;)

 

 

Windows PCs. Photo and Designer, latest non-beta versions.

Link to comment
Share on other sites

Moving things happening...

 

  • Open image
  • apply a live filter, i.e. lighting, I put the lighting effect to the side of the image to gauge movement.
  • Resize Document and lighting moves.
  • Now go to the History Panel and move back and forth through the history and observe where the lighting effect moves or doesn't move. You have to do this a few times. 

 

The lighting filter must know where it is relative to 0,0 so why doesn't it position correctly on reduction or enlargement, it does appear to scale though.

 

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

4 hours ago, firstdefence said:

Now go to the History Panel and move back and forth through the history and observe where the lighting effect moves or doesn't move. You have to do this a few times

Yikes!!! Do you see the position of the light randomly jump between two different points on (or off) the image like I do?

 

4 hours ago, firstdefence said:

The lighting filter must know where it is relative to 0,0 ...

Apparently, it does not. In fact, none of the live filters I have tried that have a center point adjustable on the canvas (spherical, pinch/punch, ripple, etc.) seem to save the center point coordinates as part of the filter's live settings -- only the settings that appear in the various live filter panels are saved. Since the x/y coordinates of the center point do not appear in the panels, there is no reference for positioning it if the document is resized ... or so I think.

 

EDIT: something else to try:

  • Enable Show Rotation Center on a layer
  • Resize Document
  • Check where the Rotation Center is now

Same issue, maybe?

All 3 1.10.8, & all 3 V2.4.1 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

@R C-R Yes thats what I see re lights, going to sleep now so will try the centre point tomorrow.

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

22 minutes ago, firstdefence said:

@R C-R Yes thats what I see re lights, going to sleep now so will try the centre point tomorrow.

Maybe tomorrow also try with the ripple, pinch/punch, or another of the live filters with an adjustable center point? Or just check out the 3 files in the attached Resize test.zip (448kb download) while you are having your morning coffee. The first is a simple 200 x 200 px striped test pattern; the second is that file with a live ripple filter centered on it; & the third is the second after being resized to 2X its original size.

 

The filter intensity remains unchanged after resizing at 200, as does the (apparent?) center point.

All 3 1.10.8, & all 3 V2.4.1 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

10 minutes ago, owenr said:

When you close and then later re-open a document, these live filters are positioned as they were, so they obviously have saveable positional parameters. You shouldn't assume that data doesn't exist just because it is not presented in the user interface.

Unless maybe those positional parameters are saved globally for the whole document, instead of individually for each live filter?

All 3 1.10.8, & all 3 V2.4.1 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

14 hours ago, firstdefence said:

...

The lighting filter must know where it is relative to 0,0 so why doesn't it position correctly on reduction or enlargement, it does appear to scale though.

 

If you add a small (1%) Point light to an image and measure it's x,y coordinates using guides, when you initially resize the image (e.g. larger) the x,y coordinates of the new Point light position are the same.

If the x,y coordinates for the Point light had been programmed in percentages rather than pixels then resizing the document would have had the expected results.

The madness with the history panel is either a bug or a case of collective hallucinations

 

lights2.jpg

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

15 minutes ago, owenr said:

Why do you say "unless"?

Long story short, because I wasn't thinking straight. (Illness in the family, not enough sleep, just getting old, take your pick.) :(

 

53 minutes ago, carl123 said:

The madness with the history panel is either a bug or a case of collective hallucinations

It isn't just the live Lighting filter either. I get equally weird results with the Ripple & Sphere ones as well. For example, I applied a 70 px sphere filter centered on my 200 x 200 px 1 test pattern.afphoto file, then resized the document to 400 x 400 px. The filter center did not move, so it was still at the approximate 100,100 position. But going back in the History panel to just before the resize, I get this:

sphere.png.2bceabeb7bedc12d5e389075210ca6d9.png

The document is back to 200 px & the sphere center is where it should be, but the Sphere alpha channel is still showing it as if it was applied to the pattern at 400 px. Going back & forth in the History panel I sometimes see the filter center & size as suggested by the alpha, applied as if it was ½ size & shifted to the upper left.

All 3 1.10.8, & all 3 V2.4.1 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

12 minutes ago, R C-R said:

 

It isn't just the live Lighting filter either. I get equally weird results with the Ripple & Sphere ones as well. For example, I applied a 70 px sphere filter centered on my 200 x 200 px 1 test pattern.afphoto file, then resized the document to 400 x 400 px. The filter center did not move, so it was still at the approximate 100,100 position. But going back in the History panel to just before the resize, I get this:

 

The document is back to 200 px & the sphere center is where it should be, but the Sphere alpha channel is still showing it as if it was applied to the pattern at 400 px. Going back & forth in the History panel I sometimes see the filter center & size as suggested by the alpha, applied as if it was ½ size & shifted to the upper left.

 

So are we talking bugs now ;)

Windows PCs. Photo and Designer, latest non-beta versions.

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.