Configurable ImageIO output format#191
Configurable ImageIO output format#191timautin wants to merge 3 commits intoopenstreetmap:masterfrom
Conversation
src/gen_tile.cpp
Outdated
| mapnik::image_view<mapnik::image_data_32> vw(xx * map->tilesize, yy * map->tilesize, map->tilesize, map->tilesize, buf.data()); | ||
| #endif | ||
| tiles.set(xx, yy, save_to_string(vw, "png256")); | ||
| //tiles.set(xx, yy, save_to_string(vw, "png256")); |
There was a problem hiding this comment.
Likely worth removing the commented out line.
|
Love this! Can you rebase this on latest |
|
@xamanu Sure, are you going to merge the PR? I'm not used to rebase, would you be fine with a merge of master in my branch instead? |
|
@timautin, no, please do a rebase not a merge, which would mix all things up. It is really just a:
Yes, adding it to the |
|
Alright, that's pretty straightforward. But since I have deleted this project since I created the PR, I'm doing this: git clone https://github.com/timautin/mod_tile.git && cd mod_tile Good for you? |
…string. For instance: TYPE=png image/png TYPE=png image/png png256 TYPE=png image/png png24 TYPE=png image/png png (closes openstreetmap#64)
|
Looks good! |
Added documentation for output format.
6ac2b92 to
2c98ff0
Compare
Thank you for your contribution and for improving |
|
Hello @xamanu & @timautin, I picked this up in my fork since it would also resolve #301 (in addition to the great work already here in resolving #64). I also added a very basic test to ensure hummeltech/mod_tile@openstreetmap:master...hummeltech:mod_tile:feature-configurableOutputFormat Tests passing: |
Thanks for your work on it, I was about to do the same. :) Are you planning to open a PR for this? Your links above only link to the diffs. |
|
Sure, I suppose I could open a new pull request for it, I didn't want to step on anyone's toes, but it seems like it's been over two years since there was any activity on this. |
Thanks, appreciated! Once you open your PR, I will try it out with my use case and report the results. |
|
Went in with #318 |
Added the possibility to provide ImageIO's output format in the TYPE string of the renderd.conf file.
For instance:
TYPE=png image/png
TYPE=png image/png png256
TYPE=png image/png png24
TYPE=png image/png png
This should be backward compatible with existing renderd.conf files.
(closes #64)