ImageIO.jl

FileIO.jl integration for image files

Julia version Run tests Codecov

Format Extensions Provider Implementation Comment
OpenEXR .exr OpenEXR.jl Julia wrapper of OpenEXR
Portable Bitmap formats .pbm, .pgm, .ppm Netpbm.jl pure Julia
PNG (Portable Network Graphics) .png PNGFiles.jl Julia wrapper of libpng Benchmark vs. ImageMagick & QuartzImageIO
QOI (Quite Okay Image) format .qoi QOI.jl pure Julia
DEC SIXEL (six-pixels) graphics .six, .sixel Sixel.jl Julia wrapper of libsixel
TIFF (Tag Image File Format) .tiff, .tif TiffImages.jl pure Julia check OMETIFF.jl for OMETIFF support

Installation

Install with Pkg:

pkg> add ImageIO  # Press ']' to enter te Pkg REPL mode

Usage

using FileIO
save("test.png", rand(Gray, 100, 100))
load("test.png")
save("test.ppm", rand(RGB, 100, 100))
load("test.ppm")
save("test.tiff", rand(RGB, 100, 100))
load("test.tiff")

Compatibility

If you're using old Julia versions (VERSION < v"1.3"), a dummy ImageIO version v0.0.1 with no real function will be installed. In this case, you still need to install ImageMagick.jl to make FileIO.save/FileIO.load work.