Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(114)  |  Call(69)  |  Derive(1)  |  Import(44)
an image (digital picture).  Formats supported by PIL/Java 1.4 (the Python/Java Imaging Library
are supported.  At the present time images as flowables are always centered horozontally
in the frame. We allow for two kinds of lazyness to allow for many images in a document
which could lead to file handle starvation.
lazy=1 don't open image until required.
lazy=2 open image when required then shut it.

src/p/u/pugpe-HEAD/apps/cert/generate_cert.py   pugpe(Download)
from reportlab.lib.pagesizes import landscape, B5
from reportlab.platypus import BaseDocTemplate, PageTemplate, Paragraph
from reportlab.platypus import Image, Frame, FrameBreak
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.units import cm
    if isinstance(image, ImageFieldFile):
        image.seek(0)
    return Image(image, width=width, height=(width * aspect))
 
 

src/m/w/mwlib.ext-0.13.2/upstream-src/docs/userguide/ch6_tables.py   mwlib.ext(Download)
#Copyright ReportLab Europe Ltd. 2000-2004
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/docs/userguide/ch6_tables.py
from tools.docco.rl_doc_utils import *
from reportlab.platypus import Image,ListFlowable, ListItem
disc("""will display as""")
try:
    getStory().append(Image(I))
except:
    disc("""An image should have appeared here.""")
disc('produces')
try:
    im = Image(I, width=2*inch, height=2*inch)
    im.hAlign = 'CENTER'
    getStory().append(Image(I, width=2*inch, height=2*inch))

src/r/e/reportlab-3.1.8/docs/userguide/ch6_tables.py   reportlab(Download)
#Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/docs/userguide/ch6_tables.py
from tools.docco.rl_doc_utils import *
from reportlab.platypus import Image,ListFlowable, ListItem
disc("""will display as""")
try:
    getStory().append(Image(I))
except:
    disc("""An image should have appeared here.""")
disc('produces')
try:
    im = Image(I, width=2*inch, height=2*inch)
    im.hAlign = 'CENTER'
    getStory().append(Image(I, width=2*inch, height=2*inch))

src/c/o/collective.realestatebroker-2.3/collective/realestatebroker/pdf/common.py   collective.realestatebroker(Download)
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.platypus import Image
from reportlab.platypus import SimpleDocTemplate
from reportlab.platypus import Spacer
    url = image.absolute_url()
    try:
        image = Image(url,
                      width=img_width,
                      height=img_height)
        temp_file.write(image.getImageAsFile().read())
        temp_file.close()
        image = Image(temp_name,
                      width=img_width,
                      height=img_height)

src/r/e/ReportLab-HEAD/docs/userguide/ch6_tables.py   ReportLab(Download)
#Copyright ReportLab Europe Ltd. 2000-2004
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/docs/userguide/ch6_tables.py
from tools.docco.rl_doc_utils import *
from reportlab.platypus import Image
disc("""will display as""")
try:
    getStory().append(Image(I))
except:
    disc("""An image should have appeared here.""")
disc('produces')
try:
    im = Image(I, width=2*inch, height=2*inch)
    im.hAlign = 'CENTER'
    getStory().append(Image(I, width=2*inch, height=2*inch))

src/o/p/openerp-server-5.0.0-3/bin/report/render/rml2pdf/trml2pdf.py   openerp-server(Download)
                image.write(image_data)
                image.seek(0)
                return platypus.Image(image, mask=(250,255,250,255,250,255), **(utils.attr_get(node, ['width','height'])))
            else:
                return platypus.Image(node.getAttribute('file'), mask=(250,255,250,255,250,255), **(utils.attr_get(node, ['width','height'])))
                else:
                    args['height'] = sy * args['width'] / sx
            return platypus.Image(name, mask=(250,255,250,255,250,255), **args)
        elif node.localName=='spacer':
            if node.hasAttribute('width'):

src/o/p/openerp-core-7.0.406/openerp/report/render/rml2pdf/trml2pdf.py   openerp-core(Download)
                _logger.debug("Image get from file %s", node.get('file'))
                image = _open_image(node.get('file'), path=self.doc.path)
            return platypus.Image(image, mask=(250,255,250,255,250,255), **(utils.attr_get(node, ['width','height'])))
        elif node.tag=='spacer':
            if node.get('width'):

src/t/e/template2pdf-0.6.5/template2pdf/t2p/trml2pdf.py   template2pdf(Download)
        elif node.localName=='image':
            return platypus.Image(
                node.getAttribute('file'), mask=(250, 255, 250, 255, 250, 255),
                **(utils.getAttrsAsDict(node, ['width','height'])))
        elif node.localName=='spacer':

src/t/r/trml2pdf-HEAD/trml2pdf/trml2pdf.py   trml2pdf(Download)
			return platypus.Paragraph(self._textual(node), style, **(utils.attr_get(node, [], {'bulletText':'str'})))
		elif node.localName=='image':
			return platypus.Image(node.getAttribute('file'), mask=(250,255,250,255,250,255), **(utils.attr_get(node, ['width','height'])))
		elif node.localName=='spacer':
			if node.hasAttribute('width'):

src/b/r/BrainImagingPipelines-HEAD/bips/utils/reportsink/write_report.py   BrainImagingPipelines(Download)
import time
from reportlab.lib.enums import TA_JUSTIFY, TA_RIGHT
from reportlab.platypus import Image as Image2
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from PIL import Image
 
 
def get_and_scale(imagefile,scale=1):
    from reportlab.platypus import Image as Image2
def get_and_scale(imagefile,scale=1):
    from reportlab.platypus import Image as Image2
    im1 = scale_im(Image.open(imagefile))
    im = Image2(imagefile, im1.size[0]*scale, im1.size[1]*scale)  
    return im      

  1 | 2 | 3 | 4 | 5 | 6  Next