Creating XHDPI, HDPI, MDPI, LDPI images in Photoshop for Android

ThreeRedRubies picture ThreeRedRubies · May 8, 2013 · Viewed 32.8k times · Source

When we are making images for android app, I wanted to know which way is correct for making XHDPI, HDPI, MDPI, LDPI. (both may be wrong)

The first way is get the original image, open in photoshop, change the DPI to 320 (the original has 326 DPI) then save the image as XHDPI, then change the DPI to 240 for HDPI, 160 for MDPI, 120 for LDPI.

Second way, open the original image, then half the image size (without changing the DPI) and that would be MDPI, resize the image to 0.75 of MDPI's size and that would be LDPI, resize it to 1.5 of MDPI's size and that would be HDPI.

So basically, first way is change the DPI and photoshop automatically resizes the image, the second way is keep the dpi same and manually resize the image.

If both ways are wrong, please let me know the correct way to create these images in photoshop.

Answer

Kevin Machado picture Kevin Machado · Oct 17, 2013

Sorry, i'm a little bit late but this can help other people too.

I use the free plugin "Cut&Slice me". It's very easy to use.

Just click on the layer you want to export and the plugin automatically create folders (drawable-xhdpi, drawable-hdpi...) and put them on.

I hope this can help you ;)