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.
is space in a filename allowed?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: is space in a filename allowed?
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/
https://imagemagick.org/Usage/