Re: batch tiff to jpeg conversion script

2006-01-29 Thread William Park
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hope it's not inappropriate to post this here. > > Could someone critique my code? I have no Python programmers in my > office to show this to. The script works OK, but should I do it > differently? I especially don't like how I check to see if jpegs

Re: batch tiff to jpeg conversion script

2006-01-12 Thread Martin Miller
[EMAIL PROTECTED] wrote: > Just curious... is PhotoShop _really_ recursive? We have dozens of > levels of sub-folders where the pics have been sorted and thousands of > pics. That's one reason I used os.walk() Yes, in the sense that there is an "Include All Subfolders" option for batch operation s

Re: batch tiff to jpeg conversion script

2006-01-12 Thread [EMAIL PROTECTED]
Just curious... is PhotoShop _really_ recursive? We have dozens of levels of sub-folders where the pics have been sorted and thousands of pics. That's one reason I used os.walk() -- http://mail.python.org/mailman/listinfo/python-list

Re: batch tiff to jpeg conversion script

2006-01-11 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > Thanks for the example code Larry. It _is_ easier for me to read. I > like the way you split the file on '.' I may use that. Thanks again! Warning: that will fail on names with more than one "." in them. It's generally best to use the provided tools for working with pa

Re: batch tiff to jpeg conversion script

2006-01-11 Thread Peter Hansen
Martin Miller wrote: > [EMAIL PROTECTED] wrote: > >>Hi Peter. The guy who takes the pictures uses Photoshop to convert >>tiffs to jpegs one by one. When he does a 'Maxium Quality' conversion >>in Photoshop and I do a 100% quality conversion with Python and PIL, >>the two converted files are almost

Re: batch tiff to jpeg conversion script

2006-01-11 Thread Martin Miller
[EMAIL PROTECTED] wrote: > Hi Peter. The guy who takes the pictures uses Photoshop to convert > tiffs to jpegs one by one. When he does a 'Maxium Quality' conversion > in Photoshop and I do a 100% quality conversion with Python and PIL, > the two converted files are almost identical and this is wha

Re: batch tiff to jpeg conversion script

2006-01-11 Thread [EMAIL PROTECTED]
Thanks for the example code Larry. It _is_ easier for me to read. I like the way you split the file on '.' I may use that. Thanks again! -- http://mail.python.org/mailman/listinfo/python-list

Re: batch tiff to jpeg conversion script

2006-01-11 Thread [EMAIL PROTECTED]
Hi Peter. The guy who takes the pictures uses Photoshop to convert tiffs to jpegs one by one. When he does a 'Maxium Quality' conversion in Photoshop and I do a 100% quality conversion with Python and PIL, the two converted files are almost identical and this is what he wants... that's the only rea

Re: batch tiff to jpeg conversion script

2006-01-11 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > Hope it's not inappropriate to post this here. > > Could someone critique my code? [snip] > im.save(outfile, "JPEG", quality=100) From an effbot posting on 13 Jul 2002: '''JPEG quality 100 is overkill, btw -- it completely disables JPEG's quan

Re: batch tiff to jpeg conversion script

2006-01-11 Thread Larry Bates
[EMAIL PROTECTED] wrote: > Hope it's not inappropriate to post this here. > > Could someone critique my code? I have no Python programmers in my > office to show this to. The script works OK, but should I do it > differently? I especially don't like how I check to see if jpegs exist. > > The styl

batch tiff to jpeg conversion script

2006-01-11 Thread [EMAIL PROTECTED]
Hope it's not inappropriate to post this here. Could someone critique my code? I have no Python programmers in my office to show this to. The script works OK, but should I do it differently? I especially don't like how I check to see if jpegs exist. The style may not be acceptable to some, but I'