|
|
|
|
|
by brokenwren
2292 days ago
|
|
Gzip isn't going to compress as well as a binary format would. SVG is XML and while it has text components that can be compressed, it will reach limits. Plus, if you compress the binary, it could be reduced even further. Using a byte encoding for element types and numeric values over strings would likely dramatically reduce sizes. For example: <z:rect x="0" y="0" width="10" height="10"/> Could be binary encoded as something like: 00 00000000 00000000 00000110 00000110 (shape, x, y, width, height) Total size of compress XML is probably 30-40 bytes. Final binary size is 16-18 bytes. |
|