0

Question from a beginner) Why do I get stripes between color transitions when converting an image to SVG and uploading it to android studio? How to fix it ?enter image description here

enter image description here

Oganes
  • 25
  • 3

1 Answers1

0

The SVG image format can only represent things in vectors, meaning lines or curves, as opposed to the usual pixel-based formats.

This means it is very efficient for representing diagrams, simple shapes and letters, to the point where you can zoom endlessly into them without losing quality, but it cannot represent full-color realistic images with the same precision or efficiency.

Basically, you should only use SVG (and other vector-based graphics formats) for icons and simple shapes, not complex shapes with different hues of color.

Binary Enigma
  • 58
  • 1
  • 8
  • For more info on file formats in general, you can also check out https://stackoverflow.com/questions/2336522/what-are-the-different-usecases-of-png-vs-gif-vs-jpeg-vs-svg – Binary Enigma Oct 16 '22 at 10:34