PHP GD Library: Cropping Images whilst Maintaining the

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

PHP GD Library: Cropping Images whilst Maintaining the

An article demonstrating how to crop an image using PHPs GD library, whilst still keeping the aspect ratio as it was originally.
http://www.talkphp.com/advanced-php-programming/1709-cropping-images-using-php.html
  • Total Hits: 16004

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 140 votes

  • Category: PHP/Image Manipulation

  • Submitted on: 2008-03-16 07:18:27

  • Submitted By: Devesh Khanna

  • Set as Favorite

Description:

An article demonstrating how to crop an image using PHP's GD library, whilst still keeping the aspect ratio as it was originally. This is very clever as it prevents the image from looking stretch. For example, if you resized an image to 80x80 but the original image was wide-screen, then the image would look very much stretched. This article shows you how to get around that and crop images the proper way!    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 38.57%  54
 Two starsTwo star  Vote LeftVote MiddleVote Right 10%  14
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 12.14%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 10.71%  15
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.57%  40

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements