Skip to content

Generate density specific pngs? #31

@vovkab

Description

@vovkab

Maybe I'm missing something, but how do I create density specific png?

When you create png's usually you want to have at least 2 svg. One for mdpi and another for hdpi. This way images that have straight lines will not be blurry.

So here can be a few ways to create other densities from mdpi and hdpi files:

====== (1) ======
mdpi x1 -> mdpi
hdpi x1 -> hdpi
mdpi x2 -> xhdpi
mdpi x3 -> xxhdpi

or
====== (2) ======
mdpi x1 -> mdpi
hdpi x1 -> hdpi
mdpi x2 -> xhdpi
hdpi x2 -> xxhdpi

For now I just need to do (1) to avoid blurry image.

Right now if you use only

  • mdpi -> hdpi will be blurry.
  • hdpi -> mdpi and xhdpi will be blurry

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions