
Imagick::profileImage 함수의 \'profile\' 파라미터는 이미지 프로파일의 이름을 지정하는 데 사용됩니다. 예를 들어, \'EXIF\' 프로파일을 추가하려면 \'profile\' 파라미터에 \'EXIF\'를 지정하면 됩니다.
Imagick::profileImage 함수의 사용법은 다음과 같습니다.
#hostingforum.kr
php
$imagick = new Imagick($image_path);
$imagick->profileImage('EXIF', $exif_profile);
$imagick->writeImage($output_path);
이미지가 이미 프로파일을 가지고 있는 경우, 기존 프로파일을 삭제하고 새로 추가하려면 \'deleteProfile(\'EXIF\')\' 메서드를 사용하면 됩니다.
#hostingforum.kr
php
$imagick = new Imagick($image_path);
$imagick->deleteProfile('EXIF');
$imagick->profileImage('EXIF', $exif_profile);
$imagick->writeImage($output_path);
이러한 코드를 사용하면 이미지 프로파일을 추가하거나 삭제할 수 있습니다.
2025-07-28 17:29