Commit graph

28 commits

Author SHA1 Message Date
Tom Hughes
b5f06e06c1 Fix rubocop Rails/TimeZone warnings 2022-03-01 22:55:10 +00:00
Tom Hughes
0410596908 Switch traces to use ActiveStorage 2021-12-16 18:45:31 +00:00
Tom Hughes
4a6b1e54a5 Switch GPX MIME type detection to use marcel 2021-03-30 18:26:23 +01:00
Tom Hughes
2490fdc496 Ignore GPX archive entries that aren't regular files
Fixes #3008
2020-12-16 11:17:51 +00:00
Tom Hughes
2ecfd61ee9 Fix new rubocop warnings 2020-11-17 08:17:34 +00:00
Tom Hughes
0e2a66e8de Fix new rubocop warnings 2020-08-06 18:42:16 +01:00
Tom Hughes
26cbdcf71a Fix importing of GPX traces with a leading byte order marker
Fixes #2258
2019-06-14 19:01:53 +01:00
Tom Hughes
46e3d84674 Round up the frame size for trace animations 2019-06-11 22:33:07 +01:00
Tom Hughes
bc70a475eb Include first frame twice in trace animations 2019-06-11 20:36:53 +01:00
Tom Hughes
ee458b6ee2 Parse each GPX file in an archive separately
Fixes #2253
2019-06-11 12:57:00 +01:00
Tom Hughes
a6ea75a2e2 Adjust to final animated GIF interface 2019-05-13 20:17:01 +01:00
mmd-osm
7f138fb014 Skip gif animation optimization in case both frames are identical
This works around an issue in libgd2 library which would otherwise
cause segfaults due to zero sized images
2019-04-03 19:15:37 +02:00
Andy Allan
ab6d657992 Fix rubocop warnings and rename a variable 2019-04-03 10:45:48 +02:00
mmd-osm
1316ed8c11 Remove unnessary init 2019-04-02 20:01:59 +02:00
mmd-osm
fe805836cc Fix incorrect start index 2019-04-02 18:28:49 +02:00
mmd-osm
fe6f3598f0 Gif animation prototype 2019-04-02 18:12:58 +02:00
Andy Allan
c1bf73bee4 Use an enumerator for gpx.points, and process the the points in batches 2019-03-20 10:35:40 +01:00
Andy Allan
6820d53e5f Use gd-ffij gem to create trace icons
This is a port of the gd-based code from the gpx-importer at
https://github.com/openstreetmap/gpx-import

The gd-ffij library does not yet have support for animated gifs, so
we just create a static image for now. But at least that's better than
the non-functioning RMagick code.
2019-01-16 16:06:25 +01:00
Tom Hughes
de29e9b3f5 Fix Style/NumericPredicate rubocop warnings 2018-09-22 17:34:58 +01:00
Tom Hughes
b6b9d543ac Fix rubocop warnings 2017-10-29 19:43:02 +00:00
Tom Hughes
8fe1899596 Fix rubocop warnings 2016-01-19 09:51:24 +00:00
Tom Hughes
a6b84a0294 Fix more rubocop style issues 2015-02-24 23:12:02 +00:00
Tom Hughes
dc2a2c8ebd Standardise on double quoted strings 2015-02-20 19:47:26 +00:00
Tom Hughes
5cbd4038ed Fix rubocop style issues 2015-02-20 08:56:16 +00:00
Tom Hughes
baf10cd392 Fix rubocop lint issues 2015-02-20 08:56:16 +00:00
Tom Hughes
ef7f3d800c Fix most auto-correctable rubocop issues 2015-02-20 08:56:16 +00:00
Tom Hughes
59e86dc07a The read flag is a boolean 2010-10-08 15:25:10 +01:00
Tom Hughes
fb5f6bb4a2 Rework GPX import daemon to use libxml2 for speed. 2008-07-30 08:37:05 +00:00