AnsweredAssumed Answered

compressionQuality help

Question asked by gregb_mcpao on Feb 13, 2020
Latest reply on Feb 14, 2020 by rscheitlin

I am using Execute Task (Export Web Map Task) to export an image. js is 4.12. If format is PNG32, the file size is 378k which is rather large for a 400x400 image at 96 dpi. The file size should be closer to 140k. I tried switching to JPG which took the size down to 317k. If I include compressionQuality to operationalLayers there is no change in size. How do I get the image size smaller?

This is a sample request

 

{"mapOptions":{"showAttribution":false,"extent":{"xmin":479389.87880438194,"ymin":1159369.4997793399,"xmax":479840.91235113516,"ymax":1159594.2281684615,"spatialReference":{"wkid":102659}},"spatialReference":{"wkid":102659},"rotation":0},"operationalLayers":[{"opacity":1,"minScale":0,"maxScale":0,"format":"jpg","compressionQuality":50,"url":"https://www.mymanatee.org/arcgis01/rest/services/basemap/aerials/MapServer"},{"opacity":1,"minScale":0,"maxScale":0,"url":"https://gis.manateepao.com/arcgis/rest/services/Website/WebLayers/MapServer"},{"opacity":1,"minScale":0,"maxScale":0,"url":"https://gis.manateepao.com/arcgis/rest/services/Website/WebLayers/MapServer","layers":[{"id":1,"layerDefinition":{"drawingInfo":{"renderer":{"type":"simple","symbol":{"type":"esriSFS","style":"esriSFSNull","outline":{"type":"esriSLS","style":"esriSLSSolid","color":[66,244,206],"width":3}}}},"source":{"type":"mapLayer","mapLayerId":1},"definitionExpression":"PARID='1014100000'"}}]}],"exportOptions":{"outputSize":[400,400],"dpi":96}}

Outcomes