Sending Files to A Different Directory When Using Mogrify

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
fififo
Posts: 1
Joined: 2014-01-23T12:21:56-07:00
Authentication code: 6789

Sending Files to A Different Directory When Using Mogrify

Post by fififo »

Hi, new user here. Don't know very much about command line basics (as you shall see below), so any help appreciated!

Goal: I'm trying to send files to a different folder (a folder in another part of the C drive, and not the one I'm currently in.)

How do I do this?

The files are in a folder called \Users\myname\Documents\Art

I've changed to that directory.

Then I try to use this command:

Code: Select all

mogrify -path \Users\myname\Documents\newfolder  -resize x900 -format png *.png
I get a bunch of "unable to open image", no such file or directory errors.

Do I have the wrong syntax? Can I only send files to the current directory I'm in?

Thanks for any help.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Sending Files to A Different Directory When Using Mogrif

Post by snibgo »

It helps if you tell us your IM version and platform (Windows, I suppose).

The command should work provided the directory exists and you have permission to write to it.
snibgo's IM pages: im.snibgo.com
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Sending Files to A Different Directory When Using Mogrif

Post by glennrp »

You should copy (or move, if you want to overwrite your originals) your images to the new directory before running "mogrify".
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Sending Files to A Different Directory When Using Mogrif

Post by fmw42 »

mogrify -path \Users\myname\Documents\newfolder -resize x900 -format png *.png
If you are on unix, that should be forward slashes.

mogrify -path /Users/myname/Documents\newfolder -resize x900 -format png *.png

If on windows, you probably need to start with disk id:
Post Reply