"Fossies" - the Fresh Open Source Software Archive

Member "phpMyAdmin-5.1.0-english/libraries/classes/Plugins/Transformations/Input/Image_JPEG_Upload.php" (24 Feb 2021, 774 Bytes) of package /linux/www/phpMyAdmin-5.1.0-english.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Image_JPEG_Upload.php" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 5.0.4-english_vs_5.1.0-english.

    1 <?php
    2 /**
    3  * Image JPEG Upload Input Transformations plugin for phpMyAdmin
    4  */
    5 
    6 declare(strict_types=1);
    7 
    8 namespace PhpMyAdmin\Plugins\Transformations\Input;
    9 
   10 use PhpMyAdmin\Plugins\Transformations\Abs\ImageUploadTransformationsPlugin;
   11 
   12 /**
   13  * Handles the image upload input transformation for JPEG.
   14  * Has two option: width & height of the thumbnail
   15  */
   16 // @codingStandardsIgnoreLine
   17 class Image_JPEG_Upload extends ImageUploadTransformationsPlugin
   18 {
   19     /**
   20      * Gets the plugin`s MIME type
   21      *
   22      * @return string
   23      */
   24     public static function getMIMEType()
   25     {
   26         return 'Image';
   27     }
   28 
   29     /**
   30      * Gets the plugin`s MIME subtype
   31      *
   32      * @return string
   33      */
   34     public static function getMIMESubtype()
   35     {
   36         return 'JPEG';
   37     }
   38 }