mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Merge pull request #1723 from radarhere/show
Removed unused Tests files
This commit is contained in:
commit
cfc195f15c
|
@ -1,28 +0,0 @@
|
|||
from PIL import Image
|
||||
from PIL import ImageCms
|
||||
|
||||
import sys
|
||||
sys.path.insert(0, ".")
|
||||
|
||||
try:
|
||||
filename = sys.argv[1]
|
||||
except IndexError:
|
||||
filename = "../pil-archive/cmyk.jpg"
|
||||
|
||||
i = Image.open(filename)
|
||||
|
||||
print(i.format)
|
||||
print(i.mode)
|
||||
print(i.size)
|
||||
print(i.tile)
|
||||
|
||||
p = ImageCms.getMemoryProfile(i.info["icc_profile"])
|
||||
|
||||
print(repr(p.product_name))
|
||||
print(repr(p.product_info))
|
||||
|
||||
o = ImageCms.createProfile("sRGB")
|
||||
t = ImageCms.buildTransformFromOpenProfiles(p, o, i.mode, "RGB")
|
||||
i = ImageCms.applyTransform(i, t)
|
||||
|
||||
i.show()
|
|
@ -1,28 +0,0 @@
|
|||
from __future__ import print_function
|
||||
|
||||
from PIL import Image
|
||||
from PIL import ImageMath
|
||||
|
||||
import sys
|
||||
sys.path.insert(0, ".")
|
||||
|
||||
try:
|
||||
filename = sys.argv[1]
|
||||
except IndexError:
|
||||
filename = "../pil-archive/goes12.2005.140.190925.BAND_01.mcidas"
|
||||
# filename = "../pil-archive/goes12.2005.140.190925.BAND_01.im"
|
||||
|
||||
im = Image.open(filename)
|
||||
|
||||
print(im.format)
|
||||
print(im.mode)
|
||||
print(im.size)
|
||||
print(im.tile)
|
||||
|
||||
lo, hi = im.getextrema()
|
||||
|
||||
print("map", lo, hi, "->", end=' ')
|
||||
im = ImageMath.eval("convert(im*255/hi, 'L')", im=im, hi=hi)
|
||||
print(im.getextrema())
|
||||
|
||||
im.show()
|
Loading…
Reference in New Issue
Block a user