[PHP 썸네일(Thumbnail) 이미지 만들기 함수]
해외 사이트에서 퍼온 썸네일 이미지를 만드는 함수로 GD 라이브러리를 사용합니다. 정확하게는 클래스로 구성되어져 있습니다.
1. 요구사항
PHP 4.0.6
GD 2.0.1 or later
2. 파라미터
src - path to source image
dest - path to save created thumbnail (required only if saving generated thumb to file)
x - max thumbnail width
y - max thumbnail height
q - thumbnail quality (applicable only to JPG, 1 to 100, 100 - best)
t - thumb type. "-1" - same as source, 1 = GIF, 2 = JPG, 3 = PNG
f - save to file (1) or output to browser (0).
| |
|
|