Jump to content
You must now use your email address to sign in [click for more info] ×

AP or AD - Batch Export Same Photo Multiple File Names?


Recommended Posts

UPDATE: I figured out how to do multiple file names. Only problem is they have to be done individually which is quite time consuming. I need to know if there is a way to import a list of file names that would allow it to be more automated.

 

I did search to see if I could find the answer to this. It might not be possible but I'm hoping it is. I have both photo and designer but I'm more familiar with photo.

I need to export the SAME image into multiple file names. They all need to be the same format (.jpg). For example...photo1.jpg, photo2.jpg.

I have the file names set up so that I can copy/paste them or even import them if there is a way to do that so that when the batch processes it would automatically assign the new file name.

 

Link to comment
Share on other sites

Well it's laborious possible in both via the Export Persona and using slices for a JPG file there then as "1x Slicename1", "1x Slicename2", "1x Slicename3" ... 

But honestly since that's always one and the same file/image with a different file naming and thus a boring task, I would let the operating system do this tedious/repeatedly work from a batch/shell script as a copy file operation in a given loop iteration count, where the loop count is added to the file name. - So something like ...

Quote

// Powershell

for ($i=1; $i -le 10; $i++)
{
   Copy-Item "\\tmp\photo.jpg" -Destination "\\tmp\photo$i.jpg"
}
 

On a Mac a shell script will do the same (a loop for 10 file copies here) ...

Quote

#!/bin/bash
for i in `seq 1 10`;
do
        echo $i
        cp -v "photo.jpg" "photo$i.jpg"
done   

... or instead via a while loop count ...

Quote

#!/bin/bash
 COUNTER=0
 while [ $COUNTER -lt 10 ]; do
     echo The counter is $COUNTER
     let COUNTER=COUNTER+1
     cp -v "photo.jpg" "photo$COUNTER.jpg"
 done

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.