Beispiel #1
0
    def __call__(filename, compression=0):
        from gamera.plugins import _png_support

        return _png_support.load_PNG(filename, compression)
Beispiel #2
0
 def write_image(self, s, filename, tag=""):
     image = _png_support.load_PNG(
         os.path.join(self.docgen.output_images_path, filename + ".png"), 0)
     s.write(
         ".. %s image:: images/%s.png\n   :height: %d\n   :width: %d\n\n" %
         (tag, filename, image.height, image.width))
Beispiel #3
0
 def write_image(self, s, filename, tag=""):
    image = _png_support.load_PNG(os.path.join(self.docgen.output_images_path, filename + ".png"), 0)
    s.write(".. %s image:: images/%s.png\n   :height: %d\n   :width: %d\n\n" %
            (tag, filename, image.height, image.width))
 def __call__(filename, compression = 0):
     from gamera.plugins import _png_support
     return _png_support.load_PNG(filename, compression)