fastest file format

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
robuntu
Posts: 41
Joined: 2012-01-22T10:56:10-07:00
Authentication code: 8675308

fastest file format

Post by robuntu »

Hi,
I have to do a couple of batch jobs with huge files (Tiff : 500MByte - 1GB).
In detail I have to crop it into pieces and to append boarders and Pictures on all four sides on all of the tiles.

Is there a fastest file format to use for this jobs?

The original file format will be an lzw compressed tiff file, rgb or cmyk, 8bit per channel.
The boarders will be white on two sides, added Text at the bottom and a new header picture on the top.
The file format of the header is free, meaning I have to create the headers anyway and can choose the file format for that.
The output files have to be in cmyk colors. The container can bee Tiff again.

Is it wise to keep tiff as the standard format for all the convert-actions or is it faster to
convert the huge image to another (faster) format, use this format for tiling and boardering and
convert the tiles back to cmyk-tiff as a last step.

Thanks for your help!

Roland
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: fastest file format

Post by glennrp »

I almost always use PPM as an intermediate file for opaque color images or PGM for opaque
black-and-white images. It's fast and simple (note, don't use "-compress none" with these if
you are interested in speed). MPC may be faster but I haven't used it.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: fastest file format

Post by magick »

MPC is the fastest image file format. Its useful if you are going to perform multiple operations against the same image file.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: fastest file format

Post by fmw42 »

If you have only one command line and you produce multiple outputs, then .mpr (in memory) should be faster. But it does not work across multiple command lines. So in that case, .mpc is best as magick suggested.

For .mpr and .mpc

see
http://www.imagemagick.org/Usage/files/#mpr
http://www.imagemagick.org/Usage/files/#mpc

example at
http://www.imagemagick.org/Usage/canvas/#tile_memory
Post Reply