console app, spaces in filename

Discuss RoboTask here
Post Reply
photoevents
Posts: 45
Joined: Mon Jan 01, 2024 11:21 am
Contact:

console app, spaces in filename

Post 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
Oleg
Site Admin
Posts: 3088
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: console app, spaces in filename

Post 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
Oleg Yershov
photoevents
Posts: 45
Joined: Mon Jan 01, 2024 11:21 am
Contact:

Re: console app, spaces in filename

Post by photoevents »

Yes, that's it.
I should know that :-(
felipe
Posts: 17
Joined: Thu Nov 30, 2023 6:18 pm

Re: console app, spaces in filename

Post by felipe »

always put folder path in quotation marks in the command, if any folder name contains a space it gives an error
Post Reply