Rename image conversion to parent folder name
Posted: 2018-10-16T03:41:51-07:00
I have a simple script to convert all jpegs in a folder into one pdf:
Is it possible to rename the myfile.pdf to the folder name it sits in? So if the jpgs are in a folder called 'myFolder', the pdf will be myFolder.pdf
I have a lot of folders with images and don't want to manually retype the pdf filename.
Many thanks.
Code: Select all
magick *jpg* myfile.pdf
I have a lot of folders with images and don't want to manually retype the pdf filename.
Many thanks.