How to get transparent background

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
Xanadu
Posts: 10
Joined: Fri Jul 22, 2016 7:32 pm

How to get transparent background

Post by Xanadu »

Hello! I tried to convert .hpi files that are supposed to have transparent backgrounds into .png files with transparent backgrounds, but the .png files ended up with white backgrounds. Can anyone tell me the easiest way to end up with transparent backgrounds? Thanks! (I used converter)
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: How to get transparent background

Post by XnTriq »

Welcome to the forum, Xanadu.

XnView opens HPI (Hemera Photo Objects) as multi-page images.

You have to extract both pages, …
  • XnView: View mode » Tools » Multipage file » Extract All Into...
  • XnConvert: Output » Multipage » Convert all pages from multipage file
  • nConvert: -xall (Extract all images)
… and then combine the two using the 2nd page as alpha-channel mask:
  • XnConvert: Actions » Add action >> » Image » Add mask » Use mask as alpha
970801_4864_1003_oslps.hpi (http://www.itsamples.com/hpi-converter.html)
970801_4864_1003_oslps.hpi (http://www.itsamples.com/hpi-converter.html)
p133250.png (211.23 KiB) Viewed 584 times
Post Reply