Select to view content in your preferred language

Use jpg instead of PNG for WMS Service.

2608
1
01-04-2012 07:57 AM
caseycupp
Deactivated User
I am getting PNGs for my WMS Layers.

according to this, JPG is recommended.

http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/09/03/Achieving-smooth-transitions-with-ad... " JPEG is by far the best image format for cached map services that contain aerial photography to be used in a Web application. "

I don not see where to see a FORMAT property for ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.

Is there a way to request the WMS as a JPG.

Casey
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
If you are using v2.3 and up, WMSLayer has ImageFormat and SupportedImageFormats property that you can use. You can select "image/jpeg" if it is one of the supported format.
0 Kudos