
iptcembed 함수의 세 번째 인자는 이미지 파일 이름이 아닌, 이미지를 저장할 파일 이름입니다. 따라서, 이미지를 저장할 파일 이름을 string으로 넘겨주어야 합니다.
iptcparse 함수의 결과는 array로 반환되며, 이 array를 iptcembed 함수에 넘겨주어야 합니다. 따라서, iptcparse 함수의 결과를 array로 처리하여 iptcembed 함수에 넘겨주어야 합니다.
iptcembed 함수의 사용법은 다음과 같습니다.
- 첫 번째 인자는 이미지를 저장할 파일 이름입니다.
- 두 번째 인자는 IPTC 정보입니다.
- 세 번째 인자는 이미지를 저장할 파일 이름입니다.
iptcembed 함수를 사용하여 이미지에 IPTC 정보를 Embed 하는 예제는 다음과 같습니다.
#hostingforum.kr
php
$im = imagecreatefromjpeg('image.jpg');
$iptc = iptcparse($im);
$iptcembed($im, $iptc['APP13'], 'output.jpg');
위 예제에서, $im은 이미지를 저장할 파일 이름이 아닌, 이미지를 저장할 파일 이름이 들어있는 변수입니다. 따라서, 이미지를 저장할 파일 이름을 string으로 넘겨주어야 합니다.
#hostingforum.kr
php
$im = 'output.jpg';
$iptc = iptcparse($im);
$iptcembed($im, $iptc['APP13'], 'output.jpg');
위 예제에서, $iptc['APP13']은 IPTC 정보를 저장한 array입니다. 따라서, 이 array를 iptcembed 함수에 넘겨주어야 합니다.
#hostingforum.kr
php
$im = 'output.jpg';
$iptc = iptcparse($im);
$iptcembed($im, $iptc['APP13'], 'output.jpg');
위 예제에서, iptcparse 함수의 결과는 array로 반환되며, 이 array를 iptcembed 함수에 넘겨주어야 합니다.
#hostingforum.kr
php
$im = 'output.jpg';
$iptc = iptcparse($im);
$iptcembed($im, $iptc, 'output.jpg');
위 예제에서, iptcparse 함수의 결과는 array로 반환되며, 이 array를 iptcembed 함수에 넘겨주어야 합니다.
iptcembed 함수를 사용하여 이미지에 IPTC 정보를 Embed 하는 예제는 다음과 같습니다.
#hostingforum.kr
php
$im = imagecreatefromjpeg('image.jpg');
$iptc = iptcparse($im);
$iptcembed($im, $iptc, 'output.jpg');
위 예제에서, iptcparse 함수의 결과는 array로 반환되며, 이 array를 iptcembed 함수에 넘겨주어야 합니다.
2025-06-13 20:09