Skip to content
Permalink
Browse files

New Image.stretch to make images right dimensions

  • Loading branch information...
marinho committed Feb 4, 2013
1 parent 8f3a680 commit 732abbf425867e1ff5e0483cb7ca6c4bbd1f2448
Showing with 3 additions and 1 deletion.
  1. +1 −0 geraldo/generators/pdf.py
  2. +1 −0 geraldo/graphics.py
  3. +1 −1 geraldo/version.py
@@ -480,6 +480,7 @@ def generate_graphic(self, graphic, canvas=None):
graphic.top,
graphic.width,
graphic.height,
preserveAspectRatio=not graphic.stretch,
)
elif isinstance(graphic, BarCode):
barcode = graphic.render()
@@ -154,6 +154,7 @@ class Image(Graphic):
filename = None
_image = None # PIL image object is stored here
get_image = None # To be overrided
stretch = False

_repr_for_cache_attrs = ('left','top','height','width','visible','stroke',
'stroke_color','stroke_width','fill','fill_color','filename')
@@ -1,4 +1,4 @@
VERSION = (0, 4, 16)
VERSION = (0, 4, 17)

def get_version():
return '%d.%d.%d'%VERSION

0 comments on commit 732abbf

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.