• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Photoshop script to fill canvas without cropping

New Here ,
Jan 08, 2023 Jan 08, 2023

Copy link to clipboard

Copied

Hi everyone!

I am looking for a script that would resize the selected layer to fill the canvas without cropping and center it.

As I have no coding background, I was trying to have a script writte by AI, but I couldnt make it work perfectly.

A solution would be greatly appreciated.

Thanks, Alex

TOPICS
Actions and scripting , Windows

Views

268

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Jan 08, 2023 Jan 08, 2023
Naturally scaling the Layers as plain pixel Layers would be a bad idea, so assuming they are Smart Objects the second Script in this thread might help: 

Votes

Translate

Translate
Community Expert , Jan 08, 2023 Jan 08, 2023

There are many example scripts on the forum, here are two.

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/fit-layer-to-canvas-keeping-aspect-ratio/m-p/10519295#M252048

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/image-fit-to-canvas-option/m-p/10481852#M247430

 

If these don't help, it may be best to clearly state how you wish landscape orientation layers should be handled in portrait canvas... And how portrait orientation layers are to be handled in landsca

...

Votes

Translate

Translate
Adobe
Community Expert ,
Jan 08, 2023 Jan 08, 2023

Copy link to clipboard

Copied

Naturally scaling the Layers as plain pixel Layers would be a bad idea, so assuming they are Smart Objects the second Script in this thread might help: 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2023 Jan 08, 2023

Copy link to clipboard

Copied

There are many example scripts on the forum, here are two.

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/fit-layer-to-canvas-keeping-aspect-ra...

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/image-fit-to-canvas-option/m-p/104818...

 

If these don't help, it may be best to clearly state how you wish landscape orientation layers should be handled in portrait canvas... And how portrait orientation layers are to be handled in landscape canvas. Do you wish the layer to be stretched/distorted to fit, or proportionally scaled with letterboxing etc.

 

Visual examples with before/after are also great for clearly communicating your goals.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2023 Jan 08, 2023

Copy link to clipboard

Copied

Good one, I had not picked up on the non-proportional implication of the wording. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 08, 2023 Jan 08, 2023

Copy link to clipboard

Copied

LATEST

Thank you very much, I can use all of the mentioned scripts, probably solved some problems which I didnt know I had as well 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines