Skip to main content
Inspiring
June 29, 2019
Answered

Resize layer effect proportional to images resize

  • June 29, 2019
  • 1 reply
  • 632 views

Hi,

when i use the resize function: app.activeDocument.resizeImage(...)

I noticed that layer effects will not scale.

If I have a stoke effect set to 100px it will still be 100 px even when i scale down the image by 50%.

Is there a way to scale the effect as well?

How can I flatten the image before scaling?

I tried activeDocument.mergeVisibleLayers();

but it reports that it is nit supported in my version of PS (2019)

Dan

This topic has been closed for replies.
Correct answer Tom Winkelmann

ActiveDocument.resizeImage doesn't resize layer effects

activeDocument.mergeVisibleLayers();

should work...

Post a full screenshot to find out why it doesn't  work for you.

You can also try...

activeDocument.flatten();

1 reply

karpiyonAuthor
Inspiring
June 29, 2019

i tried:

activeDocument.mergeVisibleLayers();

but it reports that "This function may not be available for this version of PS" I use 2019

Tom Winkelmann
Tom WinkelmannCorrect answer
Inspiring
June 29, 2019

ActiveDocument.resizeImage doesn't resize layer effects

activeDocument.mergeVisibleLayers();

should work...

Post a full screenshot to find out why it doesn't  work for you.

You can also try...

activeDocument.flatten();

karpiyonAuthor
Inspiring
June 29, 2019

I restarted PS and now it is working...

Thanks