Ok, I admit. I thrashed the Digg.com servers for a little while using an open source website mirroring tool named HTTrack.
About 30,000 user icons later, I present to you a product created by a couple very short and sweet command line tools.
Hereâ€™s a another I generated, this HUGE image was scaled down from about 228 megapixels.
starry_night_mosaic.jpg WARNING: huge image.
So how can you make your own mosaic? Simple! Download and install metapixel, if youâ€™re running Ubuntu, itâ€™s located in the universe repository.
Then we are just a few commands away from generating sweet photomosaics. First, we prepare the images.
metapixel-prepare -r source destination --width=48 --height=48
This copies all images from the â€œsourceâ€ folder, (recursively) searching into every folder within, and dumps every image it finds into the â€œdestinationâ€ folder after resizing them into 48Ã—48 pixel images. Youâ€™ll want to modify the width and height to fit the source images. This took a LONG time for me, since my library of images was so gigantic – but once weâ€™re done preparing the images, you donâ€™t have to do it again. Woohoo!
Next, we actually generate the output file(s) with this one liner:
metapixel --metapixel input.jpg output.png --library destination --scale=35 --distance=500
This takes input.jpg and increases the output size by 35 times (i.e. REALLY BIG IMAGE), uses the library destination and does not repeat any images found in the library closer than 500. Itâ€™ll spit output.png after a little while. If you donâ€™t care about repeating images, removing the distance flag will result in MUCH, MUCH faster generation times.
Related Posts: On this day...
- Rusko - Somebody To Love (Official Video) - 2012
- Woz on Network Neutrality - 2011
- Carrying condoms could get you arrested - 2010
- Google: A new approach to China - 2010
- Apparently, two spaces after a period is no longer correct... When did this happen? - 2009
- DRM-Free iTunes Now Puts Your E-Mail Address In Every File - 2009
- Tips For Medium Sized LAMP Powered Web Apps - 2008
- The Being a Jerk Method to Getting Girls - 2008
- Why Ubuntu needs better marketing - 2008
- Lessons to be learned from PHP - 2008