Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Are you a Java Developer working with Image files?

Read and write images in Java with JDeli

What is PNG?

36 sec read

PNG icon

PNG

What is a PNG?

PNG stands for Portable Network Graphics. It is a lossless, bitmap image format popular on the world wide web because it supports transparency in browsers. It was created to remove the need for GIF images in web browsers. Unlike GIF, PNG is an open standard with no patents.

The file name extension for PNG files is: .png

Here are some other questions about PNG you might also want to ask. If you have any other questions, please add a comment and we will try to answer.

What is the difference between JPG and PNG?

PNG has transparency while JPEG can create smaller files with lossy compression.

Why is PNG popular?

PNG produces compact image files and is supported by all web browsers. So it is very popular with web designers.

How to open PNG files in Java?

ImageIO (the built-in Java Image library) includes support for JPEG images.

There are several commercial PNG solutions available. Our JDeli library allows you to readwrite and display PNG files.



Find out how to read and write images files in Java with JDeli:

Read: BufferedImage image = JDeli.read(streamOrFile);

Write: JDeli.write(myBufferedImage, OutputFormat.HEIC, outputStreamOrFile)

Learn more >>

Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

What is JBIG2?

JBIG2 is a lossless and lossy compression standard for bi-level images like scanned documents, offering high compression ratios by identifying and encoding similar shapes...
chika
47 sec read