[Image-SIG] pil rotate 90 bug ?

Jeremy Craven c.j.craven at sheffield.ac.uk
Thu Jul 28 11:43:43 CEST 2011


I have a program that has been working fine rotating images by arbitrary 
angles.

I just found that if I specify 90 degrees exactly then the image goes 
crazy: only appears in left hand half of image and every other line is 
black and image is stretched vertically.

Any ideas if this is a bug or I am perhaps doing something in a 
non-recommended way.

I attach a cut down version of the code which shows the problem. It 
reads "test_in.tif". It rotates it 90.0 and writes "test.tif". It 
rotates it 89.99 and writes "test1.tif". The second output file looks 
fine. The first is wonky.

I'm using version 1.1.7

Thanks for listening

Jeremy

-- 
*********************************************************************************

Dr C. Jeremy Craven
Department of Molecular Biology and Biotechnology
University of Sheffield,
Firth Court, Western Bank
S10 2TN Sheffield UK

e-mail: c.j.craven at shef.ac.uk
http://www.shef.ac.uk/uni/projects/nmr/CJC/CJC.html

Phone:                       x24323
 From outside Sheffield:      0114 222 4323
 From outside UK:             +44 114 2224323
Fax:                         0114 272 2800

*********************************************************************************



-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tif
Type: image/tiff
Size: 819310 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110728/8cd5f7d5/attachment-0003.tif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test1.tif
Type: image/tiff
Size: 819310 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110728/8cd5f7d5/attachment-0004.tif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_rotate.py
Type: application/x-python
Size: 181 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110728/8cd5f7d5/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_in.tif
Type: image/tiff
Size: 819428 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110728/8cd5f7d5/attachment-0005.tif>


More information about the Image-SIG mailing list