Images in an issue are mis-cropped #201688
Replies: 2 comments 2 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
One additional observation that may help narrow this down: Since the same uploaded asset renders differently depending on how it's embedded ( Some things worth comparing in DevTools:
Because the Markdown version displays correctly while the drag-and-drop version is cropped, this looks more like a frontend rendering inconsistency than an issue with SVG parsing or upload processing. If someone can inspect both elements in DevTools and compare the computed styles, that may quickly identify which CSS rule or wrapper is responsible for the clipping. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Other
Body
This problem was discovered in the wild, and images are same as one of those.
Take a small SVG image, 272 bytes,
width='12' height='12', and import into an issue by dragging it into the browser. Magically inserted into the issue is an HTMLIMG. Then take the samesrc, and put it into a markdown pling-brackets-parentheses construct.Behold mis-cropping of the first of these:

The drag-from-finder, the UI simple thing, mis-crops and should not. This seems to be a bug.
For future readers, there follows a PNG image of the relevant bit of this report (inserted by same two methods):


Not sure why the mis-colouration — not this issue. And the corner rounding in these PNGs might be the same bug.
Beta Was this translation helpful? Give feedback.
All reactions