Kozea / Kozea/pygal

Please support svgz

Open
#362 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.8k
Forks
419
PR merge metrics
No merged PRs in 30d

Description

Hello,
I'm currently using pygal to generate *svg* files, unfortunately, it makes my webpages pretty heavy (several dozen of megabytes). It would be super-great to implement [svgz support]( https://en.wikipedia.org/wiki/Scalable_Vector_Graphics#Compression ): `gzip` the svg content, and use the right content-type.

Since svg is xml, the compression is supper-efficient.

As for the implementation, shall I simply add a parameter to the `__init__` method to enable such thing, or is it a preferred way?

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by locating pygal's SVG generation and output entry points, then check how content types are selected. Done means SVG output can be gzip-compressed as SVGZ and is served with the appropriate content type.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.