From: Tom Hughes Date: Tue, 11 Jun 2019 19:36:53 +0000 (+0100) Subject: Include first frame twice in trace animations X-Git-Tag: live~3086 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/bc70a475ebee9335f7b4d2488f4b7271952c326f Include first frame twice in trace animations --- diff --git a/lib/gpx.rb b/lib/gpx.rb index 068b84815..cfc82eedb 100644 --- a/lib/gpx.rb +++ b/lib/gpx.rb @@ -114,6 +114,7 @@ module GPX end image = GD2::AnimatedGif.new + image.add(frames.first) frames.each do |frame| image.add(frame, :delay => delay) end