Hi all I just sent a pull request to allow configure the JPEG compression for getMap requests :
* with a new configuration in the Project properties dialog / OWS Server / WMS capabilities : this is used as a default value if found. If not found (older QGIS), -1 is used as before * with an optionnal request parameter IMAGE_QUALITY . If passed and valid, it overrides the project configuration. Please review and comment : https://github.com/qgis/QGIS/pull/1403 Regards Michael 2014-05-26 17:22 GMT+02:00 kimaidou <[email protected]>: > Hi Marco, > > Thanks for the reply > > I created an issue : http://hub.qgis.org/issues/10361 > > I agree with you that a parameter per project is enough. > > Regards, > Michael > > > 2014-05-26 17:12 GMT+02:00 Marco Hugentobler < > [email protected]>: > > Hi Michael >> >> At the moment, the compression rate is left to the Qt library both for >> png and jpeg (-1 is given to QImage::save). I agree it will be usefull to >> change from client or from project. >> >> >> >Why not >> >FORMAT=image%2Fjpeg%3B compression%3D90 >> >I guess it is not standard ? >> >> The problem here is that there has to be a new parameter for each >> compression rate. It might be better to have the possibility to configure >> the image quality in the project or by giving an optional parameter for the >> image quality (0-100 as the Qt parameter). So if the parameter is not >> there, the project setting is used. And if the setting is not set, -1 is >> used as it is now. >> >> Regards, >> Marco >> >> >> On 23.05.2014 18:44, kimaidou wrote: >> >> Or even better, having it layer per layer. Like we do for png , for >> example >> FORMAT=image%2Fpng%3B mode%3D8bit -> image 8 bits >> >> Why not >> FORMAT=image%2Fjpeg%3B compression%3D90 >> I guess it is not standard ? >> >> >> 2014-05-23 18:36 GMT+02:00 Paolo Cavallini <[email protected]>: >> >>> Or even better, having a config at runtime, project by project. >>> >>> On 23 maggio 2014 18:33:00 CEST, kimaidou <[email protected]> wrote: >>> >>>> Hi devs, Marco, René-Luc, >>>> >>>> I have some people giving feedback about the current JPEG compression. >>>> Many users think the "FORMAT=image/jpeg" parameters in the GetMap requests >>>> produce poor quality images. >>>> >>>> I guess the "80%" rate is used. I think it could be enough to >>>> increase it to 90 to produce better looking images (I personaly create my >>>> pyramid with this option with gdal), or better to leave the choice when >>>> installing QGIS Server by using a config parameter. >>>> >>>> Any feedback welcome >>>> >>>> Michael >>>> >>>> ------------------------------ >>>> >>>> Qgis-developer mailing [email protected] >>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer >>>> >>>> >>> -- >>> http://faunalia.eu/ >>> >> >> >> >> _______________________________________________ >> Qgis-developer mailing >> [email protected]http://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> >> >> -- >> Dr. Marco Hugentobler >> Sourcepole - Linux & Open Source Solutions >> Weberstrasse 5, CH-8004 Zürich, [email protected] >> http://www.sourcepole.ch >> Technical Advisor QGIS Project Steering Committee >> >> >> _______________________________________________ >> Qgis-developer mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/qgis-developer >> > >
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
