mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
Add minimum artwork dimensions
This commit is contained in:
parent
3d85a6d936
commit
5b6a334dd0
4 changed files with 21 additions and 2 deletions
11
lib/Exceptions/ArtworkImageDimensionsTooSmallException.php
Normal file
11
lib/Exceptions/ArtworkImageDimensionsTooSmallException.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?
|
||||
namespace Exceptions;
|
||||
|
||||
class ArtworkImageDimensionsTooSmallException extends AppException{
|
||||
protected $message;
|
||||
|
||||
// This has to be initialized in a constructor because we use the number_format() function.
|
||||
public function __construct(){
|
||||
$this->message = 'Image dimensions are too small. The minimum image size is ' . number_format(COVER_ARTWORK_IMAGE_MINIMUM_WIDTH) . ' × ' . number_format(COVER_ARTWORK_IMAGE_MINIMUM_HEIGHT) . '.';
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue