Generate square thumbnails using PHP

Programming for Search Engines 101. An area for avid PHP and .NET developers to chat about Programming techniques and how to make better use of search engines.

Moderator: Moderators

Generate square thumbnails using PHP

Postby Vipindas » Tue Jan 19, 2010 11:50 pm

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/
Known is a drop..Unknown is an Ocean.
Vipindas
 
Posts: 24
Joined: Thu Aug 07, 2008 10:34 pm

Re: Generate square thumbnails using PHP

Postby tvjames » Wed Jan 20, 2010 12:10 am

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)
tvjames
 

Re: Generate square thumbnails using PHP

Postby douglas » Wed Jan 20, 2010 5:59 am

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.
douglas
 
Posts: 282
Joined: Fri Feb 20, 2009 3:56 am


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests