mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3565] [bug]: SVG is not rendered correctly #1222
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1222
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kidonng on GitHub (Nov 18, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3565
Is there an existing issue for this?
Current behavior
ImageLens is enabled for SVG but the actual renderer doesn't handle it correctly (still treats it as a blob instead of rendering it directly)
Steps to reproduce
Environment
Production
Version
Cloud
@rajdip-b commented on GitHub (Nov 19, 2023):
@AndrewBastin can I give it a try?
@rajdip-b commented on GitHub (Nov 19, 2023):
Hey, I went through the code and couldn't find anything that's suspicious. I feel that it's the application data of some SVG images that are impacting the dispaly.
@Xyndra commented on GitHub (Jan 5, 2024):
I have the same problem with manually coded SVGs. It seems like it has something to do with loading other raw image types as bytes while loading SVG as clean Text
@shuaixr commented on GitHub (Oct 2, 2024):
github.com/hoppscotch/hoppscotch@e9e1366cc8/packages/hoppscotch-common/src/components/lenses/renderers/ImageLensRenderer.vue (L89-L103)It looks like passing the type parameter when creating the blob can fix this bug. @AndrewBastin , I would like to work on this