Seth Fitzsimmons

Results comments of Seth Fitzsimmons

I was planning on using [omniauth](https://github.com/intridea/omniauth) for this. There are plugins for most OAuth providers...

I'd previously thought that this would depend on the much-larger task of supporting alternate layouts, but talking to @DrishT just now, I realized that the QR code can actually be...

The Xs are coming from Mapbox (and are present at `maxzoom` from their TileJSON). We don't speak TileJSON directly, so it's cloned here: https://github.com/fieldpapers/fp-web/blob/master/lib/providers.rb#L114-L121 This may be as simple as...

Original: ![haz-fp-003](https://cloud.githubusercontent.com/assets/45/7506771/746e48e0-f419-11e4-89ee-48a3b5c3f9be.png) Decoded: ![walking-paper-r5kl5dfh](https://cloud.githubusercontent.com/assets/45/7506777/808a2cfc-f419-11e4-96e7-86620a079890.jpg) Generated TIFF: http://fieldpapers.org/files/scans/r5kl5dfh/walking-paper-r5kl5dfh.tif Depending on settings, shows up as either all black in QGIS or like this: ![image](https://cloud.githubusercontent.com/assets/45/7506793/b27bba50-f419-11e4-8922-c417bd1d3fbc.png)

The fundamental problem appears to be that the source image is 1-bit grayscale: ``` bash $ file haz-fp-003.png haz-fp-003.png: PNG image data, 2344 x 1654, 1-bit grayscale, non-interlaced ```

``` bash $ convert haz-fp-003.png -type TrueColorMatte -define png:color-type=2 rgb.png $ file rgb.png rgb.png: PNG image data, 2344 x 1654, 8-bit/color RGB, non-interlaced ```

When `process_snapshot.py` is run against the RGB PNG, we get better results: ![image](https://cloud.githubusercontent.com/assets/45/7507084/dd7803b2-f41e-11e4-8e8b-cbc9b2ed8264.png)

I was hopeful that there would be an easy way to work around this using `band` arguments in Mapnik, but TileMill leads me to believe no.

The reason that the current site looks OK is that it's using static tiles extracted from the original version using PIL (applying the geotransform from `gdal_translate` to do coordinate conversions).

Upon further investigation, ``` bash convert haz-fp-003.png png24:rgb.png ``` is preferable to: ``` bash convert haz-fp-003.png -type TrueColorMatte -define png:color-type=2 rgb.png ``` ...as the latter will occasionally produce 16-bit /...