
Imagick::getImageProfile() 함수는 이미지의 프로파일을 가져올 때, 프로파일의 이름을 지정해야 합니다. 프로파일의 이름은 대소문자를 구분하지 않습니다. 따라서 'EXIF'와 'exif'는 동일한 프로파일을 가져올 것입니다.
getImageProfile() 함수는 여러 개의 프로파일을 가져올 수 있습니다. 예를 들어, getImageProfile(array('EXIF', 'ICC')) 함수를 사용하면 EXIF와 ICC 프로파일을 모두 가져올 수 있습니다.
Imagick 버전 7.x에서 getImageProfile() 함수를 사용하는 방법은 다음과 같습니다.
#hostingforum.kr
php
$imagick = new Imagick('image.jpg');
$profiles = $imagick->getImageProfiles('*', true);
print_r($profiles);
$imagick->getImageProfile('EXIF');
$imagick->getImageProfile('ICC');
getImageProfile() 함수의 두 번째 매개변수는 boolean 값으로, 프로파일 이름을 배열로 전달할 때 true를 지정하면 프로파일 이름이 대소문자를 구분하지 않습니다.
#hostingforum.kr
php
$imagick->getImageProfile(array('EXIF', 'ICC'), true);
이러한 방법을 사용하면 Imagick 버전 7.x에서 getImageProfile() 함수를 사용하는 방법을 알 수 있습니다.
2025-08-13 19:55