badges / badges/squint

high dpi versions for PNG?

Open
#177 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
22
Forks
4
PR merge metrics
No merged PRs in 30d

Description

:clipboard: **Description**

Hey :) I'm the maintainer of https://github.com/py-cov-action/python-coverage-comment-action which provide comments that look like this (using shields)

Image

But when users receive an email notification for those comments, on gmail, they look like this:

Image

This is because GMail doesn't support SVG.

So I've tried using pngs, and the problem is that with a high dpi display (retina, ...), they look like this:

![Image](https://github.com/user-attachments/assets/11db52f5-1378-43fa-870a-91a4dfe3f6c0)

So I'm wondering if there could be a way to get bigger PNG images (e.g. 2x bigger) for which I could then use with `height=20` and get a pixel-perfect badge as png that would look awesome on Gmail notification too ?

Contributor guide

Open the contributing guide

Research direction

The request concerns higher-DPI PNG output from this Rust raster badge proxy, but it names no source file, test, or entry point. Start by locating the PNG generation path and determine how larger images can preserve the requested rendered height; done means a pixel-perfect high-DPI PNG is available for Gmail notifications.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.