data-for-change / anyway

ANYWAY - Car accidents map
http://www.anyway.co.il
MIT License
77 stars 244 forks source link

[Bug] map infographics are sometimes blurred on telegram #2638

Closed tkalir closed 2 months ago

tkalir commented 7 months ago

map infographics are sometimes blurred on telegram, probably caused by the image being downloaded before the page finished to fully load (the infographics to image file process is based on screenshot-ing). We should try to increase the sleep time on this function generate_infographics_in_selenium_container before it starts downloading.

https://github.com/data-for-change/anyway/blob/b6e5760d58ac06d1daed2f83a14d195ff3d55181/anyway/infographic_image_generator.py#L86

image

atalyaalon commented 2 months ago

@tkalir is this still relevant?

tkalir commented 2 months ago

I see we increased the wait for the page to load, and recent images seem fine, so I think it's solved.