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

sample PNGs for LargeTemplate [tiling] example do not open with Pillow 7.2 #39

Open
dregula opened this issue Jan 11, 2021 · 0 comments

Comments

@dregula
Copy link

dregula commented Jan 11, 2021

Thanks for this fascinating and useful code.
I was perplexed when attempting to run the LargeTemplate [tiling] example, always getting an out-of-range error.
imread was dropped from scipy.misc after v1.2, so I tried: forcing a scipy version < 1.2, using imageio.imread (as suggested in the SciPy documentation), and cv2.imread.
I finally realized that all of these attempts resulted in an all-zero numpy-array after opening resources/examples/tiling/big.png and small.png
I am an imaging novice, so I converted those sample images to a white background and the Large Template example went perfectly as expected (I think the sample PNGs have a transparent background, alpha?)
Not entirely sure what module is actually loading these PNG images, but I am using Pillow 7.2
Would it be possible to update the imreg_dft repository to include sample PNGs with a white background under resources/examples/tiling?
Thank you in advance!

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

1 participant