Skip to content

Commit

Permalink
Update app/Image/SizeVariantDefaultFactory.php
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Nagel <matthias.h.nagel@posteo.de>
  • Loading branch information
kamil4 and nagmat84 authored Feb 8, 2022
1 parent 2ea4623 commit ae6711c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Image/SizeVariantDefaultFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public function createSizeVariantCond(int $sizeVariant): ?SizeVariant
if (!$this->isEnabledByConfiguration($sizeVariant)) {
return null;
}
// Don't generate medium size variants for videos, because the current web front-end has no use for it. Let's save some storage space.
if ($this->photo->isVideo() && ($sizeVariant === SizeVariant::MEDIUM || $sizeVariant === SizeVariant::MEDIUM2X)) {
return null;
}
Expand Down

0 comments on commit ae6711c

Please sign in to comment.