Skip to content

Commit

Permalink
potiboard.php
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 1, 2024
1 parent 7cf537a commit 44a3b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion potiboard5/potiboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -3071,7 +3071,7 @@ function convert_andsave_if_smaller_png2jpeg($path,$time,$ext,$is_upload=false){
clearstatcache();
$fsize_dest=filesize($dest);
if(($is_upload && ($fsize_dest > (IMAGE_SIZE * 1024))) || ($fsize_dest > (MAX_KB * 1024))){//指定サイズを超えていたら
$im_jpg = thumb($path,$time,$ext,null,null,['png2jpeg'=>1]);//実体データを縮小
$im_jpg = thumb($path,$time,$ext,null,null,['png2jpeg'=>1]);//実体データの変換

if($im_jpg) {
if(filesize($im_jpg)<$fsize_dest){//JPEGのほうが小さい時だけ
Expand Down

0 comments on commit 44a3b90

Please sign in to comment.