Page 1 of 1

Sending Files to A Different Directory When Using Mogrify

Posted: 2014-01-23T12:29:58-07:00
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.

Re: Sending Files to A Different Directory When Using Mogrif

Posted: 2014-01-23T14:48:55-07:00
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.

Re: Sending Files to A Different Directory When Using Mogrif

Posted: 2014-01-23T14:50:36-07:00
by glennrp
You should copy (or move, if you want to overwrite your originals) your images to the new directory before running "mogrify".

Re: Sending Files to A Different Directory When Using Mogrif

Posted: 2014-01-23T15:38:05-07:00
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: