but I'm getting a concerning nastygram.
Background
- The image is High Resolution Orthoimagery (HRO) from USGS (https://lta.cr.usgs.gov/high_res_ortho).
- It contains 12815 (rows) * 14632 (cols) of RGB (or RGBA ?) data.
- I'd like to feed the subset into GIMP, ImageMagick, and/or my own (Ruby) scripts.
I'm using a recent version of IM on macOS High Sierra (10.13.4):
Code: Select all
convert --version
Version: ImageMagick 7.0.7-22 Q16 x86_64 2018-01-13 http://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): bzlib freetype jng jpeg lcms png raw tiff webp xml zlib
Here's what I tried to extract a 640x480 image subset (using 16 bits per pixel) near the center of the input image:
base=3097_43_1_20150119
convert -depth 16 \
-extract 640x480+6000+6000 \
-size 16000x16000 \
$base.tif $base.ppm
When I run this, I get an output file (3097_43_1_20150119.ppm) that is 3015806 bytes in size, along with the following nastygram:
convert: Unknown field with tag 33550 (0x830e) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/994.
convert: Unknown field with tag 33922 (0x8482) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/994.
convert: Unknown field with tag 34735 (0x87af) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/994.
convert: Unknown field with tag 34737 (0x87b1) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/994.
convert: geometry does not contain image `3097_43_1_20150119.tif' @ warning/transform.c/CropImage/590.
convert: geometry does not contain image `3097_43_1_20150119.tif' @ warning/transform.c/CropImage/590.
convert: geometry does not contain image `3097_43_1_20150119.tif' @ warning/transform.c/CropImage/590.
convert: geometry does not contain image `3097_43_1_20150119.tif' @ warning/transform.c/CropImage/590.
convert: geometry does not contain image `3097_43_1_20150119.tif' @ warning/transform.c/CropImage/590.
convert: geometry does not contain image `3097_43_1_20150119.tif' @ warning/transform.c/CropImage/590.
convert: geometry does not contain image `3097_43_1_20150119.tif' @ warning/transform.c/CropImage/590.
Comments? Clues? Suggestions?
-r