xKeNcHii / Mockup-Automation-Script

Automate image processing in Adobe Photoshop using Smart Objects. Select an input folder with images, an output folder to save the processed images, and PSD mockup files. Replace Smart Object layer's content in each mockup file with each image in input folder and save processed images. Includes JS code and instructions.
MIT License
15 stars 1 forks source link

Processimage function declares twice #2

Open schroef opened 11 months ago

schroef commented 11 months ago

I was looking at your version of replace smartobject as I was positive notes here by someone which wanted some help.

I've worked on a different version and also made another version which can also handle perspective transformed or skewed images.

When I looked at your code, I noticed you have declares the same function, processikage, twice. They are almost the same, minor don't fferent near the end of the function. Wonder why you have 2 with identical names

schroef commented 11 months ago

Also, how does your version handle perspective transformed images. Because the original script is worked will destroy that. Because the script will simple replace the linked smartobject and thus also replace the transformation