2 Replies - 988 Views - Last Post: 09 October 2012 - 04:56 AM Rate Topic: -----

#1 Shtock  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 28
  • Joined: 14-November 11

Is there any way to check if an image compressed or not

Posted 06 October 2012 - 07:44 AM

Hello guys

Is there any way to check if downloaded image(.TIFF,.PNG,.JPEG and others) has compression or not ?
Currently I'm using OpenCV, but I don't care how to retrieve this info.

If I open some image via ordinary Windows Explorer->Right button click->Properties->Details->and we all can see a "compression" field

Thnx
Is This A Good Question/Topic? 0
  • +

Replies To: Is there any way to check if an image compressed or not

#2 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3183
  • View blog
  • Posts: 9,645
  • Joined: 05-May 12

Re: Is there any way to check if an image compressed or not

Posted 06 October 2012 - 08:23 AM

Almost all image file formats have a header section. The header section often has a field that indicates whether compression has been used or not, and if so what particular method.

I suggest finding a library that can handle different file formats and the exposes this information to you, otherwise you'll have to roll your own file reader that will have to recognize various files.
Was This Post Helpful? 1
  • +
  • -

#3 Shtock  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 28
  • Joined: 14-November 11

Re: Is there any way to check if an image compressed or not

Posted 09 October 2012 - 04:56 AM

I'have found what I need.
If someone is interested too please look here:
http://www.codeproje...pluscompression

This post has been edited by Shtock: 09 October 2012 - 04:56 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1