Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Template for AVIF as preview format removed
Signed-off-by: JanisPlayer <[email protected]>
  • Loading branch information
JanisPlayer authored Sep 10, 2023
commit 59bb8798922eee1abce46716884579978afa248f
9 changes: 0 additions & 9 deletions lib/private/legacy/OC_Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ private function _output(?string $filePath = null, ?string $mimeType = null): bo
case 'image/jpeg':
$imageType = IMAGETYPE_JPEG;
break;
case 'image/avif':
$imageType = IMAGETYPE_AVIF;
break;
case 'image/png':
$imageType = IMAGETYPE_PNG;
break;
Expand Down Expand Up @@ -393,12 +390,6 @@ public function data(): ?string {
$quality = $this->getJpegQuality();
$res = imagejpeg($this->resource, null, $quality);
break;
case "image/avif":
/** @psalm-suppress InvalidScalarArgument */
imageinterlace($this->resource, (PHP_VERSION_ID >= 80000 ? true : 1));
$quality = $this->getJpegQuality();
$res = imagejpeg($this->resource, null, $quality);
break;
case "image/gif":
$res = imagegif($this->resource);
break;
Expand Down