Include first frame twice in trace animations
authorTom Hughes <tom@compton.nu>
Tue, 11 Jun 2019 19:36:53 +0000 (20:36 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 11 Jun 2019 19:36:53 +0000 (20:36 +0100)
lib/gpx.rb

index 068b848..cfc82ee 100644 (file)
@@ -114,6 +114,7 @@ module GPX
       end
 
       image = GD2::AnimatedGif.new
       end
 
       image = GD2::AnimatedGif.new
+      image.add(frames.first)
       frames.each do |frame|
         image.add(frame, :delay => delay)
       end
       frames.each do |frame|
         image.add(frame, :delay => delay)
       end