"; print ""; print '
Class Test Master
'; // thumb sizes $thumb_width = 250; $thumb_height = 300; // class $image = BASE.LAYOUT.CONTENT_PATH.IMAGES.'no_picture_square.jpg'; // rotate image first $_image->correctImageOrientation($image); // thumbnail tests echo "
CLASS->CREATETHUMBNAILSIMPLE: ".basename($image).": WIDTH: $thumb_width
"; // static $image = BASE.LAYOUT.CONTENT_PATH.IMAGES.'no_picture.jpg'; // rotate image first $image_class::correctImageOrientation($image); // thumbnail tests echo "
S::CREATETHUMBNAILSIMPLE: ".basename($image).": WIDTH: $thumb_width
"; echo "U-STATIC VARIOUS:
"; // image thumbnail $images = array( // height bigger // 'no_picture.jpg', // 'no_picture.png', // width bigger // 'no_picture_width_bigger.jpg', // 'no_picture_width_bigger.png', // square // 'no_picture_square.jpg', // 'no_picture_square.png', // other sample images // '5c501af48da6c.jpg', // Apple HEIC files // 'img_2145.heic', // Photoshop 'photoshop_test.psd', ); // return mime type ala mimetype $finfo = new finfo(FILEINFO_MIME_TYPE); foreach ($images as $image) { $image = BASE.LAYOUT.CONTENT_PATH.IMAGES.$image; list ($height, $width, $img_type) = getimagesize($image); echo "
IMAGE INFO: ".$height."x".$width.", TYPE: ".$img_type." [".$finfo->file($image)."]
"; // rotate image first Image::correctImageOrientation($image); // thumbnail tests echo "
".basename($image).": WIDTH: $thumb_width
"; echo "
".basename($image).": HEIGHT: $thumb_height
"; echo "
".basename($image).": WIDTH/HEIGHT: $thumb_width x $thumb_height
"; // test with dummy echo "
".basename($image).": WIDTH/HEIGHT: $thumb_width x $thumb_height (+DUMMY)
"; echo "
"; } // DEPRECATED // static /* $image = BASE.LAYOUT.CONTENT_PATH.IMAGES.'no_picture.jpg'; // rotate image first $basic->correctImageOrientation($image); // thumbnail tests echo "
S::CREATETHUMBNAILSIMPLE: ".basename($image).": WIDTH: $thumb_width
"; */ // error message print $basic->printErrorMsg(); print ""; // __END__