diff --git a/Web/Models/Entities/Photo.php b/Web/Models/Entities/Photo.php index 90c532b2..9bcb2f70 100644 --- a/Web/Models/Entities/Photo.php +++ b/Web/Models/Entities/Photo.php @@ -107,6 +107,10 @@ class Photo extends Media $sizes = Image::calculateSize( $image->getImageWidth(), $image->getImageHeight(), 8192, 4320, Image::SHRINK_ONLY | Image::FIT ); + # gif fix 10.01.2025 + if($image->getImageFormat() === 'GIF') + $image->setIteratorIndex(0); + $image->resizeImage($sizes[0], $sizes[1], \Imagick::FILTER_HERMITE, 1); $image->writeImage($this->pathFromHash($hash)); $this->saveImageResizedCopies($image, $filename, $hash);