This is how you export any layer as an image asset.
Currently we support 4 different image formats for exporting images:
When it comes to high-quality images, perhaps with a transparent layer, PNG is the right pick.
WebP is a relatively new image format (2010). These days it's developed by Google.
Based on Google's measurements conversion from PNG to WebP results in a 45% reduction in file size when starting with PNGs found on the web, and a 28% reduction compared to PNGs that are recompressed with pngcrush and PNGOUT.
The WebP is powerful not only thanks to it's great compression, but also because - like PNG - it supports transparency (alpha channel).
Currently it's fully supported only in Google Chrome and Opera.
If you want to export an image as a WebP from Avocode, just double click on the layer and select WebP in the Export Assets modal.
JPEG is a lossy yet lightweight format used mostly for bitmap images (photos).
SVG is a standard format for vector shapes.
When you export a vector shape as a SVG, it will be automatically optimized with SVGO. It's a Node.js-based tool which converts SVG-as-XML data into SVG-as-JS AST representation. The result? Lightweight vector shape file made only from the actual curves, no extra stuff like the editor metadata.
Our SVG export is also compatible with SVG sprites.
You can even export bitmaps from any file as an SVG.