Reduce the size of a raster dataset to a specific fraction

gdal_translate

  • Convert raster data between different formats.
    More information: <https://gdal.org/programs/gdal_translate>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

gdal_translate -outsize {{40%}} {{40%}} {{path/to/input.tif}} {{path/to/output.tif}}

click the source code to copy install gdal_translate on any operating system with command-not-found.com