Skip to content

Commit

Permalink
Replaced ImageMagick by Netpbm for load/save of Netpbm files. (#280)
Browse files Browse the repository at this point in the history
* Replaced ImageMagick by Netpbm for load/save of Netpbm files.

* Use ImageIO for load/save of Netpbm files.

* Using ImageIO as primary choice for Netpbm formats.

Keeping Netpbm and ImageMagick as fallback options
  • Loading branch information
magister-ludi authored Dec 1, 2020
1 parent a01dbea commit 9bcedb2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/registry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ add_format(format"SAS", UInt8[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
add_format(format"Parquet", "PAR1", [".parquet"], [:ParquetFiles, LOAD])

# Image formats
add_format(format"PBMBinary", b"P4", ".pbm", [:ImageMagick])
add_format(format"PGMBinary", b"P5", ".pgm", [:Netpbm])
add_format(format"PPMBinary", b"P6", ".ppm", [:Netpbm])
add_format(format"PBMText", b"P1", ".pbm", [:ImageMagick, LOAD])
add_format(format"PGMText", b"P2", ".pgm", [:ImageMagick, LOAD])
add_format(format"PPMText", b"P3", ".ppm", [:ImageMagick, LOAD])
add_format(format"PBMBinary", b"P4", ".pbm", [:ImageIO], [:Netpbm], [:ImageMagick])
add_format(format"PGMBinary", b"P5", ".pgm", [:ImageIO], [:Netpbm])
add_format(format"PPMBinary", b"P6", ".ppm", [:ImageIO], [:Netpbm])
add_format(format"PBMText", b"P1", ".pbm", [:ImageIO], [:Netpbm], [:ImageMagick, LOAD])
add_format(format"PGMText", b"P2", ".pgm", [:ImageIO], [:Netpbm], [:ImageMagick, LOAD])
add_format(format"PPMText", b"P3", ".ppm", [:ImageIO], [:Netpbm], [:ImageMagick, LOAD])

add_format(format"NRRD", "NRRD", [".nrrd", ".nhdr"], [:NRRD])

Expand Down

0 comments on commit 9bcedb2

Please sign in to comment.