is space in a filename allowed?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
SamK

is space in a filename allowed?

Post by SamK »

I am trying to get a web based image, resize it and save locally but the files with a space in the filename return an error - 'no decode delegate for this image format'
I have the image URL enclosed in double quotes and have tried replacing the space with %20

The command is run with a VB Script generated .bat file in Windows 2003 server. Other images in the same bat file work, but only seems to be the ones with no space in the name.

TIA
Sam.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: is space in a filename allowed?

Post by anthony »

Make sure the argument is quoted. better still 'sanitize' your input strings. You should do that any way. You don't want a hacker breaking into your system by using shell metacharacters in the input do you?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply