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

does opencv engine support jpeg2000 format? #39

Open
bagipriyank opened this issue May 23, 2018 · 2 comments
Open

does opencv engine support jpeg2000 format? #39

bagipriyank opened this issue May 23, 2018 · 2 comments

Comments

@bagipriyank
Copy link

I see that there is a thumbor plugin for jpeg2000 (https://github.com/thumbor/thumbor-plugins/wiki/JPEG2000). However it seems like it will only work with PIL, and hence pil engine. Would it be possible to support jp2 format with opencv engine as well?

@christianjgreen
Copy link
Collaborator

christianjgreen commented May 24, 2018

Yes! Straight from the docs.

Note OpenCV offers support for the image formats Windows bitmap (bmp), portable image formats (pbm, pgm, ppm) and Sun raster (sr, ras). With help of plugins (you need to specify to use them if you build yourself the library, nevertheless in the packages we ship present by default) you may also load image formats like JPEG (jpeg, jpg, jpe), JPEG 2000 (jp2 - codenamed in the CMake as Jasper), TIFF files (tiff, tif) and portable network graphics (png). Furthermore, OpenEXR is also a possibility.

@bagipriyank
Copy link
Author

I mean would it be possible to support jpeg2000 via format filter like localhost:8000/unsafe/filters:format(jp2)/someimage.png. Currently it returns a jpeg image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants