Ticket #74 (closed enhancement: fixed)

Opened 9 months ago

Last modified 2 months ago

Allow loading prerendered images for blending etc

Reported by: randomjunk Owned by: artem
Priority: critical (top) Milestone: 1.0.0
Component: Boost.Python Binding Version: SVN Trunk
Severity: Normal Keywords: loading images
Cc: Patch Needs Improvement: no
Needs Docmentation: no Has Patch?: yes
Design Decision Needed: no

Description

Mapnik bindings currently do not allow you to load an image from a file.

Being able to do this is useful if you have a prerendered image which needs blending with the mapnik output. (ie: in my example, we are rendering contours, of which there are a large number, but they never change, so rather than render them every time we want to render them once and then re-use the transparent PNGs produced)

A patch to allow this is attached.

Attachments

image_load.patch (1.3 kB) - added by randomjunk 9 months ago.
patch to allow image loading from bindings

Change History

Changed 9 months ago by randomjunk

patch to allow image loading from bindings

Changed 9 months ago by artem

  • keywords loading images added
  • status changed from new to closed
  • version set to SVN Trunk
  • resolution set to fixed
  • milestone set to 1.0.0

I was planning to add 'loading images' for a while. Your patch prompt me to do it, thanks:)

>>> im = Image.open("map.png")

Use 'views' if you need to access just a portion of an image.

Changed 2 months ago by springmeyer

  • priority set to critical (top)
  • has_patch set
  • patch_need_improvement unset
  • need_documentation unset
  • design_decision_needed unset
Note: See TracTickets for help on using tickets.