I try to mogrify psd files to jpg files over 300 subfolders in a master folder.
find albums -iname "*.psd" | mogrify -format jpg *.psd
I tried it with the above command but get the following error
mogrify: unable to open image `*.psd': File or folder do not exist.
Could someone please help me
Mogrify on Linux from psd to jpg over multiple folders
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
- Contact:
Re: Mogrify on Linux from psd to jpg over multiple folders
you have to be in the same directory as all the images for mogrify or you have to provide a path argument to tell it what directory to process. So if you have files in different directories, then you will need to cp or mv them to some common directory.
-
elifafd
Re: Mogrify on Linux from psd to jpg over multiple folders
That is no solution, i have over 300 subfolders containing over 30 Gb of data
This should be scriptable
This should be scriptable
Re: Mogrify on Linux from psd to jpg over multiple folders
Write some code to read the directorys and use convert.
-
elifafd
Re: Mogrify on Linux from psd to jpg over multiple folders
That i tried is was not working, my knowledge of scripting is not so good.
cd albums/
find . -print -type d |
while read dirctory
do
CD $directory
# /usr/bin/mogrify -format jpg *.psd
# cd -
done
cd albums/
find . -print -type d |
while read dirctory
do
CD $directory
# /usr/bin/mogrify -format jpg *.psd
# cd -
done
Re: Mogrify on Linux from psd to jpg over multiple folders
I am afraid I can not help with that as I use php and have dabbled with windows batch files.
If you wait hopefuly Anthony can give you some pointers.
If you wait hopefuly Anthony can give you some pointers.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
- Contact:
Re: Mogrify on Linux from psd to jpg over multiple folders
Sorry but that is the fact of life with mogrify. Your only other choice is to write a script to do the work and use convert in the script.elifafd wrote:That is no solution, i have over 300 subfolders containing over 30 Gb of data
This should be scriptable
-
elifafd
Re: Mogrify on Linux from psd to jpg over multiple folders
find albums -iname "*.psd" | xargs mogrify -format jpg *.psd
is working fine, it is mogrifying now
is working fine, it is mogrifying now
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 8 guests