RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
719 stars 115 forks source link

Add assets compression support (iOS) #87

Open NoFearJoe opened 3 years ago

NoFearJoe commented 3 years ago

Do you plan to add assets compression support?

If no, I can do it. But there are 3 ways of implementation:

Which one is better?

subdan commented 3 years ago

Why do you want to change assets compression?

NoFearJoe commented 3 years ago

This will help us to reduce their size

subdan commented 3 years ago

I exported large 40 illustrations and changing compression type doesn’t reduce Asset.car file size.

Compression type Asset.car size
GPU Smallest Size 4,2 MB
GPU Best Quality 9,3 MB
Basic 13,2 MB
Lossless 2,5 MB
Automatic (Default) 2,5 MB

Could you show me an example project where setting asset compression type reduces Asset.car file size?

NoFearJoe commented 3 years ago

It's strange because I get opposite results. I can't share my assets, but can remember my results:

I have different asset formats – pdf and png.

subdan commented 3 years ago

Do you plan to add assets compression support?

No, because most developers use default compression type.

Which one is better?

The first one.