UploadResizeConfigInterface.php 725 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Backend\Model\Image;
  8. /**
  9. * Interface UploadResizeConfigInterface
  10. *
  11. * Used to retrieve configuration for frontend image uploader
  12. */
  13. interface UploadResizeConfigInterface
  14. {
  15. /**
  16. * Get maximal width value for resized image
  17. *
  18. * @return int
  19. */
  20. public function getMaxWidth(): int;
  21. /**
  22. * Get maximal height value for resized image
  23. *
  24. * @return int
  25. */
  26. public function getMaxHeight(): int;
  27. /**
  28. * Get config value for frontend resize
  29. *
  30. * @return bool
  31. */
  32. public function isResizeEnabled(): bool;
  33. }