Image Library

This is a discussion on Image Library within the Windows Programming forums, part of the Platform Specific Boards category; I was wondering what are some prefered image libraries to load jpeg files. I'm currently using allegro and jpgalleg. I ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    193

    Image Library

    I was wondering what are some prefered image libraries to load jpeg files. I'm currently using allegro and jpgalleg. I dont like this setup because when I save the jpg, I lose quailty or the filesize increases. I tried vigra, but when the program wouldnt load. It would compile okay, but when the program reached the vigra::ImportImageInfo step of the program, the program quit. All I need to be able to do is retrieve the width and height in pixels of jpeg images, determine if the image is a jpeg file or not, and save the jpeg where the filesize decreases without the quality descreasing (like if you open a jpeg image in paint and hit save, the filesize decreases and the quality doesnt decrease).

    Thanks in advance for any help.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    gdi, gdi+ from microsoft
    FreeImage library from sourceforge

    Kuphryn

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    I could never compile gdi+ and when I asked what I was doing wrong, no one responded so I gave up on gdi+.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Location
    UK
    Posts
    13
    Try CxImage Libraries

    It's a bit of a pain the include in your project but once you have it's very straight forward.
    It allows you load bmps,jpegs,gifs etc... rotate, crop, resize... and then save as any format.

    converting a bitmap file into a jpeg can be done with 3 lines of code.

    http://www.codeproject.com/bitmap/cximage.asp

  5. #5
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    >> I could never compile gdi+ and when I asked what I
    >> was doing wrong, no one responded so I gave up on gdi+.

    No, gdi and gdi+ are very good and simple (They require nothing windows doesn't come with either.), They are my primary use and I know I'm not an expert programmer.
    Last edited by Queatrix; 10-05-2006 at 08:20 PM.

  6. #6
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    For me, gdi+ isnt simple because I get like a million EmfPlusRecordType errors when I try to compile it and I cant figure out why.

    spacecadet, thanks for the information on that library. I will look into it.

  7. #7
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    For most of my errors I usually have, GOOGLE helped me out. If it didn't, then I asked the forums.

    A little search showed, that you haven't asked anything about EmfPlusRecordType errors in these forums.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  8. #8
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    Cant Compile GDI+

    Thats the thread I was talking about, but it seems like a couple users did reply to it, so that was my bad for saying that no one did.

    EDIT:

    I'm using Dev-C++ which I think is the problem I cant compile gdi+.

  9. #9
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Maybe search didn't search in the code tags, sorry.

    If you download the mingw package, you will get all the necessary and newest header and library files (in correct format .a).
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 04:17 AM
  2. vector field image library
    By kezman in forum C Programming
    Replies: 0
    Last Post: 04-18-2009, 08:02 AM
  3. Simple Image Processing
    By ejohns85 in forum C++ Programming
    Replies: 4
    Last Post: 03-19-2009, 12:10 PM
  4. Good Image Library
    By e66n06 in forum C Programming
    Replies: 7
    Last Post: 09-24-2007, 09:36 AM
  5. Replies: 4
    Last Post: 03-02-2003, 08:12 AM

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