gdal2tilesp icon indicating copy to clipboard operation
gdal2tilesp copied to clipboard

jpeg generation

Open briantjacobs opened this issue 9 years ago • 1 comments

This script is great, but it's missing an option for setting the quality of jpeg that's being generated. Also unclear what quality is currently being used.

Also, when creating jpegs, I don't see an option to specify what color transparent edges will be rendered as (it defaults to black). My input data doesn't have any NODATA, but when tiling the edges of it, half-black tiles get rendered because it's rendering beyond my file.

briantjacobs avatar Nov 24 '15 17:11 briantjacobs

I agree that the jpeg quality is not one of the parameters. At first look, it isn't clear to me how to change or add that parameter.

But I did find this on the gdal.org site.

QUALITY=n: By default the quality flag is set to 75

Again, this issue or feature would be to add another parameter for quality. There is a section of code that checks for JPEG, and that may be the right place to add the quality parameter.

roblabs avatar Jul 27 '16 00:07 roblabs