Feature request #21587
GetPrint doesn't accept jpg format
Status: | Open | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | QGIS Server | ||
Pull Request or Patch supplied: | No | Resolution: | |
Easy fix?: | No | Copied to github as #: | 29403 |
Description
Getprint request returns error message "Output format image/jpeg is not supported by the GetPrint request" when setting format to jpg, jpeg or image/jpeg.
We can see here [1] that JPEG has been forgotten in QGIS 3.X.
[1] : https://github.com/qgis/QGIS/blob/master/src/server/services/wms/qgswmsgetprint.cpp#L37
History
#1 Updated by João Gaspar almost 6 years ago
I confirm this behaviour in OS Windows.
Seems like missing an extra else if
else if ( format == QgsWmsParameters::JPG )
{
contentType = "application/jpg";
}
But in the other hand, I search in the section of the file qgswmsutils.cpp
and in this file refers to jpeg
Can be related as well?
#2 Updated by Alessandro Pasotti almost 6 years ago
- Tracker changed from Bug report to Feature request
@Joao, is not that easy unfortunately.
#3 Updated by David Marteau almost 6 years ago
image/jpeg was not in the available in getprint request since a long time (AMHA it was net even supported in 2.x). May be this was on purpose ?
#4 Updated by Nicolas Boisteault almost 6 years ago
@David
Here are different GetPrint with QGIS Server 2.18.28 :