Skip to content

Commit

Permalink
v6.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 7, 2023
1 parent 03f8f0d commit 0d6201c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions potiboard5/potiboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// POTI-board EVO
// バージョン :
const POTI_VER = 'v6.12.0';
const POTI_VER = 'v6.12.1';
const POTI_LOT = 'lot.20231106';

/*
Expand Down Expand Up @@ -3042,7 +3042,9 @@ function check_jpeg_exif($dest){
list($w,$h) = getimagesize($dest);

$im_in = imagecreatefromjpeg($dest);

if(!$im_in){
return;
}
switch ($orientation) {
case 3:
$im_in = imagerotate($im_in, 180, 0);
Expand All @@ -3056,6 +3058,9 @@ function check_jpeg_exif($dest){
default:
break;
}
if(!$im_in){
return;
}
if ($orientation === 6 || $orientation === 8) {
// 90度または270度回転の場合、幅と高さを入れ替える
list($w, $h) = [$h, $w];
Expand Down

0 comments on commit 0d6201c

Please sign in to comment.