convert advpng encoding