Merge hundreds of file into one

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
Woppe

Merge hundreds of file into one

Post by Woppe »

I got hundreds of equally sized (16x12px) images which shall be merged into one image (always 640x480px) on demand.

Which is the fastest way of doing this?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merge hundreds of file into one

Post by fmw42 »

Woppe wrote:I got hundreds of equally sized (16x12px) images which shall be merged into one image (always 640x480px) on demand.

Which is the fastest way of doing this?
see montage http://www.imagemagick.org/Usage/montage/
Woppe

Re: Merge hundreds of file into one

Post by Woppe »

Okay. Thanks for that.
Now I wonder what the fastest way of reading just as many files is?
I guess it is MagickReadImages($mgk, $filenames), where $filenames is an array containting the search pathes to the files?
If that is the fastest method, is there any way to optimize it? For example putting them as far outside on the hard disc as possible. How is that done?
mrBlaQ
Posts: 17
Joined: 2008-02-05T12:19:00-07:00

Re: Merge hundreds of file into one

Post by mrBlaQ »

I think that question lies outside the realm of this support board.

I'll say that I think you need to pay attention to the use of this montage. Do they need to be generated live? Could you pre-render a bunch and just have them handy for a user's http request? Basically, the idea is, why have the customer wait? Let the computer do it ahead of time.
Post Reply