I usually import drawables as png images in three ...
# android
j
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
using svg(scalable vector graphics) can be optimal.
j
isn’t svg file larger than png?
c
@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
Thanks Minhaj and CLOVIS, both u guys’ explanation really helped. So good to use SVG on geometric images!
✌️ 1