Convert Image To Different Folder

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
Gary68
Posts: 2
Joined: 2018-03-24T05:31:52-07:00
Authentication code: 1152

Convert Image To Different Folder

Post by Gary68 »

Hi,

This seems like a dumb question, but:

How do you convert an image to a sub folder?

I tried the following (and variations) in windows command prompt:

Code: Select all

convert test.png output/new.jpg
The sub folder output exists, but I keep getting the following error:
convert.exe: unable to open image `output/new.jpg': No such file or directory @ error/blob.c/OpenBlob/2761.
Thanks
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert Image To Different Folder

Post by snibgo »

In Windows, we normally use a back-slash, not forward slash, as directory delimiter. But your command should work fine, provided "test.png" and the subdirectory "output" both exist.

Do a "dir" in the current directory to double-check they do exist.
snibgo's IM pages: im.snibgo.com
Gary68
Posts: 2
Joined: 2018-03-24T05:31:52-07:00
Authentication code: 1152

Re: Convert Image To Different Folder

Post by Gary68 »

Do a "dir" in the current directory to double-check they do exist.
Thanks solved, it was down to a typo. I guess it was a dumb question after all :oops:
Post Reply