Skip to content

Commit

Permalink
Using PNGFiles.jl via ImageIO.jl (lazy loader) for .png image files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Mar 11, 2020
1 parent 67d9c22 commit f26d40a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/registry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ add_format(
format"PNG",
UInt8[0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a],
".png",
[:ImageIO],
[:QuartzImageIO, OSX],
[:ImageMagick],
[:MimeWriter, SAVE]
Expand Down
2 changes: 1 addition & 1 deletion src/registry_setup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ end
`add_format(fmt, magic, extention)` registers a new `DataFormat`.
For example:
add_format(format"PNG", (UInt8[0x4d,0x4d,0x00,0x2b], UInt8[0x49,0x49,0x2a,0x00]), [".tiff", ".tif"])
add_format(format"TIFF", (UInt8[0x4d,0x4d,0x00,0x2b], UInt8[0x49,0x49,0x2a,0x00]), [".tiff", ".tif"])
add_format(format"PNG", [0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a], ".png")
add_format(format"NRRD", "NRRD", [".nrrd",".nhdr"])
Expand Down

0 comments on commit f26d40a

Please sign in to comment.