Skip to content

Instantly share code, notes, and snippets.

@jywarren
Created May 10, 2019 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jywarren/c8351c786b4791da7d0ccd3624aeaaec to your computer and use it in GitHub Desktop.
Save jywarren/c8351c786b4791da7d0ccd3624aeaaec to your computer and use it in GitHub Desktop.
https://s3.amazonaws.com/grassrootsmapping/warpables/307174/GX1915SD-878a.jpg
identify-im6.q16: unknown image property "%[exif:Orientation]" @ warning/property.c/InterpretImageProperties/3831.
convert -contrast-stretch 0 public/warps/test--226-working/307174-GX1915SD-878a.jpg -crop 7733x7733+0+0! -flatten -distort Perspective '0,0 1261,0 3780,0 6611,726 3780,3600 6082,7733 0,3600 0,5732' -flatten -crop 7733x7733+0+0! +repage public/warps/test--226/307174.png
convert +antialias -size 7733x7733 xc:none -draw "fill black stroke red stroke-width 30 polyline 1261,0 6611,726 6082,7733 0,5732 1261,0" -alpha set -channel A -transparent red -blur 0x8 -channel R -evaluate set 0 +channel public/warps/test--226/307174-mask.png
convert-im6.q16: DistributedPixelCache '127.0.0.1' @ error/distribute-cache.c/ConnectPixelCacheServer/244.
convert-im6.q16: cache resources exhausted `none' @ error/cache.c/OpenPixelCache/3945.
convert-im6.q16: DistributedPixelCache '127.0.0.1' @ error/distribute-cache.c/ConnectPixelCacheServer/244.
convert-im6.q16: cache resources exhausted `public/warps/test--226/307174-mask.png' @ error/cache.c/OpenPixelCache/3945.
convert-im6.q16: No IDATs written into file `public/warps/test--226/307174-mask.png' @ error/png.c/MagickPNGErrorHandler/1628.
composite public/warps/test--226/307174-mask.png public/warps/test--226/307174.png -compose DstIn -alpha Set public/warps/test--226/307174-masked.png
composite-im6.q16: Expected 8 bytes; found 0 bytes `public/warps/test--226/307174-mask.png' @ warning/png.c/MagickPNGWarningHandler/1654.
composite-im6.q16: Read Exception `public/warps/test--226/307174-mask.png' @ error/png.c/MagickPNGErrorHandler/1628.
composite-im6.q16: corrupt image `public/warps/test--226/307174-mask.png' @ error/png.c/ReadPNGImage/3991.
composite-im6.q16: unable to open image `public/warps/test--226/307174.png': No such file or directory @ error/blob.c/OpenBlob/2701.
composite-im6.q16: unable to open image `public/warps/test--226/307174.png': No such file or directory @ error/blob.c/OpenBlob/2701.
composite-im6.q16: missing an image filename `public/warps/test--226/307174-masked.png' @ error/composite.c/CompositeImageCommand/1616.
gdal_translate -of GTiff -a_srs EPSG:4326 -gcp 1261.2109688779917, 0.0, 44.53770988, 48.7615917317 -gcp 6611.802954009368944444444444444444444444, 726.151775197126, 44.5857750656, 48.7572915399 -gcp 6082.925300102443433333333333333333333333, 7733.368960527703, 44.5810240768, 48.7157766445 -gcp 0.0, 5732.777128622867, 44.5263802291, 48.7276328296 -co "TILED=NO" public/warps/test--226/307174-masked.png public/warps/test--226/307174-geo-unwarped.tif
ERROR 4: public/warps/test--226/307174-masked.png: No such file or directory
gdalwarp -of GTiff -t_srs EPSG:4326 public/warps/test--226/307174-geo-unwarped.tif public/warps/test--226/307174-geo.tif
ERROR 4: public/warps/test--226/307174-geo-unwarped.tif: No such file or directory
rm: cannot remove 'public/warps/test--226-working/': No such file or directory
- [0.4956653973281124226077777777777777777777778e7, 6234504.892030527]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment