FileIO.jl integration for image files
Currently provides:
- PNGFiles.jl for Portable Network Graphics via libpng - (Benchmark vs. ImageMagick & QuartzImageIO)
- Netpbm.jl for Portable Bitmap formats (in pure Julia)
- TiffImages.jl for TIFFs (in pure Julia)
- OpenEXR.jl for OpenEXR files (wrapping the C API provided by the OpenEXR library)
Install with Pkg:
pkg> add ImageIO # Press ']' to enter te Pkg REPL mode
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")
This package requires Julia at least v1.3. For old Julia versions, 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.