This question really belongs over in the GIS Stack Exchange.
I was getting a similar error when trying to crop an image in QGIS. When I input -projwin -122.55 46.5 -122.0 46.0
, I got the error Computed -srcwin 329062 131509 0 0 has negative width and/or height
.
Using the information in this thread, the problem is that the projection in your source tiff doesn't allow for a nice square cropping. You need to first use gdalwarp
to convert your tiff to a projection that allows such a square cropping. I got it to work just by converting to EPSG:4326, which is the wgs84 projection. Cropping the warped tiff worked just fine.