Adding filename to image
Posted: 2015-12-26T16:10:30-07:00
Hi!
I'm working on a project and I'm really stuck on this one.
I have a bunch of Jpegs on which I would like to write the file name (minus the full path and extension) on the bottom left of the image (leaving a small gap so that it doesn't get cut out by the printer).
To be more precise, I have many photographers who sent me some pictures. The images names are in the (Author - Title.jpg ) format.
What I want is to write the filename on the bottom left of the image, but I have not the slightest idea of how I'd do this so far... I'm thinking about some complex batch script to get the effect I want (like getting all filenames and looping through them), but even them I'm not sure if there isn't an easier way to do it as I'm not very at ease using imagemagick (at least not so far). All I know is that it's the best tool for the job.
I'm using a windows batch file to do this. The main command I'm using so far is
After that, I do some compositing to put the original image back in the center of the page.
I'm working on a project and I'm really stuck on this one.
I have a bunch of Jpegs on which I would like to write the file name (minus the full path and extension) on the bottom left of the image (leaving a small gap so that it doesn't get cut out by the printer).
To be more precise, I have many photographers who sent me some pictures. The images names are in the (Author - Title.jpg ) format.
What I want is to write the filename on the bottom left of the image, but I have not the slightest idea of how I'd do this so far... I'm thinking about some complex batch script to get the effect I want (like getting all filenames and looping through them), but even them I'm not sure if there isn't an easier way to do it as I'm not very at ease using imagemagick (at least not so far). All I know is that it's the best tool for the job.
I'm using a windows batch file to do this. The main command I'm using so far is
which I need to change in some way.convert *.jpg -verbose -filter cubic -resize 3300x3300 -gravity center -extent 2550x3300 -negate -gaussian-blur 20x20 img%%04d.mpc
After that, I do some compositing to put the original image back in the center of the page.