Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[3.4-dev] Don't resize uploaded SVG images #7435

Closed
Closed
Changes from all commits
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
4 changes: 2 additions & 2 deletions system/modules/core/classes/FileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ protected function resizeUploadedImage($strImage)

$objFile = new \File($strImage, true);

// Not an image
if (!$objFile->isSvgImage && !$objFile->isGdImage)
// Not a GD image
if (!$objFile->isGdImage)
{
return false;
}
Expand Down