well you could just use the fxtree to scale images, including writing
a script to generate that fxtree.

With regards to PIL: if you use the built-in python in newer versions
of softimage, it will have been built with Visual C++ 2010, and third
party python modules from the web are usually compied with vc2008 and
therefore not compatible.

On Tue, Aug 13, 2013 at 11:21 AM, Tim Crowson
<[email protected]> wrote:
> Sorry, had a typo in my example code, correcting it here. This is just a
> typo in my example, and has no bearing on my actual problem.
>
> import os
> from PIL import Image
>
> source = "path\to\my\source.jpg"
> outfile = "path\to\my\result.jpg"
> image = Image.open(source)
>
> size = 512,512
> image.thumbnail(size, Image.ANTIALIAS)
> image.save(outfile, "JPEG")
>
>
> -Tim
>
>
> On 8/13/2013 10:11 AM, Tim Crowson wrote:
>
> 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?
>
> --
>
>
>
> 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.
>
>
>
>
> --
>
>
>
> 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