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

I get "ValueError: images do not match" #25

Open
Hinnack opened this issue Oct 16, 2019 · 1 comment
Open

I get "ValueError: images do not match" #25

Hinnack opened this issue Oct 16, 2019 · 1 comment

Comments

@Hinnack
Copy link

Hinnack commented Oct 16, 2019

from staticmap import StaticMap, CircleMarker 
m = StaticMap(800, 600) 
marker = CircleMarker((7.21733093261719, 51.4838951030122), '#0036FF', 12)
m.add_marker(marker)
image = m.render(zoom=14)

python27
staticmap 0.5.4
pillow 6.2.0

@Hinnack Hinnack closed this as completed Oct 16, 2019
@Hinnack Hinnack reopened this Oct 20, 2019
@Hinnack
Copy link
Author

Hinnack commented Oct 20, 2019

from staticmap import StaticMap, IconMarker
m = StaticMap(800, 600) 
marker = IconMarker((7.21733093261719, 51.4838951030122), './samples/icon-flag.png', 12, 32)
m.add_marker(marker)
image = m.render(zoom=14)

I only have this problem with certain points...

my fix:
Just pass a tuple of 2 to paste

437                 image.paste(tile_image, box[:2], tile_image)

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