You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->DebugMessage('SourceImageToGD.ImageCreateFromStringReplacement() failed with unknown image type "'.substr($this->rawImageData, 0, 4).'" ('.phpthumb_functions::HexCharDisplay(substr($this->rawImageData, 0, 4)).')', __FILE__, __LINE__);
3908
3908
// return $this->ErrorImage('Unknown image type identified by "'.substr($this->rawImageData, 0, 4).'" ('.phpthumb_functions::HexCharDisplay(substr($this->rawImageData, 0, 4)).') in SourceImageToGD()['.__LINE__.']');
@@ -3914,9 +3914,10 @@ public function SourceImageToGD() {
$GDreadSupport = (bool) @$gd_info['WebP Support '];
4011
+
break;
4012
+
4007
4013
}
4008
4014
if ($imageHeader) {
4009
4015
// cannot create image for whatever reason (maybe imagecreatefromjpeg et al are not available?)
@@ -4044,7 +4050,7 @@ public function SourceImageToGD() {
4044
4050
//switch (substr($this->rawImageData, 0, 2)) {
4045
4051
// case 'BM':
4046
4052
switch (@$this->getimagesizeinfo[2]) {
4047
-
case6:
4053
+
caseIMAGETYPE_BMP:
4048
4054
ob_start();
4049
4055
if (!@include_once__DIR__ .'/phpthumb.bmp.php' ) {
4050
4056
ob_end_clean();
@@ -4071,8 +4077,8 @@ public function SourceImageToGD() {
4071
4077
//switch (substr($this->rawImageData, 0, 4)) {
4072
4078
// case 'II'."\x2A\x00":
4073
4079
// case 'MM'."\x00\x2A":
4074
-
case7:
4075
-
case8:
4080
+
caseIMAGETYPE_TIFF_II:
4081
+
caseIMAGETYPE_TIFF_MM:
4076
4082
return$this->ErrorImage($this->ImageMagickVersion() ? 'ImageMagick failed on TIFF source conversion' : 'ImageMagick is unavailable and phpThumb() does not support TIFF source images without it');
0 commit comments