image-rs / imageproc

Image processing operations
MIT License
735 stars 145 forks source link

Re-export `image` #557

Closed cospectrum closed 6 months ago

cospectrum commented 6 months ago

The problem is described here.

This gives the user the ability to not depend on image, so the code will always compile. Once this version of imageproc is published on crates.io, we can add use imageproc::image to the beginning of all examples.

theotherphil commented 6 months ago

Ah, neat - I haven’t come across this before. Thanks.

I’ll publish a new crate version tomorrow.

cospectrum commented 6 months ago

Ah, neat - I haven’t come across this before. Thanks.

I’ll publish a new crate version tomorrow.

Yes, I already see people trying to use image 0.25 with imageproc, but it doesn't compile.

About reexport. I'm wondering if we should add more image features. Because without "image/default", some examples will panic (decoding PNG or other formats) if imageproc::image is used.