Creating Thumbnails with GridFS + MongoDB + PHP

Shad0wFlame

New Member
I'm creating a site where a client who will be selling his photography which he sells a lot of it and will probably get quite a bit of traffic. Probably around 2k-5k uniques a day. I'm using MongoDB with PHP and I read i should use GridFS to store these large files. Upwards of 2MB-5MB photos, but obviously BW will be extremely spendy (im on cloud hosting) and loading of of these images will make page loads take forever.So, how do I create thumbnails with GridFS in PHP and MongoDB? I Googled it and I can't seem to find any real information except people pointing to: http://www.php.net/manual/en/class.mongogridfs.phpbut im not sure what to do with that information. Do I need to (i hope not, this would be sort of messy):Upload -> store original -> use GD Lib to resize original -> resized image to GridFS as a meta value to the original image?
 
Back
Top