I need to compress the file sizes of GeoTIFFs that are created when running the MapBasic application. In a .Net application, I transform the GeoTIFF into a compressed JPG using ImageMagick; which works perfectly. However, the original GeoTIFFs are required for sharing and download. Adding to the difficulty is that the existing resolution and dimensions must be maintained. I am trying to perform the compression within MapBasic so that an additional application just to compress the GeoTIFFs will not need to be created.
Here is a sample of the current code:
Save Window windowId As reportPath & imgFileName & ".tif" Type "GEOTIFF" Width 7.49826 Units "in" Height 9.5816 Unites "in" Resolution 1152