Did I find the right examples for you? yes no

All Samples(212)  |  Call(0)  |  Derive(0)  |  Import(212)

src/d/j/django-hotsauce-0.5.0/examples/lib/satchmo_store/shop/management/commands/satchmo_check.py   Django-hotsauce(Download)
        except ImportError:
            try:
                import PIL as Image
            except ImportError:
                errors.append("The Python Imaging Library is not installed.")

src/p/b/pbundler-HEAD/examples/test.py   pbundler(Download)
import pbundler
pbundler.PBundler.setup()
import sys
 
import PIL # actually pillow
 
print(repr(PIL))

src/s/i/SimpleCV-HEAD/SimpleCV/examples/web-based/cloudanimator/images2gif.py   SimpleCV(Download)
 
try:
    import PIL
    from PIL import Image, ImageChops
    from PIL.GifImagePlugin import getheader, getdata

src/e/p/EPD-HEAD/libraries/EReader/examples/Album/img_draw_test.py   EPD(Download)
import PIL
from PIL import ImageFont
from PIL import Image
from PIL import ImageDraw
 

src/m/o/moma-django-0.1.1/moma_example/data/views.py   moma-django(Download)
def _change_image_size(fname_in, fname_out, basewidth=300):
    import PIL
    from PIL import Image
 
    img = Image.open(fname_in)

src/f/s/fsdf-hackfest-HEAD/examples/python-basemap/headlessmpl.py   fsdf-hackfest(Download)
#3rd-party Imports
import numpy as np
import PIL as pil
from matplotlib.figure import Figure
from matplotlib.backends.backend_agg import FigureCanvasAgg

src/m/o/moma-django-HEAD/moma_example/data/views.py   moma-django(Download)
def _change_image_size(fname_in, fname_out, basewidth=300):
    import PIL
    from PIL import Image
 
    img = Image.open(fname_in)

src/p/y/pymedia2-pyrana-0.4.1/examples/10_decode_video_PIL.py   pymedia2-pyrana(Download)
import pyrana.formats
from pyrana.formats import MediaType
import PIL
 
 

src/d/e/dexy_filter_examples-0.0.4/dexy_filter_examples/__init__.py   dexy_filter_examples(Download)
    def is_active(klass):
        try:
            import PIL
            return True
        except ImportError:

src/s/p/spyderlib-mirror-HEAD/spyderlib/pil_patch.py   spyderlib-mirror(Download)
    # For Pillow compatibility
    from PIL import Image
    import PIL
    PIL.Image = Image
except ImportError:
    # For PIL
    import Image
    import PIL
    PIL.Image = Image

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next