Skip to content

Commit

Permalink
enh: Use gdlib for preview generation by default
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Nov 19, 2023
1 parent a00e42d commit e7b815e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Classifiers/Classifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ private function getConvertedFilePath(Node $file): string {
$this->logger->debug('generating preview of ' . $file->getId() . ' with dimension '.self::TEMP_FILE_DIMENSION);

$imageType = exif_imagetype($path); //To troubleshoot console errors, GD does not support all formats.
if (0 < $imageType && $this->config->getSystemValueString('recognize.preview.gd', 'true') === 'true') {
if (0 < $imageType) {
return $this->generatePrevieWithGD($path);
} else {
if (!$this->previewProvider->isAvailable($file)) {
Expand Down

0 comments on commit e7b815e

Please sign in to comment.