Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Getting image compression/codec information?

Getting image compression/codec information?

Scheduled Pinned Locked Moved C#
tutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matjaz xyz
    wrote on last edited by
    #1

    Hi. I'm looking on how to get the information from an image. The information i need is its codec or compression. The reason why i need this is because, i have a large quantity of .TIF files. But some were not converted right and are color TIFs (IrFan View says : "Old JPEG (in TIFF)"). I need to get these files and convert them to the real .JPG. So, i want to get the codec information from a file and compare it to a string. I'd use the "for" sentence to go through the whole list of files. Summary (a scratch code):

    for(int i = 0; i<files.count;i++)>
    get codec from files[i]
    if codec == old jpeg
    then move the file to a folder

    Any idea on how to get this information? Thanks in advance!

    Regards, Matjaž

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups