-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drop julia 0.5, view keyword arg, and 16-bit tiffs #103
Conversation
I suppose we should do this. The one reason I hesitate here is that I think ImageMagick doesn't do anything special to load truly large files. For example, in NRRD and ImagineFormat we use |
Again, I'm not strongly against this (indeed I might on balance be slightly in favor), but I do have some reluctance to slow down operations for all the 2d computer vision people who work with small images. |
is it too much to ask those with small files to alternatively, what about using a keyword argument to specify a view, like |
I like the keyword argument idea, I think that makes sense. |
keyword arg added. but oi, |
hah, just noticed Images.jl has dropped support for 0.5. should we do the same for ImageMagick? also, has it been discussed at all to add a |
Sure, dropping support for 0.5 seems very reasonable. I bumped all the JuliaImages packages so that I could run femtocleaner to eliminate depwarns on 0.7 (not that I'm using it in practice yet). With regards to |
7957ffa
to
8138dd1
Compare
doh! thanks.
and julia 0.5 support has been dropped. should remember to bump the minor version number for the next tag |
README.md
Outdated
``` | ||
|
||
The optional `view` keyword argument is useful for reducing memory consumption | ||
when loading large files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe better to say "set view=true
to reduce memory consumption when loading large files, possibly at some slight cost in terms of performance of future operations."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done. is there any way to add a doc string for sth like this? i tried adding one in src/ImageMagick.jl, but it didn't work after using FileIO
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting question, since FileIO is not meant to be extended. Maybe put it on ImageMagick.load
? (In other words, does ?ImageMagick.load
work as a way of adding a docstring for the load
function in this specific package, without "contaminating" ?load
?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, putting in on ImageMagick.load
makes ?ImageMagick.load
work. but given that one (or something) must do a using ImageMagick
and that docstring is not displayed with ?load
, is it worth it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly not necessary, but in the absence of a better idea I'm not sure where to aggregate the IM-specific extensions. We also have fps
and perhaps other kwargs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that you should feel responsible for doing this, simply asking the question is useful.
Thanks again! |
i was planning to add a docstring this morning, but guess will leave it for another time. thanks! |
closes #102
have
load
return a view instead of usingpermutedims
. note that there are further optimizations to be had here, by writing in-place versions offlipdim
.and separately fix saving of 16-bit tiffs. interestingly, even on master the "binary png" and "alpha" tests are failing. have not taken the time to
git bisect
when this breakage occurred.