directus/directus

Proper SVG Thumbnail Support

benhaynes asked for this feature 11 months ago — 3 comments

benhaynes commented 11 months ago Admin

While we can upload SVGs, there's been debate as to how thumbs should be stored (same vector asset or bitmap version).

For conversation regarding options refer to GitHub: https://github.com/directus/directus/issues/1166

| brocgailit commented 7 months ago

Any progress on this? Looks like 1166 is closed without resolving the thumbnail issue (should be separate issue?). Another option for this may be pushing the SVG to a canvas. https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Drawing_DOM_objects_into_a_canvas

| brocgailit commented 7 months ago

Using the full asset presents an issue when width and/or height aren't set in the SVG file, which Adobe Illustrator leaves out when exporting for some strange reason.

Join the discussion!

Sign-in with GitHub to comment