Forum
SVG Image Previews - Missing
Hi there! In Perch 3 I thought the missing SVG image previews issue was gone. But in a new build, I'm seeing the same issue - I'll upload an SVG, it works just fine, but after saving, the preview of the image is gone. It's easy to confuse things and think there is no image. Hence, super frustrating.
Does anyone have an answer to this one?
Hello Leigh,
To me it happened only with SVGs, that didn't have height and width attributes. If this is the case, try adding e.g.
height="24px" width="24px"
to your SVG files before uploading them. You can still set their dimensions with CSS regardless of their 'embedded' values, of course.Interesting, but I gave it a try and no go. Still missing a preview of the image in the CMS control panel in any given region.
Can you show us an example SVG that is causing the issue?
Any SVG in the Assets bin shows previews. But ANY SVG in a given edit page for my client, it shows zero preview, as if there was no image. It's not specific at any one SVG, all kinds are failing. This is the same issue that was in Perch 2 Runway that I thought was resolved.
Am I missing something?
We're not seeing an issue like that, which is why I'm trying to help you debug it.
Oh, it's not common among users? I thought I saw a thread on it. Here's an SVG example, one of many, that is not showing as a preview in the page content.
Again, I'm seeing the previews just fine in the Assets panel, but within and given region that has the logo (and it shows on the site), doesn't seem to since there is no preview, just the link for "select or upload an image" link.
Hi everyone - no reply on the missing SVG previews in Perch. Something I've been waiting a long time to resolve. We've used tons of different SVGs, perch never shows the preview thumbnail in the content editor - just shows as empty even though the file is there and does show up on the page normally. But it makes changing and checking content really hard since you can't see what you have. Any help?