source files of tutorial : create a fancybox gallery with automatically generated thumbnails with php. Ref: http://www.picssel.com/create-a-filtered-image-gallery-with-jquery-and-fancybox-part-2-create-image-thumbnails-with-php/