Code: Select all
echo 'W3ERROR_NO PERMISSION'; exit;
Code: Select all
//echo 'W3ERROR_NO PERMISSION'; exit;
Code: Select all
var imgARY = ["jpg", "jpeg", "gif", "png"];
Code: Select all
$validImgExt = array("jpg", "jpeg", "gif", "png")
Code: Select all
$validImgExt = array("jpg", "jpeg", "gif", "png", "webp");
Code: Select all
elseif(strtolower($attachment['extension']) == 'png'){
$source = @imagecreatefrompng($filesFolderPhysicalName);
}
Code: Select all
elseif(strtolower($attachment['extension']) == 'webp'){
$source = @imagecreatefromwebp($filesFolderPhysicalName);
}
Code: Select all
$source = @imagecreatefromjpeg($filesFolderThumbPhysicalName);
if($source){
$rotate = imagerotate($source, $degrees, 0);
if($rotate){
imagejpeg($rotate, $filesFolderThumbPhysicalName);
}
}
}
Code: Select all
elseif( strtolower($attachment['extension']) == 'webp'){
$rotate = imagerotate($source, $degrees, 0);
$saved = imagewebp($rotate, $filesFolderPhysicalName);
// thumb
$source = @imagecreatefromwebp($filesFolderThumbPhysicalName);
if($source){
$rotate = imagerotate($source, $degrees, 0);
if($rotate){
imagewebp($rotate, $filesFolderThumbPhysicalName);
}
}
}
https://github.com/axew3/phpBB-image-at ... /tag/1.0.5Fix the rotation popup to correctly show up on browsers/devices.
Add webp img format