Opened 16 years ago
Closed 5 years ago
#2052 closed enhancement (wontfix)
[PATCH]gdal2tiles.py: support for jpg and tiff tiles
Reported by: | olt | Owned by: | klokan |
---|---|---|---|
Priority: | normal | Milestone: | closed_because_of_github_migration |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | kml, tiles, tms, python, gdal2tiles |
Cc: |
Description
Here is a patch for gdal2tiles.py to support output of jpg and tiff tiles, besides png. See discussion on #1763.
- Adds
-of
argument which accepts png, jpg or tiff. Maybe it should follow the -of arguments from gdal_translate, etc. (eg. GTiff for tiff). I'm not sure. - Adds
-co
argument which is identical to gdal_translate's -co
Example: gdal2tiles.py -of tiff -co 'INTERLEAVE=PIXEL' image.tiff
Ok, that example doesn't work with Open Layers and Firefox, but you get tiles as TIFF.
Attachments (2)
Change History (6)
by , 16 years ago
Attachment: | gdal2tiles-format.patch added |
---|
comment:1 by , 10 years ago
Hi,
I'd note that the copy of gdal2tiles.py shipped with maptiler contains a number of updates which were never checked into gdal svn. That version of the code can be found in the maptiler .deb; the latest public checkin to the maptiler svn at googlecode seems to be earlier.
There the option is called "--tile-format".
You can get the .deb at:
http://maptiler.googlecode.com/files/maptiler_1.0.beta2_all.deb
and uncompress it to get the .py out from within. If I find the energy I'll make a patch vs the nearest version in gdal's svn history.
regards, Hamish
ps- you'll find some shell script code to bulk convert gdal2tiles png to jpeg in my r.out.mbtiles addon script for GRASS 6:
http://trac.osgeo.org/grass/browser/grass-addons/grass6/raster/r.out.mbtiles
comment:3 by , 9 years ago
Summary: | gdal2tiles.py: support for jpg and tiff tiles → [PATCH]gdal2tiles.py: support for jpg and tiff tiles |
---|
by , 9 years ago
Attachment: | gdal2tiles_jpeg.patch added |
---|
Quick&dirty patch that works with overviews too - DO NOT APPLY AS IT
comment:4 by , 5 years ago
Milestone: | → closed_because_of_github_migration |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.
patch for gdal2tile.py, adds support for other tile formats