Skip to main content
ChristianK-Fr
Inspiring
June 19, 2024
Answered

Script to Fit and align to guidelines selection from layer

  • June 19, 2024
  • 1 reply
  • 487 views

Hi, heres's there a way in Javascript for automate a lot of images to fit/resize to vertical guidelines and align the bottom of the selection to horizontal bottom guideline like example above ? Thanks for your help, Regards, Christian

This topic has been closed for replies.
Correct answer Stephen Marsh

@ChristianK-Fr 

 

You will need to add a fourth horizontal guide at the very top of the canvas (not the object), I haven't tested this script, however, it appears to be exactly what you're looking for.

 

https://www.marspremedia.com/software/photoshop/#fit-to-guides

 

1 reply

Stephen Marsh
Community Expert
Stephen MarshCommunity ExpertCorrect answer
Community Expert
June 19, 2024

@ChristianK-Fr 

 

You will need to add a fourth horizontal guide at the very top of the canvas (not the object), I haven't tested this script, however, it appears to be exactly what you're looking for.

 

https://www.marspremedia.com/software/photoshop/#fit-to-guides

 

ChristianK-Fr
Inspiring
June 25, 2024

Hi Stephen, 

Thanks for your answer, finally I made my own script and it's works ! Thanks , Regards, Christian

 

Stephen Marsh
Community Expert
Community Expert
June 25, 2024
quote

Hi Stephen, 

Thanks for your answer, finally I made my own script and it's works ! Thanks , Regards, Christian

 


By @ChristianK-Fr

 

 

Would you mind sharing it? I can mark it as a correct answer to indicate to others searching for a solution that one was found.