×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    4

    Unable to display pics taken by main camera of N8.

    Hi Everyone,

    In my application, i need to take pics from memory and needs to display it. But, i'm unable to Display the pics taken by Main camera of Nokia N8. While, i'm able to display the pics taken by conference camera. I think this is an issue of Image size. Please suggest me a way of compressing the image. On Emulator, everything is working fine.
    Last edited by purpletalk; 2011-03-11 at 06:48.

  2. #2
    Registered User
    Join Date
    Oct 2010
    Posts
    4

    Re: Unable to display pics taken by main camera of N8.

    Is there any way, using which i can display the thumbnails?

  3. #3
    Super Contributor
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: Unable to display pics taken by main camera of N8.

    Quote Originally Posted by purpletalk View Post
    Is there any way, using which i can display the thumbnails?
    try with it,
    Code:
    QImage image("/path/to/image");
    QImage thumbnail = image.scaled(80, 80, Qt::KeepAspectRatio, Qt::FastTransformation);
    Regards
    $-Nitesh-$

  4. #4
    Registered User
    Join Date
    Oct 2010
    Posts
    4

    Re: Unable to display pics taken by main camera of N8.

    Thanks Nitesh. I'll try this and will let you know the result.

  5. #5
    Registered User
    Join Date
    Jan 2011
    Posts
    4

    Re: Unable to display pics taken by main camera of N8.

    Even i'm facing the same issue. I tried your patch, but it's not working for me. I'm still unable to display the pics taken by main camera.

    Here is my code:

    ui->nameedit->clearFocus();
    qDebug()<<" image button clicked_______________";

    if(ui->nameedit->text().isEmpty()==false)
    {

    fileName = QFileDialog::getOpenFileName(this, tr("Select Image"),
    QDesktopServices::storageLocation(QDesktopServices::PicturesLocation),
    "*.jpg *.png");




    if(fileName.isEmpty()==false || fileName.isNull()==false)
    {




    QImage* image = new QImage(fileName);

    QImage thumbnail = image->scaled(80, 80, Qt::KeepAspectRatio, Qt::FastTransformation);
    if(image->isNull()==false)
    {


    qDebug() << "PIC SELECTED SUCCESFULLY";
    ui->imagelabel->setScaledContents(true);

    QPixmapCache::clear();
    ui->imagelabel->setPixmap(QPixmap::fromImage(thumbnail));

    }

    delete image;

    }


    }
    else
    {
    ui->widget_2->show();



    }


    Please, suggest me a way.

  6. #6
    Registered User
    Join Date
    Nov 2010
    Posts
    32

    Re: Unable to display pics taken by main camera of N8.

    Please try with QImageReader and use scaling while reading...

  7. #7
    Registered User
    Join Date
    Jan 2011
    Posts
    4

    Re: Unable to display pics taken by main camera of N8.

    I'll try that.

Similar Threads

  1. can't load movie image taken by camera
    By beblank in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2010-02-19, 15:37
  2. how to save image taken by camera with bitmap
    By winsys in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-10-10, 05:46
  3. pictures taken by the camera in 7650
    By ddhungry in forum Mobile Java General
    Replies: 2
    Last Post: 2003-03-24, 14:33
  4. Denoising and enhancement of images taken by the embedded camera
    By Roumen in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2003-02-03, 07:23
  5. About Pics taken by 7650
    By nintel in forum Symbian
    Replies: 1
    Last Post: 2002-11-05, 07:09

Posting Permissions

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