×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    10

    How to load hidden images

    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
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load hidden images

    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
    Join Date
    Oct 2009
    Posts
    10

    Re: How to load hidden images

    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
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load hidden images

    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
    Join Date
    Oct 2009
    Posts
    10

    Re: How to load hidden images

    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
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load hidden images

    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
    Join Date
    Oct 2009
    Posts
    10

    Re: How to load hidden images

    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
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load hidden images

    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
    Join Date
    Oct 2009
    Posts
    10

    Re: How to load hidden images

    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
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How to load hidden images

    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
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load hidden images

    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
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load hidden images

    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
    Join Date
    Oct 2009
    Posts
    10

    Re: How to load hidden images

    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
    Join Date
    Oct 2009
    Posts
    10

    Re: How to load hidden images

    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
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to load hidden images

    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
  •