스마트에디터에서 움직이는 webp, 용량이 큰 webp 의 업로드가 안되는 버그가 있어 살펴보는 중입니다.
plugin/editor/smarteditor2/photo_uploader/popup/php/UploadHandler.php
위 파일에서 아래와 같은 오류가 있습니다.
해결이 어려울 듯 합니다.
도움 좀 주세요.
// webp 의 경우 gd-webp cannot allocate temporary buffer 오류가 발생하여 webp 이미지가 업로드 되지 않을 수 있음
// $reprocessed_image = imagecreatefromwebp($file_path); 이 코드로 웹서버의 error_log 에서 확인해 볼 수 있음
// https://stackoverflow.com/questions/61394477/php-e-error-gd-webp-cannot-allocate-temporary-buffer
// 움직이는 webp 이미지나 큰사이즈의 webp 이미지에 대한 해결 방안은 아직 없는 것 같다
$reprocessed_image = @$image_from_file($file_path);
// error_log("\$image_from_file = '$image_from_file', \$image_to_file = '$image_to_file', \$reprocessed_image = '$reprocessed_image' ");
@리자 제 홈페이지에 적용해봤는데, thumnail.lib.php 요녀석 적용하면 에러가 뜨는군요
5.4.8 까지 패치한 상태입니다
317~319 줄 추가하니 오류가 뜨는군요
} else if ($file_ext === 'webp') {
$src = @imagecreatefromwebp($source_file);
@imagealphablending($src, true);
댓글 20개
ㅎ...
[http://sir.kr/data/editor/2106/021609bd383be0b3be384832b92d9f3a_1624337880_2406.png]
webp 확장자 추가해주세요
[http://sir.kr/data/editor/2106/9eebe6b9aaa47696ea886995f88c6ac2_1624341023_4851.gif]
새로 고침 한번만 해주세요~ ㅎ
위 주소에서 그누보드5 webp 버전을 다운로드 하실 수 있습니다.
스마트에디터에서 움직이는 webp, 용량이 큰 webp 의 업로드가 안되는 버그가 있어 살펴보는 중입니다.
plugin/editor/smarteditor2/photo_uploader/popup/php/UploadHandler.php
위 파일에서 아래와 같은 오류가 있습니다.
해결이 어려울 듯 합니다.
도움 좀 주세요.
// webp 의 경우 gd-webp cannot allocate temporary buffer 오류가 발생하여 webp 이미지가 업로드 되지 않을 수 있음
// $reprocessed_image = imagecreatefromwebp($file_path); 이 코드로 웹서버의 error_log 에서 확인해 볼 수 있음
// https://stackoverflow.com/questions/61394477/php-e-error-gd-webp-cannot-allocate-temporary-buffer
// 움직이는 webp 이미지나 큰사이즈의 webp 이미지에 대한 해결 방안은 아직 없는 것 같다
$reprocessed_image = @$image_from_file($file_path);
// error_log("\$image_from_file = '$image_from_file', \$image_to_file = '$image_to_file', \$reprocessed_image = '$reprocessed_image' ");
5.4.8 까지 패치한 상태입니다
317~319 줄 추가하니 오류가 뜨는군요
} else if ($file_ext === 'webp') {
$src = @imagecreatefromwebp($source_file);
@imagealphablending($src, true);
저도 이것 때문에 업로드 시점에 원본과 webp두개를 만들도록 하고 있습니다,.
@리자 캐쉬날리니 잘 됩니다 ^^