
Imagick::profileImage 메소드는 이미지의 프로파일 정보를 반환하거나 설정하는 데 사용됩니다. 이 메소드의 파라미터는 다음과 같습니다.
- index : 프로파일 인덱스입니다. 프로파일 인덱스는 0부터 시작하며, 이미지의 프로파일 정보를 반환하거나 설정할 때 사용됩니다.
- profile : 프로파일 정보를 설정할 때 사용됩니다. 프로파일 정보는 문자열 형식으로 제공됩니다.
Imagick::profileImage 메소드는 프로파일 정보를 반환하거나 설정하는 데 사용됩니다. 반환 값은 프로파일 정보의 문자열입니다.
예를 들어, 다음 코드는 이미지의 ICC 프로파일을 반환합니다.
#hostingforum.kr
php
$imagick = new Imagick('image.jpg');
$profile = $imagick->getImageProfile('icc');
print($profile);
반면에, 다음 코드는 이미지의 ICC 프로파일을 설정합니다.
#hostingforum.kr
php
$imagick = new Imagick('image.jpg');
$profile = 'icc profile data';
$imagick->setImageProfile('icc', $profile);
$imagick->writeImage('image_out.jpg');
Imagick::profileImage 메소드는 이미지의 프로파일 정보를 반환하거나 설정하는 데 사용됩니다. 이 메소드의 파라미터와 반환 값은 위에서 설명한 대로 사용됩니다.
2025-08-13 08:02