DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: tool to check if TIFF files compressed ?  (Read 73,379 times)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
tool to check if TIFF files compressed ?
« on: June 22, 2009, 08:36 PM »
Didnt know where to post this ...

I'm looking for a tool that will tell me if a TIFF file has been compressed (or better still one that will check 100 tiff files in a folder and tell me ..)
AFAIK with TIFF files it's B/W - they're either compressed or not

The reason I'm checking is they supposed to be not compressed if they going to press/publication. The only way I know how to do it is
      a) save a couple & estimate the rest (and get shot if there's a problem later)
      b) resave them all - this is so mindless that you start making mistakes anyways . .

If there's nothing out there and people think it's even possible, I'll post it in coding snacks, thanks!!
Tom

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • Gathering Badge
    • Participated in NANY Challenge Twice
Re: tool to check if TIFF files compressed ?
« Reply #1 on: June 22, 2009, 09:38 PM »
Did you check out IrfanView?  Seems to do everything else.

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: tool to check if TIFF files compressed ?
« Reply #2 on: June 23, 2009, 12:06 AM »
@Tomos: No TC plug-in to do this?
Chris

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: tool to check if TIFF files compressed ?
« Reply #3 on: June 23, 2009, 08:09 AM »
Did you check out IrfanView?  Seems to do everything else.

I checked the plugins page and there's nothing there,
but maybe the programme itself can do it, will check
Tom

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: tool to check if TIFF files compressed ?
« Reply #4 on: June 23, 2009, 08:09 AM »
@Tomos: No TC plug-in to do this?

you're asking someone who just won a license but hasnt even had time to install it yet
-
anyone else know if there's a TC plugin to show if TIFF files compressed or not?
Tom

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: tool to check if TIFF files compressed ?
« Reply #5 on: June 23, 2009, 08:22 AM »
Can you post a few examples of both types of TIFF file?  Maybe there is something in the header that can be read to determine if it's compressed or not.

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: tool to check if TIFF files compressed ?
« Reply #6 on: June 23, 2009, 01:13 PM »
you're asking someone who just won a license but hasnt even had time to install it yet
I have one word for you... clairvoyance.  Other than that, Irfanview's image properties can tell you compression state.
Chris

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: tool to check if TIFF files compressed ?
« Reply #7 on: June 23, 2009, 01:58 PM »
@tomos: maybe you can try this LibTIFF tool - tiffinfo.

Quote
tiffinfo
Display information about one or more TIFF files.

• http://www.remotesensing.org/libtiff/

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: tool to check if TIFF files compressed ?
« Reply #8 on: June 23, 2009, 02:06 PM »
this site also has some info about the compression tags for TIFF.

• http://www.awaresystems.be/imaging/tiff/tifftags/compression.html

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: tool to check if TIFF files compressed ?
« Reply #9 on: June 23, 2009, 03:35 PM »
thanks all,
I'm only going to get a chance to look at IrfanView this evening - Library stuff looks technical but I've donwloaded and will look at it and see if I can figure it out

this site also has some info about the compression tags for TIFF.

• http://www.awaresystems.be/imaging/tiff/tifftags/compression.html
Forgot to say compression is LZW.
I can post a couple of samples later as well
Tom

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • Participated in NANY Challenge Four Times
Re: tool to check if TIFF files compressed ?
« Reply #10 on: June 23, 2009, 03:43 PM »
2tomos
Maybe this will help you:
http://www.totalcmd.net/plugring/wdx_image_info.html
http://www.totalcmd.net/plugring/wdx4i.html

I am not sure how reliable these plugins are with TIFF compression because all TIFFs I've got are with LZW. You should try by yourself.
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: tool to check if TIFF files compressed ?
« Reply #11 on: June 23, 2009, 04:55 PM »
http://www.totalcmd.net/plugring/wdx_image_info.html
http://www.totalcmd.net/plugring/wdx4i.html
I am not sure how reliable these plugins are with TIFF compression because all TIFFs I've got are with LZW. You should try by yourself.
The first plugin recognises the LZW, jpeg, Packbits and zip/deflate formats.  The second one recognises the LZW, jpeg, and Packbits formats.

[attachimg=#]
@tomos: maybe you can try this LibTIFF tool - tiffinfo.
tiffinfo works as well and recognises the four formats listed above.
« Last Edit: June 23, 2009, 04:57 PM by skwire »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: tool to check if TIFF files compressed ?
« Reply #12 on: June 23, 2009, 09:22 PM »
2tomos
Maybe this will help you:
http://www.totalcmd.net/plugring/wdx_image_info.html
http://www.totalcmd.net/plugring/wdx4i.html

I am not sure how reliable these plugins are with TIFF compression because all TIFFs I've got are with LZW. You should try by yourself.

I've installed the TC beta and I've figured out how to add the plugin but cannot figure out changing which columns show or how to use the plugins. (Can only find custom columns in Config where there is no list of columns - maybe there's something missing in the beta?)
I swear I've searched all over the place (wiki forum FAQs, oddly-I cant find 'help') and, I mean, I reckon it's got to be very simple to change which columns are showing but I'm damned if I can figure it out
(you know what it's like when you get a new app and havent a clue - remember?!? :p)

maybe I should be posting this in TC forum - I've registered there but it's too late here to make a diplomatic start in a new forum :) - thanks for any tips!

EDIT/ I've figured it out, back later!
Tom
« Last Edit: June 23, 2009, 09:40 PM by tomos »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: tool to check if TIFF files compressed ?
« Reply #13 on: June 23, 2009, 09:48 PM »
http://www.totalcmd.net/plugring/wdx_image_info.html
http://www.totalcmd.net/plugring/wdx4i.html
I am not sure how reliable these plugins are with TIFF compression because all TIFFs I've got are with LZW. You should try by yourself.
The first plugin recognises the LZW, jpeg, Packbits and zip/deflate formats.  The second one recognises the LZW, jpeg, and Packbits formats.

I'm not sure which plugin I got the custom column from - it's called 'compr' - but it's working  (LZW) and seems dependable so thanks for the help people :Thmbsup:
Make me an official TC fan please  ;)
Tom

fenixproductions

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,186
    • Participated in NANY Challenge Four Times
Re: tool to check if TIFF files compressed ?
« Reply #14 on: June 23, 2009, 10:12 PM »
Make me an official TC fan please  ;)

1. Go to Configuration -> Misc
2. assign for Ctrl+E command cm_SrcCustomViewMenu
3. click on green icon button and OK
4. now I can call you TC fan :)
Надо было учиться, а не камни в школу бросать...
--
f0dder is my personal hero :)

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: tool to check if TIFF files compressed ?
« Reply #15 on: June 23, 2009, 10:21 PM »
1. Go to Configuration -> Misc
2. assign for Ctrl+E command cm_SrcCustomViewMenu
3. click on green icon button and OK
4. now I can call you TC fan :)
gotchya 8) :D
Tom

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: tool to check if TIFF files compressed ?
« Reply #16 on: June 24, 2009, 12:52 AM »
@tomos: maybe you can try this LibTIFF tool - tiffinfo.
tiffinfo works as well and recognises the four formats listed above.

maybe an AHK front-end for tiffinfo would come in handy for non-TC users. :)

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: tool to check if TIFF files compressed ?
« Reply #17 on: June 25, 2009, 09:29 AM »
maybe an AHK front-end for tiffinfo would come in handy for non-TC users. :)
I could easily code this up...however, is there enough interest?  Speak now!

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: tool to check if TIFF files compressed ?
« Reply #18 on: June 25, 2009, 11:16 AM »
i wouldn't mind having a GUI for the tiffinfo program. who knows, it might come in handy one day.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: tool to check if TIFF files compressed ?
« Reply #19 on: June 25, 2009, 05:23 PM »
i wouldn't mind having a GUI for the tiffinfo program. who knows, it might come in handy one day.

Here you go:  tiffInfoGUI download

2009-07-04_084511.png
« Last Edit: August 07, 2009, 02:33 PM by skwire »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: tool to check if TIFF files compressed ?
« Reply #20 on: June 26, 2009, 01:06 AM »
btw, this error appears when opening tiff files. just fyi.

SC_26_06_2009_001.png

Edit: the above error has been fixed, thanks Skwire. :-*
« Last Edit: June 26, 2009, 06:04 AM by lanux128 »

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: tool to check if TIFF files compressed ?
« Reply #21 on: June 26, 2009, 06:17 AM »
Fixed.  Added:

  • Size column.
  • Total files in statusbar.
  • Double-click launches the tiff file in your default viewer.

tiffInfoGUI download

Thanks, lanux, for the feedback and suggestions.
« Last Edit: August 07, 2009, 02:32 PM by skwire »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: tool to check if TIFF files compressed ?
« Reply #22 on: August 07, 2009, 08:33 AM »
download link for tiffInfoGUI is broken, skwire.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: tool to check if TIFF files compressed ?
« Reply #23 on: August 07, 2009, 02:33 PM »
Fixed.  :D

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: tool to check if TIFF files compressed ?
« Reply #24 on: November 23, 2009, 10:49 AM »
i wouldn't mind having a GUI for the tiffinfo program. who knows, it might come in handy one day.

Here you go:  tiffInfoGUI download
(see attachment in previous post)

that's neat
works well - thanks Skwire :Thmbsup: I just used it to double check (used the TC plugin too) all agreed so I happy :)
Tom

Original address: https://www.donationcoder.com/forum/index.php?topic=18892.0