MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/3/root/proc/self/root/usr/lib/python2.4/test/test_imageop.pyo
mò
‚=5Dc@sldZdklZlZdkZdkZdkZdd„Zd„Zd„Z	d„Z
eddƒdS(	s„Test script for the imageop module.  This has the side
   effect of partially testing the imgfile module as well.
   Roger E. Masse
(sverbosesunlinkNic	Csßtitdtidƒdtidƒ|o$tdtidƒ\}}}n!t
dtidƒ\}}}to	dGHnti
|d||ddddƒ}
to	d	GHnti|d||ddƒ}to	d
GHnti|d||ƒ}to	dGHnti|||ƒ}	to	dGHnti|	||ƒ}to	d
GHnti|||ƒ}	to	dGHnti|	||ƒ}to	dGHnti|	||dƒ}to	dGHnti|||ddƒ}	to	dGHnti|	||ƒ}to	dGHnti|	||ƒ}to	dGHnti|	||ƒ}to	dGHnti |	||ƒ}to	dGHnti!|||ƒ}	to	dGHnti"|||ƒ}t#dtidƒdS(Nttestrgbtuuettesttrgbtcropiiitscalettovideotrgb2rgb8trgb82rgbtrgb2greytgrey2rgbt	grey2monot	mono2greyiÿtdither2monot
grey2grey4t
grey2grey2tdither2grey2t
grey42greyt
grey22grey($tuutdecodetget_qualified_pathtostextsept
use_rgbimgtgetrgbimagetimagetwidththeighttgetimagetverbosetimageopRtnewimageRt
scaleimageRt
videoimageRt	greyimageRR	R
Rt	monoimageRR
Rt
grey4imageRt
grey2imageRRRtunlink(RR$RRR%R&RR"R!R#R ((t'/usr/lib/python2.4/test/test_imageop.pytmainsd,$ 	$														cCs”dk}y|i|ƒ}Wn1|ij
o"t|ƒ}|i|ƒ}nXtod|t|ƒfGHn|i|ƒ}||d|dfS(sfreturn a tuple consisting of image (in 'imgfile' format but
    using rgbimg instead) width and heightNs(rgbimg opening test image: %s, sizes: %sii(
trgbimgtsizeofimagetnametsizesterrorRRtstrt
longimagedataR(R,R-R*R((R(Rws	cCs”dk}y|i|ƒ}Wn1|ij
o"t|ƒ}|i|ƒ}nXtod|t|ƒfGHn|i|ƒ}||d|dfS(sUreturn a tuple consisting of
       image (in 'imgfile' format) width and height
    Ns)imgfile opening test image: %s, sizes: %sii(
timgfiletgetsizesR,R-R.RRR/treadR(R,R-RR1((R(Rˆs	cCs“dk}dk}|i}y|iitƒg|}Wntj
onXx>|D]6}|ii||ƒ}|ii
|ƒo|SqUqUW|S(s% return a more qualified path to nameN(tsysRtpathtdirnamet__file__t	NameErrortdirtjoinR,tfullnametexists(R,R4R5R;RR9((R(Ršs			R(t__doc__ttest.test_supportRR'RRRR)RRR(	RR)RRRRR'RR((R(t?sk