eflorit / mosaic-generator

Mosaic generator using PHP, GD, MySQL
67 stars 21 forks source link

Limits and Efficiency #2

Open dyablohunter opened 9 years ago

dyablohunter commented 9 years ago

Hi,

This is very interesting!

I have 2 questions:

  1. Is there a limit to the number of images that can be used for the mosaic, can you use it for 1 million images 1000x1000 grid?
  2. How much time did it take to process the 10k mosaic from the example and on what machine specs?

I am interested in using and improving on this.

Thank you a bunch!

eflorit commented 9 years ago

Hi,

The only limit is your computer memory. I think it took me about an hour to generate the demo mosaic, using an "old" PC from 2010 with 3GB of RAM. I would except much better performance on a better machine, although performance isn't necessarily what I was after when I made this.

Feel free to fork and/or improve! :)

dyablohunter commented 9 years ago

Hmm, an hour is pretty long, maybe it was because of the lack of RAM? If the process is long it can take-up a lot of ram indeed, but if 10k takes 1 hour imagine 1 mil :D I am interested in making this a server-side script and optimizing the whole thing in such a way that it doesn't take more than a few minutes even for 1 million tiles.

The problem is I am lacking the PHP skills required, I have experience more with front-end stuff.

Are you available for a discussion on skype or anywhere else?

Thanks.

eflorit commented 9 years ago

It was 3 years ago now so I'm not positive about the number, I do remember it taking an hour at some point but I can't remember if it was before or after certain performance improvements.

I have very little free time so I won't be able to chat, but if you have questions on certain parts of the code maybe I can try to help you understand how it works. The logic is fairly easy, especially if you look at the GD documentation.

dyablohunter commented 9 years ago

I would love to have your email so I can send you my research on this so far, maybe you will be interested in a collaboration, not free of course :)

eflorit commented 9 years ago

[edited]