Fran?ois, I have added a functionality that should do what you were looking for. You can define an alternative image format and the layers that cause to switch the map to that format if set to ON. It should work also for printing/download. The definitions are in the config.ini like
altImgFormat = jpeg altImgFormatLayers = jpl_wms_global_mosaic, dem Latest development versions are available at http://www.pmapper.net/dl/pmapper1_2006-02-20.zip and http://www.pmapper.net/dl/pmapper2_2006-02-20.zip They also include some other changes. Armin Fran?ois PINET wrote: > Hi all, > > To optimize the output format image and improve the time of answer, we > try to modify the type of image according to the type of layer. > In fact, in the config.ini we define the output image to png (better for > vector layer) and we want to modifie automatically the output image to > jpeg (better for raster layer) when a raster layer is selected in the > toc tree. > Why? -> When a vector layer is selected the output png image size is > about 30 ko and if a raster is selected the output png image size is > about 500 ko. The same example in jpeg output size is about 120 ko in > all case but quality is less than png. > > So is there anyone have work to this? > > Resize automatically the map to the windows is very good update... > > Thanks > Regards. > > Fran?ois PINET >
