Lines Matching defs:Image
24 import StringIO, colorsys, PIL.Image, PIL.ImageChops
93 <img src="data:image/png;base64,%s" usemap="#%s"
360 # Let matplotlib plot the data, so that we can get the data-to-image
436 # Draw the image
441 image = PIL.Image.fromstring('RGB', size, image_as_string, 'raw', 'RGB', 0,
443 image_background = PIL.Image.new(image.mode, image.size,
446 # Crop the image to remove surrounding whitespace
447 non_whitespace = PIL.ImageChops.difference(image, image_background)
449 image = image.crop(bounding_box)
452 image.save(image_data, format='PNG')
460 graph as a PNG image, and attach the image map to that image.
463 area_data: list of parameters for each area of the image map. See the
470 # Construct the list of image map areas
723 # Find the coordinates on the image for each bar
789 Given an EmbeddedGraphingQuery object, generate the PNG image for it.
815 image, bounding_box_unused = _create_png(figure)
816 return image
833 # Check if the cached image needs to be updated
842 # cached image; all other threads will show that they updated 0 rows
853 # Only refresh the cached image if we were successful in updating the