Skip to content

Commit

Permalink
Allow WebP in WMS data source select dialog
Browse files Browse the repository at this point in the history
Fixes #35664
  • Loading branch information
elpaso authored and nyalldawson committed Apr 19, 2020
1 parent c3b4f8a commit 384859c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -3531,6 +3531,12 @@ QVector<QgsWmsSupportedFormat> QgsWmsProvider::supportedFormats()
formats << p1 << p2 << p3 << p4 << p5 << p6;
}

if ( supportedFormats.contains( "webp" ) )
{
QgsWmsSupportedFormat p1 = { "image/webp", "WebP" };
formats << p1;
}

if ( supportedFormats.contains( "jpg" ) )
{
QgsWmsSupportedFormat j1 = { "image/jpeg", "JPEG" };
Expand Down

0 comments on commit 384859c

Please sign in to comment.