svg2png: produces always low quality PNG images?

Open
#283 21 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reproducing the reported SVG-to-PNG conversion using the scale, output_width/output_height, and dpi parameters described in the issue. The issue does not identify a file, test, reproducible SVG, or an agreed expected result, so completion criteria would need to be established before implementation.

Written by the indexing model from the issue text.

Description

How to produce from an SVG image a PNG image of smaller size but still high resolution? Currently, I can produce smaller size PNGs but the resolution is reduced as well. It seems that scale and output_width/height do the same thing: they change/reduce the size and in doing so also the resolution. The parameter dpi I thought was the answer but it seems not to affect the quality of the PNG. Am I missing something?

Dominant language
Python
Stars
959
Forks
172
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Kozea/CairoSVG

All issues in Kozea/CairoSVG

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.