Results 1 to 2 of 2

Thread: Max size of image file

  1. #1
    Join Date
    Apr 2010
    Location
    Moscow
    Posts
    31
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Max size of image file

    Hi there. I am trying to load an image size of 55 megabytes , jpeg. But while trying to define image's width and height, it doesn't.
    Actual height and width are 11471 and 14260 respectively.
    Qt Code:
    1. QImage* initial_image = new QImage(QString(input_jpg_name));
    2. int old_height = initial_image->height();//return 0
    3. int old_width = initial_image->width();//return 0
    To copy to clipboard, switch view to plain text mode 

    Is it the fact that QImage can't handle big images? With smaller ones (I tried) it works just fine. Thank you in advance.
    Last edited by Astrologer; 28th April 2010 at 12:38.

  2. #2
    Join Date
    Apr 2010
    Location
    Moscow
    Posts
    31
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Max size of image file

    But QImageReader does read dimensions.
    Last edited by Astrologer; 28th April 2010 at 13:52.

Similar Threads

  1. QLabel size, for image display
    By C167 in forum Qt Programming
    Replies: 13
    Last Post: 25th October 2013, 16:09
  2. Image Size Not Right
    By QbelcorT in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 7th April 2009, 09:11
  3. icon size and the image
    By zgulser in forum Qt Programming
    Replies: 0
    Last Post: 13th March 2009, 13:03
  4. how to draw a image of size 600x400
    By sar_van81 in forum Qt Programming
    Replies: 2
    Last Post: 12th March 2007, 11:11
  5. [QT4] QtextBrowser and image size (win)
    By sebgui in forum Qt Programming
    Replies: 0
    Last Post: 28th March 2006, 21:01

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.