Image_JPEG_Upload.php 744 B

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