mod_tile icon indicating copy to clipboard operation
mod_tile copied to clipboard

Configurable ImageIO output format

Open timautin opened this issue 7 years ago • 6 comments

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)

timautin avatar Sep 25 '18 18:09 timautin

Love this! Can you rebase this on latest master and add some documentation around this?

pantierra avatar Feb 14 '21 23:02 pantierra

@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? Would some doc in https://github.com/openstreetmap/mod_tile/blob/master/examples/config/renderd/renderd.conf.dist be fine?

timautin avatar Feb 15 '21 15:02 timautin

@timautin, no, please do a rebase not a merge, which would mix all things up. It is really just a:

  • git checkout master && git pull
  • git checkout feature-configurableOutputFormat && git rebase master
  • git push --force

Yes, adding it to the renderd.conf.dist file would be a good fit.

pantierra avatar Feb 15 '21 15:02 pantierra

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 git remote add upstream https://github.com/openstreetmap/mod_tile.git git fetch upstream git checkout feature-configurableOutputFormat git rebase upstream/master [update the doc and remove the comment] git push --force

Good for you?

timautin avatar Feb 15 '21 15:02 timautin

Looks good!

pantierra avatar Feb 15 '21 15:02 pantierra

  • Unfortunately, it seems, the changes introduced here lead to failing tests. Please have a look at what is going on here.
  • Today, I merged the changes for code formatting (#228), this will require another rebase from your side. This will cause conflicts because the style has changed, but these should be easy to fix, as no logic has changed.

Thank you for your contribution and for improving mod_tile.

pantierra avatar Feb 15 '21 20:02 pantierra

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 webp & png32 images are being returned as expected. Let me know if this is something you'd be interested in.

https://github.com/hummeltech/mod_tile/compare/openstreetmap:master...hummeltech:mod_tile:feature-configurableOutputFormat

Tests passing: https://github.com/hummeltech/mod_tile/actions/runs/4377116812

hummeltech avatar Mar 02 '23 19:03 hummeltech

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 webp & png32 images are being returned as expected. Let me know if this is something you'd be interested in.

hummeltech/mod_tile@openstreetmap:master...hummeltech:mod_tile:feature-configurableOutputFormat

Tests passing: https://github.com/hummeltech/mod_tile/actions/runs/4377116812

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.

motiejus avatar May 31 '23 09:05 motiejus

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.

hummeltech avatar May 31 '23 17:05 hummeltech

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.

motiejus avatar Jun 01 '23 08:06 motiejus

Went in with #318

pantierra avatar Jul 20 '23 21:07 pantierra