Did I find the right examples for you? yes no

All Samples(27)  |  Call(25)  |  Derive(0)  |  Import(2)
Incremental image parser.  This class implements the standard
feed/close consumer interface.

In Python 2.x, this is an old-style class.

src/l/i/linkfloyd-HEAD/linkfloyd/experimental/imgparsing/parser.py   linkfloyd(Download)
from urllib2 import urlopen, HTTPError
from PIL.ImageFile import Parser as ImageParser
from pickle import load
from multiprocessing import Pool
 
    data = file.read(1024)
    file.close()
    parser = ImageParser()
    parser.feed(data)
    if parser.image:

src/o/m/OmniMarkupPreviewer-HEAD/OmniMarkupLib/Renderers/libs/python3/textile/tools/imagesize.py   OmniMarkupPreviewer(Download)
 
    try:
        p = ImageFile.Parser()
        f = urllib.request.urlopen(url)
        while True:

src/o/m/OmniMarkupPreviewer-HEAD/OmniMarkupLib/Renderers/libs/python2/textile/tools/imagesize.py   OmniMarkupPreviewer(Download)
 
    try:
        p = ImageFile.Parser()
        f = urllib2.urlopen(url)
        while True:

src/g/e/geraldo-HEAD/site/newsite/site-geraldo/django/core/files/images.py   geraldo(Download)
def get_image_dimensions(file_or_path):
    """Returns the (width, height) of an image, given an open file or a path."""
    from PIL import ImageFile as PILImageFile
    p = PILImageFile.Parser()
    if hasattr(file_or_path, 'read'):

src/t/h/theyworkforyou-HEAD/googleappengine/electionsurvey/django/core/files/images.py   theyworkforyou(Download)
def get_image_dimensions(file_or_path):
    """Returns the (width, height) of an image, given an open file or a path."""
    from PIL import ImageFile as PILImageFile
    p = PILImageFile.Parser()
    close = False

src/c/s/cs4970_capstone-HEAD/django_server/third_party/django/core/files/images.py   cs4970_capstone(Download)
def get_image_dimensions(file_or_path):
    """Returns the (width, height) of an image, given an open file or a path."""
    from PIL import ImageFile as PILImageFile
    p = PILImageFile.Parser()
    close = False

src/c/o/CollabQ-HEAD/vendor/django/core/files/images.py   CollabQ(Download)
def get_image_dimensions(file_or_path):
    """Returns the (width, height) of an image, given an open file or a path."""
    from PIL import ImageFile as PILImageFile
    p = PILImageFile.Parser()
    close = False

src/l/o/loris-HEAD/loris/transforms.py   loris(Download)
from PIL import Image
from PIL.ImageCms import profileToProfile
from PIL.ImageFile import Parser
from logging import getLogger
from loris_exception import LorisException
 
		# read from the named pipe
		p = Parser()
		while True:
			s = f.read(1024)

src/s/q/squash-0.5.0alpha/django/core/files/images.py   squash(Download)
def get_image_dimensions(file_or_path):
    """Returns the (width, height) of an image, given an open file or a path."""
    from PIL import ImageFile as PILImageFile
    p = PILImageFile.Parser()
    if hasattr(file_or_path, 'read'):

src/r/o/rooibos-HEAD/rooibos/contrib/backends/image.py   rooibos(Download)
        # Use PIL to determine filetype
 
        p = PILImageFile.Parser()
        while 1:
            data = content.read(1024)

  1 | 2 | 3  Next