openstreetmap-ng / openstreetmap-ng

🗺️ The Next Generation of OpenStreetMap — in Python!
https://osm.ng
GNU Affero General Public License v3.0
160 stars 13 forks source link

Caching and compressing image proxy #127

Open Zaczero opened 1 month ago

Zaczero commented 1 month ago

Currently, when using markdown, images are served as-is. To enhance performance and user privacy, we should implement a caching and compressing image proxy. This would:

As the NextGen platform, we should strive for better higher standards.

The URL rewrite can be implemented in the _render_image method.

The proxy should:

Zaczero commented 1 month ago

I will take care of that issue just before or shortly after the public release. I have done similar work in the past.