PHP 이미지 처리
富Php는 주로 다음을 포함한 다양한 이미지 처리 기능을 제공합니다.
설명 | |
---|---|
현재 설치된 GD 라이브러리의 정보 얻기 이미지 정보 | |
이미지 정보 가져오기 | |
이미지 접미사 가져오기 | |
이미지의 MIME 유형을 반환 | |
출력 WBMP 이미지 | |
아핀 변환 후 이미지를 반환합니다. | |
두 행렬을 연결합니다. | |
행렬 가져오기 | |
imageantialias() | |
imagearc() | |
imagechar() | |
image charup() | |
imagecolorallocate() | |
imagecolorallocatealpha() | |
imagecolorat() | |
imagecolorclosest() | |
imagecolorclosestalpha() | |
imagecolorclosesthwb() | |
imagesx(), imagey() | |
PHP 이미지 처리 기능을 사용하여, GD 지원 라이브러리를 로드해야 합니다. php.ini가 GD 라이브러리를 로드했는지 확인하세요: | Windows 서버: |
<?php
var_dump(gd_info());
?>
출력은 대략 다음과 같습니다: array(12) { ["GD Version"]=> string(26) "bundled (2.1.0 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=> bool(false) ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPEG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true) ["JIS-mapped Japanese Font Support"]=> bool(false) }