I'm having some trouble with a method in PIL that is causing Soft 2014 to crash (with warning, so at least it's not straight to the desktop). However, it's worth noting that this does not crash in 2012SAP, even though the same version of Python (2.7.3) is used by each.

Some code...

import os
from PIL import Image

source = "path\to\my\source.jpg"
outfile = "path\to\my\result.jpg"
image = Image.open(render)
size = 512,512
image.thumbnail(size, Image.ANTIALIAS)
image.save(outfile, "JPEG")


Everything is fine until the very last line. When it runs the save() method, Soft crashes, and without showing any scripting errors in the log. I can't find any discrepancy in version compatibility between Python and the version of PIL we're using. All that seems to be in order. Should this be a dead-end, can anyone recommend an alternate module for resizing images?

--
Signature

*Tim Crowson
*/Lead CG Artist/

*Magnetic Dreams, Inc.
*2525 Lebanon Pike, Building C. Nashville, TN 37214
*Ph*  615.885.6801 | *Fax*  615.889.4768 | www.magneticdreams.com
[email protected]

/Confidentiality Notice: This email, including attachments, is confidential and should not be used by anyone who is not the original intended recipient(s). If you have received this e-mail in error please inform the sender and delete it from your mailbox or any other storage mechanism. Magnetic Dreams, Inc cannot accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of Magnetic Dreams, Inc or one of its agents./

Reply via email to