mirror of
https://github.com/friendica/friendica
synced 2025-04-24 06:30:13 +00:00
round scaled dimensions up to avoid zero size
This commit is contained in:
parent
e9dcf15d86
commit
c5b8abcaf0
2 changed files with 8 additions and 5 deletions
|
@ -591,6 +591,9 @@ class Image
|
|||
if (!$this->isValid()) {
|
||||
return false;
|
||||
}
|
||||
if ($dest_width <= 0 || $dest_height <= 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->isImagick()) {
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue