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

Alpha layer transformed to black on grayscaled images with feature detection #17

Open
Wharenn opened this issue Jan 11, 2016 · 2 comments

Comments

@Wharenn
Copy link

Wharenn commented Jan 11, 2016

Hi everybody,

We're using thumbor with feature detection but we have problems when we use grayscaled PNGs having an alpha layer. On these images, the whole alpha layer is transformed into black color.

It seems somehow related to this FIXME:
https://github.com/thumbor/opencv-engine/blob/master/opencv_engine/engine.py#L193

Called by:
https://github.com/thumbor/thumbor/blob/bc52ab6bb8934c08d24c89ef5e52f20744468e58/thumbor/detectors/feature_detector/__init__.py#L23

Did anyone also encountered this problem and have clues to fix it?
Thanks by advance.

@christianjgreen
Copy link
Collaborator

Can you upload an existing test case image so I can add it the tests for the current cv2 PR?

@Wharenn
Copy link
Author

Wharenn commented Nov 24, 2016

Hi, this was a long time ago and I can not reproduce the bug anymore on my environment (we made some changes for this). However, I am pretty sure this one triggered an issue:

non_regression_alpha_grayscale

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

2 participants