[openstreetmap/openstreetmap-website] Animations for traces (#2132)

mmd notifications at github.com
Wed Apr 3 11:00:27 UTC 2019


Replacing

```
 res << GD2::AnimatedGif.gif_anim_add(frames[n], frames[n - 1], delay)
```

by 

```
 res << GD2::AnimatedGif.gif_anim_add(frames[n], frames[n - 1], delay) unless frames[n] == frames[n - 1]
```

lets the unit tests pass. For whatever reason gif_anim_add isn't happy with two identical images in a row. This feels a bit like a hack, and I don't know yet what is caused this behavior.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2132#issuecomment-479441585
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190403/e3b3fde0/attachment.html>


More information about the rails-dev mailing list