CImg to convert tiff to bmp

This is a discussion on CImg to convert tiff to bmp within the C++ Programming forums, part of the General Programming Boards category; Hello All, Has anyone used this header(cimg.h) ? Does anyone know how to do the above. I don't seem to ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    11

    CImg to convert tiff to bmp

    Hello All,

    Has anyone used this header(cimg.h) ? Does anyone know how to do the above. I don't seem to be able to find any info on this anywhere.

    If anyone has another way for converting (batch) tiff images to bmp i'd like to hear about it.

    Thanks.

  2. #2
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    Yes, in fact I believe it is quite simple (it's been a while since I've used it, but I think this'll work):
    Code:
    CImg cImg ("img.tiff"); //Again, I haven't used this in a while so I may be declaring this wrong
    cImg.Save("img.bmp");
    So basically when you save it you just specify the file extension in the file name. I'm pretty sure that will work, tell me if it doesn't.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading BMP
    By Mortissus in forum C Programming
    Replies: 4
    Last Post: 02-02-2006, 05:32 AM
  2. Strange problem with bmp
    By Victor in forum Linux Programming
    Replies: 2
    Last Post: 04-04-2005, 02:48 PM
  3. Reading color tiff images?
    By compz in forum Game Programming
    Replies: 1
    Last Post: 11-20-2003, 11:48 PM
  4. Convert Char to Int Function
    By drdroid in forum C++ Programming
    Replies: 9
    Last Post: 02-19-2003, 11:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21