Skip to content
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

Closed
timholy opened this issue Oct 27, 2016 · 7 comments
Closed

Guidance on images-next #28

timholy opened this issue Oct 27, 2016 · 7 comments

Comments

@timholy
Copy link
Member

timholy commented Oct 27, 2016

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:

  • returning the plain array and skipping the Dict creation, just returning buf directly.
  • some small fixes for writemime
@tlnagy
Copy link

tlnagy commented Nov 22, 2016

@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

@timholy
Copy link
Member Author

timholy commented Nov 23, 2016

Looks like something must still be calling Image. Search for it?

@tlnagy
Copy link

tlnagy commented Nov 23, 2016

likely near no file:0

Any idea on why the error is so useless?

@timholy
Copy link
Member Author

timholy commented Nov 23, 2016

Longstanding problem, unfortunately. JuliaLang/julia#16967 is relevant.

@rsrock
Copy link
Contributor

rsrock commented Jan 30, 2017

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!

@timholy
Copy link
Member Author

timholy commented Jan 30, 2017

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.

@rsrock
Copy link
Contributor

rsrock commented Feb 3, 2017

Closed by 4c19585

@rsrock rsrock closed this as completed Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants