remisalmon / Strava-local-heatmap

Python script to generate a high resolution heatmap from Strava GPX files
https://git.io/fjXTL
MIT License
157 stars 34 forks source link

Forcing the output size? #11

Open vektorline opened 3 years ago

vektorline commented 3 years ago

Hello,

I'v been pulling my hairs on this for quite few days now and I'm struggling to find a simple way to have the output at a specific size with the route centered (i.e: 1080x1920, or 800x800..). Not sure if that's currently possible but would love advice on direction as the level of maths in it is a way beyond my understanding...

Merci

remisalmon commented 3 years ago

I see what you are trying to do but there is no option yet to force the output size or aspect ratio.

You can play around by decreasing the values of x_tile_min, y_tile_min and increasing the values of x_tile_max, y_tile_max right before the # download tiles section to add extra "empty" tiles around the heatmap and crop the output in an editing software (you will also need to comment out the auto cropping added in aa922d0e9b347d2e98d2d8e689054a59ed261104