0

I am developing an app with Ionic 3 and I would like to know how to handler images for different resolutions. I mean, I have the same image in different sizes (for LDPI, MDPI, HDPI, XHDPI, XXHDPI, XXXHDPI), but I don't know how to load the right image when I use:

<img src="img/thumbnail-totoro.png">
  • Do I have to use a media query in css or to calculate the ratio in typescript?

  • And finally, do I have to save these images into resources/android/images or assets/imgs? I think is better into resource/android/images because if I build for iOS, these images will not be included into the bundle (best practice)

halfer
  • 19,824
  • 17
  • 99
  • 186
  • 1
    Look at this it should help [https://stackoverflow.com/questions/8168329/android-screen-sizes-in-pixels-for-ldpi-mdpi-hpdi](https://stackoverflow.com/questions/8168329/android-screen-sizes-in-pixels-for-ldpi-mdpi-hpdi) – Asmaa3107 Aug 13 '18 at 13:53
  • Thanks... I'll take a look. ;) – Jesus Sanchez Aug 14 '18 at 10:56

0 Answers0