[Image-SIG] PIL 1.1.5 - Loss of resolution
Tim Ake
tim at timake.com
Mon Jun 27 23:31:56 CEST 2005
Hi,
I am using PIL 1.1.5 with Python 2.4, and am seeing a loss of resolution
when dealing with images. I open an image that is 200 dpi, do a rotate, and
save the rotated image. What I'm seeing is that the rotated image is saved
at the same size, but is at 100 dpi instead of 200 dpi. My code frament is
as follows:
# open the tif file image
im = Image.open(strFile)
# rotate the image 90 degrees CCW
om = im.rotate(90)
# save the image as a.tif
om.save("a.tif", "TIFF") #save the rotated file
I can't afford a loss of resolution - any thoughts on maintaining my
original resolution?
Thanks!
Tim Ake
335 Old Hickory Rd.
Woodstock, GA 30188
mailto:tim at timake.com
http://www.timake.com <http://www.timake.com/>
(770) 928-2433 (phone)
(404) 944-4890 (cell)
soli deo gloria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20050627/958dd50b/attachment.html
More information about the Image-SIG
mailing list