s

svgalpha

@preview

Add global transparency to a SVG image.

v0.0.1
MIT

Package Information

Last Updated

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/svgalpha:0.0.1

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/svgalpha:0.0.1": *

Version History

0.0.1
a7ecdadb53b8...

SVGAlpha

This is a simple package adds a global alpha layer to an SVG image.

Example of usage:

#import "@preview/svgalpha:0.0.1": transparent-svg
#let img = read("carrot.svg", encoding: "utf8")
#transparent-svg(img, 0.290, width: 40%)

The requiered paramaters are the first two ones (image data and alpha value). The rest are passed as is to the #image function.