Page 1 of 1

Merge hundreds of file into one

Posted: 2008-11-17T13:50:56-07:00
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?

Re: Merge hundreds of file into one

Posted: 2008-11-23T23:19:57-07:00
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/

Re: Merge hundreds of file into one

Posted: 2008-12-09T16:09:31-07:00
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?

Re: Merge hundreds of file into one

Posted: 2009-01-05T12:03:08-07:00
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.