Zeplin automatically generates resources, including assets, tailored to the platform needs. Besides the regular PNG, JPG, PDF, and SVG asset formats, Zeplin also provides the assets in optimized PNG, optimized JPG, optimized SVG, and WebP formats.

Here's a list of all available asset formats for each platform:

Web projects:

  • PNGs and optimized PNGs (1x, 2x, 3x)

  • SVGs and optimized SVGs

  • JPGs and optimized JPGs (1x, 2x, 3x)

  • WebPs (1x, 2x, 3x)

iOS Projects:

  • PNGs and optimized PNGs (1x, 2x, 3x)

  • SVGs and optimized SVGs

  • JPGs and optimized JPGs (1x, 2x, 3x)

  • PDFs

Android Projects:

  • PNGs and optimized PNGs (mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi)

  • SVGs and optimized SVGs

  • JPGs and optimized JPGs (mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi)

  • WebPs (mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi)

☝️ To be able to download assets from Zeplin, designers need to set layers as "exportable” before publishing them to Zeplin.

Downloading optimized assets

By default, the optimized versions of assets will be enabled in your Assets settings. To view optimized assets, you can select the Assets tab (🔪) in the screen's right panel. Then, you’ll see the download button near asset formats.

☝️ If you don’t see the optimized PNG, optimized JPG, and WebP formats even if they’re enabled, you need to publish your designs again using the latest version of Zeplin desktop apps. Then, Zeplin will generate the optimized versions of the assets.

This also works the similar way for optimized assets of a component—go to the styleguide that you've exported your components to and click on a component. Then, you can view and download the available optimized assets of your component on the right panel.

☝️ If you'd like to download the original assets rather than optimized ones, you can disable the optimized versions from the settings menu of Assets.

How Zeplin Optimizes Assets

Zeplin currently uses a lossy optimization technique to optimize PNG and JPG resources. Lossy compression reduces the file size at the expense of possibly reducing the image quality. To do that, Zeplin uses a package called "imagemin" which Google also recommends for the optimization practices. More specifically, Zeplin uses the plugins "imageminPngquant" and "imageminMozjpeg" to optimize PNG and JPG resources.

The quality level of JPG compression is set to "85" while the level of PNG compression is set to "min: 65 max: 80". However, these numbers are subject to change.

To optimize SVG assets, Zeplin uses the SVGO as a tool.

Related Articles

Did this answer your question?