Support bitmap masks

Open
#375 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the reported SVG-to-PNG conversion with the linked SVG and PNG examples and the shown svg2png call. No repository file or test is named, so locate the bitmap-mask handling first; done means the example renders correctly without broken text or image content.

Written by the indexing model from the issue text.

Description

feature

Hello to all, i have this issue happening some time now and i want to know how i can fix it

I'm trying to convert a SVG image to a PDF using Cairo, but it's really not working and everytime i got a broken PDF image

The SVG file and the PNG image are right here:
Google drive

All of the text and everything on the image are broken on PNG

PNG:

gluck pdf_0_svg_image svg

Someone can help me? The code are very simple to convert but i always got the same error

svg2png(bytestring=svg_stream, scale=3, background_color='white', write_to=path_to_pdf)

Thank you in advance!

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.