Skip to content
Permalink
Browse files

improve GTIFF JPEG compression by adding PHOTOMETRIC=YCBCR (fix #35002)

  • Loading branch information
alexbruy authored and nyalldawson committed Mar 14, 2020
1 parent a0530f3 commit 02410b9b9fe33a5bdc3e3c2a092a1f94376bc54b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsrasterformatsaveoptionswidget.cpp
@@ -71,7 +71,7 @@ QgsRasterFormatSaveOptionsWidget::QgsRasterFormatSaveOptionsWidget( QWidget *par
<< QStringLiteral( "COMPRESS=DEFLATE PREDICTOR=2 ZLEVEL=9" ) );
sBuiltinProfiles[ QStringLiteral( "z_gtiff_4jpeg" )] =
( QStringList() << QStringLiteral( "GTiff" ) << tr( "JPEG Compression" )
<< QStringLiteral( "COMPRESS=JPEG JPEG_QUALITY=75" ) );
<< QStringLiteral( "COMPRESS=JPEG JPEG_QUALITY=75 PHOTOMETRIC=YCBCR" ) );

// overview compression schemes for GTiff format, see
// http://www.gdal.org/gdaladdo.html and http://www.gdal.org/frmt_gtiff.html

0 comments on commit 02410b9

Please sign in to comment.
You can’t perform that action at this time.