一個處理照片的 class,找時間再來試看看...

原始碼 ←點我

PHP Class: Image Snapshot 1.3 by jc21com on 08/28/06

Inspired by Backpackit.com’s image management, Image Snapshot can take a portion of an image (crop) to specific dimensions, from different areas of the original image.

This class has been created for the purpose of manipulating an uploaded image, and creating a Thumbnail image that does not alter the aspect ratio, and yet represents the contents of the original image. I’m sure other uses can be found for the Image Snapshot class, but I’ll leave that to you. I use it for Photo Galleries, and Shopping Cart systems.

This class supports:

* Jpg, Gif, Png files
* Output to Jpg
* Can resize images before applying the crop
* Can crop from any part of the image

arrow
arrow
    全站熱搜

    tern 發表在 痞客邦 留言(0) 人氣()