I am creating a series of tif files at 1:10k scale over a vast area (760 tiles) using arcpy.mapping.ExportToTIFF and then stitch them together to create a single ecw. The output looks ok but when I try to turn on transparency I find that the background "white" is not pure white (255,255,255) but values that "look white" like "254,254,252" or "254, 251, 250)
Is there anyway of setting a tolerance in the export so that any value between say 250 and 255) get re-described as 255,255,255? or any no-data areas get 255,255,255?
Alternatively would putting a background color (like green screening) that's not on the mxd work better than keeping the background undefined?
I am posting this and also researching the above options and others as they come to me as this is urgent.
EDIT 1 When I try jpg2000 I get better results but some white's are not correct. I am running the following command to create the tif
arcpy.mapping.ExportToTIFF(mxd,r"tests\SF\100k\SF100k_" + str(ddp.pageRow.PageName) + ".tif",df,9306,9306*ar,1800,True)
The issue is with the generated tif's as the "white" changes between tiles so when I stitch them in Global Mapper the "white" is different on each file. Would a raster calculator operation be able to clean this up? or can I fix it in the generation of the tif (ideally)? I need to run a similar process on 16 other map series at a few different scales so we are looking at over 10,000 individual tif tiles in 16 groups so the latter is preferred.
Same area TIF image
Any idea on why they look so different when it's exactly the same data? It's interesting that the symbology for the PNG is based on the data view while the TIF is based on the layout view. The PNG is much closer to the intended symbology.
Can Geoserver deal with Transparency in a different way to ArcGIS where the above issues then become irrelevant.