อยากสอบถามว่า mime type ของ Wepb จริงๆ เป็น image/x-pam หรือ image/webp ค่ะ
เพื่อที่จะได้ทำการดักเช็ค mime type เพิ่มเมื่อ upload ไฟล์ Wepb
โค้ด: เลือกทั้งหมด
<?php
$file = 'foo.webp';
$im = new imagick($file);
echo $im->getImageMimeType();
?>
Moderator: mindphp, ผู้ดูแลกระดาน
โค้ด: เลือกทั้งหมด
<?php
$file = 'foo.webp';
$im = new imagick($file);
echo $im->getImageMimeType();
?>
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 7