mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 10:24:31 +02:00
Generate WebP thumbnails even for builtin footprints
This commit is contained in:
parent
4cb1313a77
commit
66c1eff79f
2 changed files with 3 additions and 6 deletions
|
@ -149,11 +149,8 @@ class AttachmentURLGenerator
|
|||
return $this->urlGenerator->generate('attachment_view', ['id' => $attachment->getID()]);
|
||||
}
|
||||
|
||||
//For builtin resources 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())
|
||||
//GD can not work with SVG, so serve it directly...
|
||||
|| 'svg' === $attachment->getExtension()) {
|
||||
//GD can not work with SVG, so serve it directly...
|
||||
if ('svg' === $attachment->getExtension()) {
|
||||
return $this->assets->getUrl($asset_path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue