Announcement

Collapse
No announcement yet.

Command-line options not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Command-line options not working

    Hi,

    I'm attempting to convert an uncompressed TIFF image to an indexed color TIFF (8-bit, 256 colors) with TIFF compression (e.g. LZW or ZIP) with command-line options but I end up with a 24-bit TIFF image. Here's my command-line. Can anyone tell me what I'm missing? It's strange because the Irfanview Batch option works fine as well as manual conversion.

    Attempt 1:
    "C:\Program Files\IrfanView\i_view32.exe" "D:\test\24bit_Uncompressed_300dpi.TIF" /convert="D:\test\ir_8bit_LZW_300dpi.tif" /bpp=8 /tifc=1

    Attempt 2 (256 colors selected in Advanced dialog):
    "C:\Program Files\IrfanView\i_view32.exe" "D:\test\24bit_Uncompressed_300dpi.TIF" /convert="D:\test\ir_8bit_LZW_300dpi.tif" /advancedbatch /bpp=8 /tifc=1

    Any help is appreciated.
    -AJ

    #2
    Generally it is important to have the parameters in the correct order. That means placing your options before the /convert switch, as shown in examples. Remember that you can't change the color depth of a multi-page tif, only the first page. All pages isn't supported for /advancedbatch either. Also, be careful when converting to a pre-existing multi-page tif file as this will append it.

    So try these:

    Code:
    "C:\Program Files\IrfanView\i_view32.exe" "D:\test\24bit_Uncompressed_300dpi.TIF" /bpp=8 /tifc=1 /convert="D:\test\ir_8bit_LZW_300dpi.tif"
    Code:
    "C:\Program Files\IrfanView\i_view32.exe" "D:\test\24bit_Uncompressed_300dpi.TIF" /advancedbatch /tifc=1 /convert="D:\test\ir_8bit_LZW_300dpi.tif"

    Comment


      #3
      Awesome - thank you! Both examples worked great.

      -AJ

      Comment

      Working...
      X