add a way to get image size without loading it#111
Conversation
| The returned value is (X,Y[,Z]), not (R,C), so the first two dimensions | ||
| of the corresponding Array returned by `load` are reversed. | ||
| """ | ||
| function size(file) |
There was a problem hiding this comment.
I'm puzzled about how this passed without renaming all other internal size calls to Base.size.
EDIT: now I see there's an import Base: size in libmagickwand.jl. Mystery solved. But more problematic, too.
|
The idea here is great...I just share your unease about calling it |
|
how about should probably decide about how this might integrate with FileIO before merging though. would be nice if there were a |
|
I like the |
1cb7640 to
b0a1373
Compare
|
any objections to merging this? see also JuliaIO/FileIO.jl#178 and JuliaImages/Images.jl#714 |
ImageMagick.size("filename.tif") returns a tuple of dimensions.
my only reservation is calling it
size, which might not dispatch properly if just given a String.also, is there a way to integrate this into the FileIO API? see JuliaIO/FileIO.jl#173