Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User mark.earvin's Avatar
    Join Date
    Oct 2009
    Posts
    10
    Hi, how do I load hidden images in Qpixmap or QImage? Or is there any way to do it? Thanks in advance for the reply.

  2. #2
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    what does it mean by hidden images if you can get the file names at path properly then yes you can load them code in wiki

  3. #3
    Registered User mark.earvin's Avatar
    Join Date
    Oct 2009
    Posts
    10
    the hidden thumbnails implemented by the native nokia gallery.. im loading multiple images from the memory but i have problems loading hidden images though i had the correct path.

  4. #4
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    you mean the gallery cache files .. if you want to use them .. i suggest you should not.
    can you let us know what you are targetting for ?

  5. #5
    Registered User mark.earvin's Avatar
    Join Date
    Oct 2009
    Posts
    10
    im trying to implement a gallery in Qt. i had problems loading large images as my heap is being exhausted. so i thought using the gallery cache files would be better since they are smaller in sizes.

  6. #6
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by mark.earvin View Post
    im trying to implement a gallery in Qt. i had problems loading large images as my heap is being exhausted. so i thought using the gallery cache files would be better since they are smaller in sizes.
    may i know how you are reading the images ? i mean with which API.

  7. #7
    Registered User mark.earvin's Avatar
    Join Date
    Oct 2009
    Posts
    10
    im using Qt 4.7.1 QPixmap. i tried loading and scaling via QImageReader yet some of the images still cannot be loaded.

  8. #8
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    from my experiance QImageReader works for N8 taken images too, so should be fine . can you let us know where it is failing .

  9. #9
    Registered User mark.earvin's Avatar
    Join Date
    Oct 2009
    Posts
    10
    i did something like this:

    QImageReader reader;
    reader.setFileName(fname_);
    QSize imageSize = reader.size();
    imageSize.scale(QSize(100,100),Qt::KeepAspectRatio);
    reader.setScaledSize(imageSize);
    QImage image = reader.read();

    when i get the depth() of the image, it returns a 0 (zero) for some images. which means that the image has not been loaded.

  10. #10
    Nokia Developer Champion kkrish's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,029
    What is the size of images? I also faced the same issue with the api. It is not working fine with big size image.

  11. #11
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    when i get the depth() of the image, it returns a 0 (zero) for some images
    you mean QImage::depth() ? i suggest you want to check the QImage::size() also checking imageSize if it can load the images or not

  12. #12
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by kkrish View Post
    What is the size of images? I also faced the same issue with the api. It is not working fine with big size image.
    #9 way of reading works fine for images taken with N8 camera.

  13. #13
    Registered User mark.earvin's Avatar
    Join Date
    Oct 2009
    Posts
    10
    it might be the encoding of the image for it is only 28kb file. yet the problem is i cannot convert it to a lower encoding since it does not load. btw, some images with of bigger sizes are being loaded.

  14. #14
    Registered User mark.earvin's Avatar
    Join Date
    Oct 2009
    Posts
    10
    Quote Originally Posted by skumar_rao View Post
    you mean QImage::depth() ? i suggest you want to check the QImage::size() also checking imageSize if it can load the images or not
    thanks! i'll try to check for the size. btw, yeah, i mean QImage::depth()

  15. #15
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by mark.earvin View Post
    it might be the encoding of the image for it is only 28kb file. yet the problem is i cannot convert it to a lower encoding since it does not load. btw, some images with of bigger sizes are being loaded.
    is those images are taken from phone camera or downloaded from some where .. i have seen some iamge not decoding which have particular format of PNG ... but all images taken from phoen camera does not have any problem.

Page 1 of 2 12 LastLast

Similar Threads

  1. how to load and display images
    By prakashforum in forum Symbian C++
    Replies: 4
    Last Post: 2010-07-22, 20:38
  2. How load video thumbnail images
    By venkatesh.pampana in forum Symbian C++
    Replies: 8
    Last Post: 2010-06-25, 10:49
  3. How to load images in 1st edition ?
    By pawelbrzez in forum Python
    Replies: 1
    Last Post: 2006-05-26, 19:32
  4. How to load images to a listbox as icons
    By binubabykurian in forum Symbian C++
    Replies: 1
    Last Post: 2005-01-20, 11:53
  5. cannot load images to devices
    By zivgr in forum Mobile Java General
    Replies: 3
    Last Post: 2003-06-04, 07:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved