Results 1 to 1 of 1

Thread: Gdk::Pixbuf does not load images

  1. #1
    Join Date
    Nov 2013
    Beans
    1

    Gdk::Pixbuf does not load images

    Hi,

    I'm trying to load a *.jpg image into a Gdk:: Pixbuf, but it fails and keeps telling me: Error interpreting JPEG image file (Wrong JPEG library version: library is 62, caller expects 80)


    Code:
    try{
        Gdk::Pixbuf::create_from_file(".../Test.jpg");
    }
        catch(const Glib::FileError& ex) {
        std::cerr << "FileError: " << ex.what() << std::endl;
    }
        catch(const Gdk::PixbufError& ex) {
        std::cerr << "PixbufError: " << ex.what() << std::endl;
    }
    The only installed versions are libjpeg8 and libjpeg8-dev

    I have a similar problem loading *.png images: GdkPixbuf-WARNING **: Bug! gdk-pixbuf loader 'png' didn't set an error on failure.
    PixbufError: Failed to load image '.../Test.png': reason not known, probably a corrupt image file

    The libpng versions are 12-dev and 12-0

    I'm using Gtkmm-2.4-dev

    Any idea on how to fix this?
    Last edited by MaxSchererMax; November 6th, 2013 at 02:16 PM. Reason: fix display error

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •