-
Notifications
You must be signed in to change notification settings - Fork 14
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
Guidance on images-next #28
Comments
@timholy It looks like there are more problems then just that: julia> using TestImages
julia> img = testimage("mandrill")
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
in read_and_release_imgsrc at
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
in read_and_release_imgsrc at /Users/tamasnagy/.julia/v0.5/QuartzImageIO/src/QuartzImageIO.jl
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
in read_and_release_imgsrc at /Users/tamasnagy/.julia/v0.5/QuartzImageIO/src/QuartzImageIO.jl
WARNING: ImageMetadata.Image is deprecated, use ImageMetadata.ImageMeta instead.
likely near no file:0
in read_and_release_imgsrc at /Users/tamasnagy/.julia/v0.5/QuartzImageIO/src/QuartzImageIO.jl
Errors encountered while loading "/Users/tamasnagy/.julia/v0.5/TestImages/images/mandrill.tiff".
All errors:
ErrorException("\"colorspace\" property is ignored, now color is encoded only by the element type.\nSee `colorview` to represent a numeric array as a color array.")
FileIO.NotInstalledError(:ImageMagick,"")
Fatal error:
ERROR: "colorspace" property is ignored, now color is encoded only by the element type.
See `colorview` to represent a numeric array as a color array.
in checked_import(::Symbol) at /Users/tamasnagy/.julia/v0.5/FileIO/src/loadsave.jl:12
in #load#17(::Array{Any,1}, ::Function, ::FileIO.File{FileIO.DataFormat{:TIFF}}) at /Users/tamasnagy/.julia/v0.5/FileIO/src/loadsave.jl:81
in load(::FileIO.File{FileIO.DataFormat{:TIFF}}) at /Users/tamasnagy/.julia/v0.5/FileIO/src/loadsave.jl:73
in #load#13(::Array{Any,1}, ::Function, ::String) at /Users/tamasnagy/.julia/v0.5/FileIO/src/loadsave.jl:45
in testimage(::String) at /Users/tamasnagy/.julia/v0.5/TestImages/src/TestImages.jl:75 |
Looks like something must still be calling |
Any idea on why the error is so useless? |
Longstanding problem, unfortunately. JuliaLang/julia#16967 is relevant. |
As noted over on Images, I have something in the works here. Loading is fixed, and saving is working for at least one array type (the "autumn_leaves" test). I'd like to work on something more general for saving-- off to study the ImageMagick code! |
Great! https://github.com/JuliaImages/Images.jl/blob/master/upgrading_tips.md may be handy, and of course feel free to contribute any tips that you think are "re-usable." I expect a lot of people have private analysis code that may be affected by the recent changes 😦, so a collection of "ways to cope" might be helpful. |
Closed by 4c19585 |
If anyone is interested in creating an
images-next
branch, the best model to follow would be my commit to ImageMagick: JuliaIO/ImageMagick.jl@348e9ac. From a brief scan of the code in this repo, aside from updating the tests it seems like it could be as simple as:Dict
creation, just returningbuf
directly.writemime
The text was updated successfully, but these errors were encountered: