batch tiff to jpeg conversion script
Peter Hansen
peter at engcorp.com
Wed Jan 11 18:06:06 EST 2006
rtilley at vt.edu 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 paths, in this
case os.path.splitext() which will do the right thing in any case (even
on names without extensions!).
-Peter
More information about the Python-list
mailing list