Spaces In Filenames / Paths

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
Steve Bouffe
Posts: 3
Joined: 2016-01-13T14:05:51-07:00
Authentication code: 1151

Spaces In Filenames / Paths

Post by Steve Bouffe »

With this package installed

ImageMagick-6.8.9-7-Q16-x64-dll.exe

From the command line this worked fine

convert "c:\devpb\File Cache\Image Conversion\New_Image_Add.jpg" -trim -bordercolor "white" -border 0 "c:\devpb\File Cache\Image Conversion\New_Image_Add_Border.jpg"

However I have upgraded to

ImageMagick-6.9.3-0-Q16-x64-dll.exe

The same command shows error

C:\Users\Administrator>convert "c:\devpb\File Cache\Image Conversion\New_Image_Add.jpg" -trim -bordercolor "white" -border 0 "c:\devpb\File Cache\Image Conversion\New_Image_Add_Border.jpg"
Invalid Parameter - Cache\Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Spaces In Filenames / Paths

Post by fmw42 »

Perhaps you need to redefine convert (which is also a windows command), so that you call the IM one imconvert or something like that?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Spaces In Filenames / Paths

Post by snibgo »

As Fred suggests, "Invalid Parameter" is an error message from the Microsoft "convert" program, not ImageMagick.
snibgo's IM pages: im.snibgo.com
Post Reply