Current File : //opt/imh-python/lib/python2.7/test/test_imgfile.pyo
�
��Wc@srdZddlmZmZmZmZedde�ZddlZd�Z	d�Z
edkrne
�ndS(	s3Simple test script for imgfile.c
   Roger E. Masse
i����(tverbosetunlinktfindfilet
import_moduletimgfilet
deprecatedNc	Cs�ddl}ddl}d}ytj|�}Wn}tjk
r�tdkr`|jd}n|jtj}|j	|j
�}||d<|j
j|�}tj|�}nXtr�d|t
|�fGHntj|�}tr�dGHntj|||d|d|d	�tr/d
|t
|�fGHntr=dGHntj||dd	|dd	dd
�}trvdGHntjd�tr�dGHntj||dd	|dd	dd�}tr�dGHntjd�tr�dGHntj||dd	|dd	d�}trdGHntj||dd	|dd	dd�}trTdGHntj|||dd	|dd	|d	�|j|�dS(s^Run through the imgfile's battery of possible methods
       on the image passed in name.
    i����Ns
/tmp/deletemet__main__is!Opening test image: %s, sizes: %ssWriting output fileiis(Opening scaled test image: %s, sizes: %ssFiltering with "impulse"timpulseg@sSwitching to X compatibilitysFiltering with "triangle"ttriangleg@s#Switching back to SGI compatibilitysFiltering with "quadratic"t	quadraticsFiltering with "gaussian"tgaussiang�?(tsystosRtgetsizesterrort__name__targvtmodulest__file__tsplittseptjoinRtstrtreadtwritet
readscaledtttobR(	tnameRRt
outputfiletsizestournametpartstimagetsimage((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imgfile.pyt	testimagesV
%
+
+
(+-cCsXtjtd�d�tjtd�d�td�td�td�td�dS(Nstestrgb.uuestest.rgbsgreyrgb.uuesgreytest.rgb(tuutdecodeRR"R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imgfile.pyt	test_mainfs


R(t__doc__ttest.test_supportRRRRtTrueRR#R"R%R(((sj/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_imgfile.pyt<module>s"	[