You Are Here:

Community: Developer Discussion Boards

#1 Old How to handle large images? - 2005-08-15, 09:21

Join Date: Nov 2004
Posts: 8
berni4
Offline
Registered User
Hi,

Do anyone know how to handle big jpg images (1280*960) so that they could be presented in a midlet.

The problem is that the images requires so much memory that they can't be docoder to an Image object with Image.createImage method. One solution would be to extract thumbnail image from exif headers. Unfortunately at least images taken with Nokia 6680 don't contain thumbnail in exif headers.

So the only solution seems to be to decode the byte presentation of the image and resize it before creating an Image object.

Do anybody know any library for this or tips where to start?

Br, Ilpo
Reply With Quote

#2 Old 2005-08-16, 04:40

Join Date: Aug 2005
Posts: 1
Tremelune
Offline
Registered User
I'm working on something similar...My first question would be, how do you display images not in the midlet jar at all?
Reply With Quote

#3 Old 2005-08-16, 09:27

Join Date: Nov 2004
Posts: 8
berni4
Offline
Registered User
I use file connection api (jsr-75). Examples can be found at http://www.forum.nokia.com/info/sw.n..._v1_1.zip.html
Reply With Quote

#4 Old Re: How to handle large images? - 2005-08-24, 10:33

Join Date: Jan 2005
Posts: 94
cqucyf
Offline
Regular Contributor
Perhaps you can cut it.
Reply With Quote

#5 Old Re: How to handle large images? - 2005-08-24, 16:47

Join Date: Mar 2003
Posts: 10
Location: South Africa
Send a message via MSN to johanmeyer
johanmeyer
Offline
Registered User
you guys can always put the image on a "scroll pane" which will allow the user to scroll the image (left, right, up or down). I did this before and it works well. Let me know if you would like the code.
My email: johan@jdmeyer.co.za

Johan
Reply With Quote

#6 Old Re: How to handle large images? - 2005-08-24, 17:34

Join Date: Nov 2004
Posts: 8
berni4
Offline
Registered User
Thanks for answer but the problem is that 1.3 M pixel jpg images require so much memory that they can't be creted with Image.createImage(byte[], int, int). The method throws OutOfMemory exception.
Reply With Quote

#7 Old Re: How to handle large images? - 2006-03-07, 20:10

Join Date: Aug 2005
Posts: 67
Location: Venice, California
Send a message via Yahoo to davidmanpearl
davidmanpearl
Offline
Regular Contributor
I am suffering from the same or very similar problem. Except, I don't get any exception. The thread just terminates when I attempt the Image.createImage() call. Does anyone have any resolution on this issue?

Is there any way to open an image file directly into a decimated lower resolution Image object as a thumbnail?

Thank you so much for your help on this matter.

- Sincerely, David Manpearl <dmanpearl_at_imatte_dot_com>
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ