Page 1 of 1

Generate square thumbnails using PHP

PostPosted: Tue Jan 19, 2010 11:50 pm
by Vipindas
We were in look out for a code that resizes image into square thumbnails, irrespective of the large image, whether its is in landscape or portrait mode. So that, this helps in solving some issues in terms of layout because the width of a portrait mode picture is obviously less than that of landscape mode pictures. Here is a site which describes how to create square thumbnails. Hope this helps. :)
http://www.renet-web.net/2005/09/28/nic ... ls-in-php/

Re: Generate square thumbnails using PHP

PostPosted: Wed Jan 20, 2010 12:10 am
by tvjames
Great find Vipin. This should definitely help us to have a consistent layout on the landing pages of gallery modules where in we usually list the category images. Big pat on your back for this 8)

Re: Generate square thumbnails using PHP

PostPosted: Wed Jan 20, 2010 5:59 am
by douglas
Well Done Vipin. I appreciate your thurst for finding and implementing sophisticated functionality like this.

Thanks for sharing it with all. Please do a stand alone function and contribute to WyseStandards so that all can easily find and use wherever applicable.