@@ -390,26 +390,26 @@ function thumb($path,$fname,$time,$max_w,$max_h,$options=[]){
390390 $ out_h = $ w_h_size_over ? ceil ($ h * $ ratio ):$ h ;
391391
392392 switch ($ mime_type = mime_content_type ($ fname )) {
393- case "image/gif " ;
393+ case "image/gif " :
394394 if (!function_exists ("ImageCreateFromGIF " )){//gif
395395 return ;
396396 }
397397 $ im_in = @ImageCreateFromGIF ($ fname );
398398 if (!$ im_in )return ;
399399
400400 break ;
401- case "image/jpeg " ;
401+ case "image/jpeg " :
402402 $ im_in = @ImageCreateFromJPEG ($ fname );//jpg
403403 if (!$ im_in )return ;
404404 break ;
405- case "image/png " ;
405+ case "image/png " :
406406 if (!function_exists ("ImageCreateFromPNG " )){//png
407407 return ;
408408 }
409409 $ im_in = @ImageCreateFromPNG ($ fname );
410410 if (!$ im_in )return ;
411411 break ;
412- case "image/webp " ;
412+ case "image/webp " :
413413 if (!function_exists ("ImageCreateFromWEBP " )||version_compare (PHP_VERSION , '7.0.0 ' , '< ' )){//webp
414414 return ;
415415 }
@@ -446,24 +446,24 @@ function thumb($path,$fname,$time,$max_w,$max_h,$options=[]){
446446 $ outfile =$ fname ;
447447 //本体画像を縮小
448448 switch ($ mime_type ) {
449- case "image/gif " ;
449+ case "image/gif " :
450450 if (function_exists ("ImagePNG " )){
451451 ImagePNG ($ im_out , $ outfile ,3 );
452452 }else {
453453 ImageJPEG ($ im_out , $ outfile ,98 );
454454 }
455455 break ;
456- case "image/jpeg " ;
456+ case "image/jpeg " :
457457 ImageJPEG ($ im_out , $ outfile ,98 );
458458 break ;
459- case "image/png " ;
459+ case "image/png " :
460460 if (function_exists ("ImagePNG " )){
461461 ImagePNG ($ im_out , $ outfile ,3 );
462462 }else {
463463 ImageJPEG ($ im_out , $ outfile ,98 );
464464 }
465465 break ;
466- case "image/webp " ;
466+ case "image/webp " :
467467 if (function_exists ("ImageWEBP " )&&version_compare (PHP_VERSION , '7.0.0 ' , '>= ' )){
468468 ImageWEBP ($ im_out , $ outfile ,98 );
469469 }else {
@@ -512,13 +512,13 @@ function switch_tool($tool){
512512 case 'ChickenPaint ' :
513513 $ tool ='chi ' ;
514514 break ;
515- case 'Klecks ' ;
515+ case 'Klecks ' :
516516 $ tool ='klecks ' ;
517517 break ;
518- case 'Tegaki ' ;
518+ case 'Tegaki ' :
519519 $ tool ='tegaki ' ;
520520 break ;
521- case 'Axnos Paint ' ;
521+ case 'Axnos Paint ' :
522522 $ tool ='axnos ' ;
523523 break ;
524524 case 'Upload ' :
0 commit comments