Convert image and save to same folder in Automator

automatorfile conversionfinder

I'm trying to figure out an Automator workflow (to make as a Service/Quick Action) to convert an images' file type – easy enough with the "Change Type Of Images" option. BUT, doing that alone replaces the original image – where i want to keep the original image.

Using the "Copy Finder Items" requires you to choose a location for the converted file, BUT, i want it to save to the same folder as the original, AND, i don't want to have to have a "choose folder" option come up every time.

I've read that it may not be possible without using "Variables" & "Applescript" – both of which i don't know. I would think that it should be more simple than that – that only if the "Copy Finder Items" had an option to use the same folder.

I found another workflow where if you put the "New Folder" option in there, it will leave the original alone and copy it to the new folder and convert that one. i could do this if i have to, but would still rather the conversion to take place in the same folder as the orig.

any ideas?
thanks.

Best Answer

Use the following actions:

  • Duplicate Finder Items
  • Change Type of Images
  • Rename Finder Items: Replace Text (" copy" with "")

With this sequence, the 'change type' occurs with the copy while ignoring the original. You end up with both files in the original folder.

NB To test as a workflow prior to rendering as a service, insert Get Specified Finder Items at the beginning and specify your test image(s).