Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Batch convert tiff files to jpg.?

Can anyone suggest a way to batch convert all TIFFs to JPGs, including in nested folders, and write the new JPG file in the same folder as the original TIFF? Thanks.

4 Answers

Relevance
  • 4 weeks ago
    Favorite Answer

    Try the "Irfanview" program: http://irfanview.com/

    It is capable of configurable batch conversions.

  • oyubir
    Lv 6
    4 weeks ago

    On unix (Linux or macos or another unix. Or even windows, since, as I was told, there is a linux shell in it now. Don't know how it works, tho, nor if it has access to files) I would do

    find DirectoryToProcess -name '*.tiff' | while true; do read l||break; convert "$l" "$(dirname "$l")"/"$(basename "$l" .tiff)".jpg; done

    find DirectoryToProcess -name '*.tiff'  

    lists all files whose name is *.tiff

    while true; do read l||break; ...; done

    read all lines of that list (read), until there aren't any more (||break). And do "..." with "$l" being the content of each line (that is, the name of each tiff file)

    convert "afile.ext1" "anotherfile.ext2"

    convert an image in file afile.ext1 into an image in file anotherfile.ext2. Format of input file is guessed from the content of the file afile.ext1 (so ext1 doesn't really matter). Format of output file anotherfile.ext2 is guessed from the extension ".ext2")

    So for example

    convert "cat.png" "dog.jpg"

    creates a file dog.jpg being a JPG image whose content is the same as dog.png.

    $(dirname "$l") is the directory containing file "$l"

    For each file, call convert with 2 arguments, the file, and the file with .tiff replaced with .png

    $(basename "$l" .tiff) is the filename, without the directory, and without extension .tiff.

    So altogether, "$(dirname "$l")"/"$(basename "$l" .tiff)".jpg

    is just the filename of tiff image "$l", with extension ".tiff" replaced by ".jpg"

    you may have to replace ".tiff" by ".tif" if you are using one of those OS with only 3 characters extension.

  • 4 weeks ago
  • ?
    Lv 7
    4 weeks ago

    tiffs are tricky, as they can hold multiple images, and Windows cannot easily open/edit them.

    you need to use the software that came with your scanner to manage/convert them.

Still have questions? Get your answers by asking now.