psd to jpg conversion question

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?".
jamtat
Posts: 47
Joined: 2010-05-10T16:51:23-07:00
Authentication code: 8675308

Re: psd to jpg conversion question

Post by jamtat »

The process finally completed successfully on the large psd file after I'd done export MAGICK_TMPDIR=/home/path/to/created-tmp. Took an inordinately long time but I was expecting that. Oh, and the -scene 0 switch did not keep the process from creating extra jpg files, so I'll try this again with the -flatten switch and see whether that finally allows me to get a single .jpg from this gigantic .psd file.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: psd to jpg conversion question

Post by snibgo »

"-flatten" will read all the images in the file and flatten them together. This naturally takes more memory than reading just one image.

The "[0]" technique works for the convert program. From what you say, it doesn't work for mogrify. If the time taken is an issue for you, you could use a for-loop and one convert per file, instead of a single mogrify.
snibgo's IM pages: im.snibgo.com
Post Reply