Page 1 of 1

console app, spaces in filename

Posted: Tue Jun 18, 2024 4:19 pm
by photoevents
Sorry to post so many questions, but it is normal, I think, when starting with new software.

I use the string below after starting up imagemagick convert in the parameter section:

{current_image} -quality 75 -resize 1800x1200^ {local_workfolder}\overlays\template.png -compose over -composite {local_workfolder}\merged\{filename}

It works perfectly, except when there are spaces in the filenames.
Like 123564.jpg is no problem but using names like this: 3-2024-05-21 13.11.55.jpg gives a problem.

What are your thoughts about this?
Christian

Re: console app, spaces in filename

Posted: Tue Jun 18, 2024 4:32 pm
by Oleg
You should enclose names with spaces in quotation marks.
Try to use command line like this:
"{current_image}" -quality 75 -resize 1800x1200^ {local_workfolder}\overlays\template.png -compose over -composite "{local_workfolder}\merged\{filename}"
This should work with any names

Re: console app, spaces in filename

Posted: Tue Jun 18, 2024 4:41 pm
by photoevents
Yes, that's it.
I should know that :-(

Re: console app, spaces in filename

Posted: Thu Jun 20, 2024 4:14 pm
by felipe
always put folder path in quotation marks in the command, if any folder name contains a space it gives an error