mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:40:16 +00:00
Now only resize if supported
This commit is contained in:
parent
09727024ba
commit
2624abdc35
1 changed files with 2 additions and 2 deletions
|
@ -163,8 +163,8 @@ function photo_init(App $a) {
|
|||
}
|
||||
}
|
||||
|
||||
// Resize only if its not a GIF
|
||||
if ($mimetype != "image/gif") {
|
||||
// Resize only if its not a GIF and it is supported by the library
|
||||
if (($mimetype != "image/gif") && in_array($mimetype, Photo::supportedTypes())) {
|
||||
$ph = new Photo($data, $mimetype);
|
||||
if ($ph->is_valid()) {
|
||||
if (isset($customres) && $customres > 0 && $customres < 500) {
|
||||
|
|
Loading…
Reference in a new issue