mapnik / Ruby-Mapnik

Ruby Bindings for Mapnik
MIT License
66 stars 13 forks source link

Allow to specify image format when rendering to file #18

Closed alno closed 12 years ago

alno commented 12 years ago

According to native save_to_file function - second argument is optional format name.

For example, with this patch 256-color png may be forced by passing 'png256' (by default .png rendered as 24-bit)

springmeyer commented 12 years ago

Thanks! Keep em coming :)

I'll let @elliotlaster take a look at this one and merge it, since I'm not a ruby expert.

elliotlaster commented 12 years ago

Thanks so much!