From df89855599656d56dc7788cd7e18adc7a779fe27 Mon Sep 17 00:00:00 2001 From: vis-florum Date: Thu, 15 Dec 2022 23:30:36 +0100 Subject: [PATCH] Replaced readimage with pingimage where metadata is main interest --- src/ImageMagick.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ImageMagick.jl b/src/ImageMagick.jl index 74d2408..59541c9 100755 --- a/src/ImageMagick.jl +++ b/src/ImageMagick.jl @@ -54,7 +54,7 @@ of the corresponding Array returned by `load` are reversed. """ function metadata(filename::AbstractString) wand = MagickWand() - readimage(wand, filename) + pingimage(wand, filename) sz, T, _, _ = _metadata(wand) return sz, T end @@ -251,7 +251,7 @@ julia> p = magickinfo("Image.jpeg") """ function magickinfo(file::Union{AbstractString,IO}) wand = MagickWand() - readimage(wand, file) + pingimage(wand, file) resetiterator(wand) getimageproperties(wand, "*") end @@ -277,7 +277,7 @@ Dict{String,Any} with 6 entries: """ function magickinfo(file::Union{AbstractString,IO}, properties::Union{Tuple,AbstractVector}) wand = MagickWand() - readimage(wand, file) + pingimage(wand, file) resetiterator(wand) props = Dict{String,Any}()