Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting 8 bit PNG to 32- bit with alpha

I have an Image: PNG image data, 403 x 343, 8-bit colormap, non-interlaced. I want to convert this into Google Play Icon size: 32-bit with alpha.

How can I do it?

like image 294
Sandeep Kaul Avatar asked Apr 06 '16 21:04

Sandeep Kaul


People also ask

How do I make a PNG file 32 bit?

Simply save/export a PNG24 image using Adobe Photoshop which contains transparency. Transparency is the remaining 8 bits. Photoshop automatically creates a 32bit PNG image if you save a 24Bit PNG that contains transparent areas.

How do I save a 32 bit PNG in Gimp?

With Gimp: open, add alpha channel (Layer > Transparency > Add alpha channel), set RGB mode (Image > Mode > RGB) and export as png. Worked just fine.

How do I change a PNG file to 24 bit?

Optimize as PNG‑24Open an image and choose File > Save For Web. Choose PNG‑24 for the optimization format.

How can you tell if a PNG is 32 bit?

Open it in Photoshop and check what's written on the top bar. If it says "index", then it has been saved as 8-bit PNG, if it says "RGB/8" then your PNG is a 32-bit one. Alternatively you can open Image/Mode menu and for an 8-bit one it would be "Indexed color", while for a 32-bit one - "RGB color".


Video Answer


2 Answers

Fixed it using https://pixlr.com/editor/. Just open and save the image with full quality.

like image 174
Sandeep Kaul Avatar answered Sep 24 '22 07:09

Sandeep Kaul


With imagemagick: convert <file> png32:<newfilename>.png

With Gimp: open, add alpha channel (Layer > Transparency > Add alpha channel), set RGB mode (Image > Mode > RGB) and export as png.

like image 40
Mko Avatar answered Sep 23 '22 07:09

Mko