mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Dont try to generate thumbnails for SVG files, as GD does not support them...
This commit is contained in:
parent
403dacbb25
commit
a27a6ea675
1 changed files with 3 additions and 1 deletions
|
@ -147,7 +147,9 @@ class AttachmentURLGenerator
|
|||
|
||||
//For builtin ressources it is not useful to create a thumbnail
|
||||
//because the footprints images are small and highly optimized already.
|
||||
if ('thumbnail_md' === $filter_name && $attachment->isBuiltIn()) {
|
||||
if (('thumbnail_md' === $filter_name && $attachment->isBuiltIn())
|
||||
//GD can not work with SVG, so serve it directly...
|
||||
|| $attachment->getExtension() === 'svg') {
|
||||
return $this->assets->getUrl($asset_path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue