Skip to main content
Participant
November 19, 2018
Question

Batch automating... batch automation!

  • November 19, 2018
  • 1 reply
  • 279 views

Hi forum pals!

I feel like theres a solution out there, but just need a gentle nudge in the right direction.

I am looking to bulk resize and rename files. To give some context, I have artwork that fits perfectly onto an iPhone 6 phone case template. I'd like to batch create all of the other iPhone sizes and rename as appropriate.

For example, lets say i have a file...

iphone6-design1.jpg

I would like to generate...

iPhone7-design1.jpg

iPhone7Plus-design1.jpg

iPhone8-design1.jpg

iPhone8Plus-design1.jpg

iPhoneX-design1.jpg

and so on.

Now an important factor, is that these templates will all be different sizes and in some cases slightly different aspect ratios. As such, the action that I record is generally...

- Resize the canvas

- Resize the single layer that sits in the jpg file... keeping it centred at all times. I'd either increase or decrease size depending on whats required. It would be resized until there is no transparent space in the document... sometimes this is when it hits the top/bottom and sometimes the sides... all depends on the aspect ratio of the template in question.

I've managed to record actions which can complete the process of creating one template...i.e. make changes to iPhone7-design.jpg to make it what I need for iPhone X, then save as iPhoneX-design1.jpg. I'm also comfortable with batch automation, so take all files in a folder and batch run an action... such as going from iPhone 7 to iPhone X.

What I am struggling with, is finding a way to batch automate the batch automation! By this, I mean... I'd like to chuck say 500 iPhone6 jpgs into a folder, I'd like to then hit ONE button and it batch creates all of the other iPhone jpeg templates.

It may be that scripting is required... if thats the case, can anyone recommend an expert? Or there may be a plugin that does what I require that I'm yet to find.

I just dont feel like I'll be the first person who wants to do something like this!


Any help is hugely appreciated. If I'm not explaining myself well and need to clarify further, let me know!

Thanks,

Mark

    This topic has been closed for replies.

    1 reply

    JJMack
    Community Expert
    Community Expert
    November 20, 2018

    I do not have an iPhone  but if different iphone models have different aspect ratio displays  you can not simply resize your artwork.  You need to decide how you want to handle iPhone the have a display aspect ratio that does not match your artwork's aspect ratio.  You may need to use some Photoshop Scripting.  Actions can not handle what you want to do.  They can not use logic in their processing all steps are hard coded.

    JJMack
    Participant
    November 20, 2018

    Hi JJMack,

    Thanks for your response.

    Sorry I should have been clearer... this is artwork for printing onto iPhone cases.

    Yes, no problem at all for all steps to be hard coded. I can hard code simple steps for each resize. I just need a way to be able to press one button that then runs a lot of different hard coded actions.


    I want to load in one graphic and output 100....

    Any ideas? If I were to go down the scripting route... is that something thats quite easy to learn or am i best outsourcing?

    Thanks,

    Mark

    Participant
    November 20, 2018

    basically... i know i can record actions to do what i want to do as I've done some. the issue here is that I'd have 100 different actions... which would still be 100 key presses. im looking for this to happen as one key press...

    so load in one image, hit a button and it creates all of the others...