flopp / GpxTrackPoster

Create a visually appealing poster from your GPX tracks
MIT License
411 stars 50 forks source link

Circular drawer scale #82

Closed lowtower closed 3 years ago

lowtower commented 3 years ago

Hello,

this PR provides a new cli argument for circular posters and lets the user scale the track length to a given value.

By now the radius of the circle is scaled to the maximum track length. With this PR, the radius can be scaled to a given value, e.g.

My objective is to generate an animated gif over a period of time. With a given radius the single posters would not "jump" in radius for every new calculated maximum length.

Hope, You like the change, cheers, LT

lowtower commented 3 years ago

I have added two examples to demonstrate what I mean today with fixed radius

flopp commented 3 years ago

That's a nice addition. Thank you!

lowtower commented 3 years ago

Cool, thanks. Just for Your information, I had added the example GIF files ro my repo before You merged - so they are in Your repo now as well. You might want to delete or keep them - as You like.

flopp commented 3 years ago

Ok. I may remove them, because the file sizes are quite large.

yihong0618 commented 3 years ago

@flopp @lowtower

Can I ask how you generate the gif file?

My idea is we can generate svg file with animation that like you gif file, that would cool,

And add one arg --with animation user can choose with gif like yours or not.

flopp commented 3 years ago

@yihong0618 that would be a nice addition, I guess...

lowtower commented 3 years ago

@yihong0618

I am working on a python script that either uses imagemagick if available or imageio. In short, the script takes the gpx-dir and copies gpx-file after file to a temporary directory, generates a svg using GpxTrackPoster, generates a png and finally combines all the separate png's to a single animated gif or video file. It is already working but not tested and stable - thus not public avaliable. Cheers, LT

yihong0618 commented 3 years ago

@lowtower Got it thanks.