In our ongoing series about Handling common image file formats in Java we move our focus onto how we can read SGI images in Java.
What is SGI?
SGI (Silicon Graphics Image) is a file type of images with the extensions .sgi and .rgb. It has 2-channel support (.bw for black and white), 3-channel support (rgb/bwa) and 4-channel support (rgba). The ‘a’ represents alpha.
There are not many libraries out there that can read SGI images. Unlike JDeli, ImageIO and JAI cannot read SGI images in Java.
How to read SGI images in Java?
SgiDecoder decoder = new SgiDecoder(); BufferedImage image = decoder.read(rawImageBytes);
You can find more tutorials in our series on handling common image formats in Java, JDeli and other image libraries.
Latest posts by Zain (see all)
- Java 9 JShell explained in 5 minutes - May 11, 2017
- Java 9 Modularity explained in 5 minutes - May 4, 2017
- Key takeaways from NetBeans Day UK 2017 - April 26, 2017
- Why IDRsolutions uses the NetBeans IDE for Java Development - April 18, 2017
- 5 Reasons to Attend NetBeans Day UK 2017 - April 6, 2017