https://kotlinlang.org logo
j

JungIn Choi

06/29/2021, 9:05 AM
I usually import drawables as png images in three sizes (1x 2x 3x), and all of the sudden I got curious if there’s any better method🤔 Maybe I’m using a very old & inefficient way that takes app capacity so.. any tips on optimizing app size w.r.t. image resource?
😶 8
m

Minhaj

06/29/2021, 9:07 AM
using svg(scalable vector graphics) can be optimal.
j

JungIn Choi

06/29/2021, 9:28 AM
isn’t svg file larger than png?
c

CLOVIS

06/29/2021, 11:17 AM
@JungIn Choi depends on your image. If it's a picture, yeah. If it's something geometric like a logo, SVG is way better than PNG
j

JungIn Choi

06/30/2021, 3:37 AM
Thanks Minhaj and CLOVIS, both u guys’ explanation really helped. So good to use SVG on geometric images!
✌️ 1