Skip to content

Commit 7c80657

Browse files
committed
webp形式の時は処理しない。
1 parent 4a3bdb8 commit 7c80657

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

petitnote/functions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,9 @@ function convert_andsave_if_smaller_png2webp($is_upload_img,$fname,$time): void
764764
global $max_kb,$max_file_size_in_png_format_paint,$max_file_size_in_png_format_upload;
765765
$upfile=TEMP_DIR.basename($fname);
766766

767+
if(mime_content_type($upfile)==="image/webp"){
768+
return;//wep形式の時は処理しない。
769+
}
767770
clearstatcache();
768771
$filesize=filesize($upfile);
769772

0 commit comments

Comments
 (0)