How to handle large images?

Hi,
Does 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 decoded 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

Hi,
I think it is not possible. My application contains a file browser (which uses jsr-75). User can use the browser to select an image either from phone memory or memory card. After the selection I would like to present the selected image for that user can be sure it is the right image. The selected image will be then sent to the server side with some additional data for further processing (but that is another story).
Now the problem is that for example with Nokia 6680 user can take images as big as 1280*960 and I can't present them anymore because of the memory restrictions. With 640*480 image there is no problem because I can create an image object and then use a simple algorithm to resize the image for presentation.
Br, Ilpo

Similar Messages

  • How to view large images ?

    i just updated my phone c601 from symbian anna to belle..may i know how to view large images in the nokia internet browser..i cant change it

    sorry,since i have just updated my mobile,i can't show you how large is it,
    but i can show you how small is it...
    even though i click 'more>view image',
    the image that shows me is just that small....
    Attachments:
    scr000001.jpg ‏102 KB

  • How to handle large result set of a SQL query

    Hi,
    I have a question about how to handle large result set of a SQL query.
    My query returns more than a million records. However, the Query Template has a "row count" parameter. If I don't specify it, it by default returns only 100 lines of records in the query result. If I specify it, then it's limited to a specific number.
    Is there any way to get around of this row count issue? I don't want any restriction on the number of records returned by a query.
    Thanks a lot!

    No human can manage that much data...in a grid, a chart, or a direct-connected link to the brain. 
    What you want to implement (much like other customers with similar requirements) is a drill-in and filtering model that helps the user identify and zoom in on data of relevance, not forcing them to scroll through thousands or millions of records.
    You can also use a time-based paging model so that you only deal with a time "slice" at one request (e.g. an hour, day, etc...) and provide a scrolling window.  This is commonly how large datasets are also dealt with in applications.
    I would suggest describing your application in more detail, and we can offer design recommendations and ideas.
    - Rick

  • How to dispaly large images?

    Hi!
    I have a simple problem, hope somebody could help me!
    I would like to display images from a LONG RAW type column of an Oracle database (Oracle8i Enterprise Edition Release 8.1.6.0.0) in a BC4J application. I use JDEV 9.0.3.
    The wizard generated entity object's attribute type for the image field is raw, i could not find the LONG RAW type in the java types. The maximun size of the raw type is 2000 bytes, so my app can not handle and display large images. How could i solve this problem? Pls help me!
    I have read the otn forum tips, but they did not help me :((
    Thanx
    Bence

    You may try mapping your column to BlobDomain!
    If that doesn't fit the need, you'd have to create a similar LobDomain (see BlobDomain.java source in bc4jdomorcl.zip) for LongRawDomain so that it uses streamnig apis to fetch data from jdbc rather than using a column-value fetch.

  • How to get larger images in albums?

    I just realized that when you click on a thumbnail in one of my albums, the larger image is actually smaller than the original photo! All the photos I've put into my web albums have been shrunk to fit into the album display area. For instance, a photo that normally displays about 7 inches high when I view in Preview, comes out about 4.5 inches tall when displayed in my web album.
    How can I get it to display photos at actual size?

    Ray Dunakin wrote:
    I tried turning off "optimize images", but they still were showing up at the reduced size.
    providing a url to your site so people could have a look at what's going on may help...
    What I'd really like is a way to designated specific images to display at a larger size -- most don't need to be very large, but some do.
    I think that's not possible in iWeb PhotoPages... As you choose one format for all. However to get larger images in albums click on a photo and a window will popup called "Photo grid". You can increase the size of the images displaying by reducing the spacing and/or decreasing the number of columns.
    Regards,
    Cédric

  • How to print large image across several pages?

    After using Appleworks for years I finally got Pages 09. In AW I used to be able to use drawing app to print large (36 x 36) images over several pieces of paper, simply by adding pages to the document. I would then tape the pages together to form the large poster. I can't see anyway to do this in Pages. It won't let you print any larger than 11x17, nor let you add pages to a layout to print a large image. Anybody know how to do this, or did I just waste my money?

    Welcome to Apple Discussions
    Yvan Koenig discovered with iWork '08 that you can span images across pages in a Numbers document as a substitute. Select & delete any tables & then treat the Numbers document as a draw document. You shouldn't need to add pages like in AppleWorks as Numbers adds them as needed to display all of the content.

  • CS3 How to style larger image window that thumbnail links to

    Hi,
    Can anyone advise on how to format the larger image a thumbnail links to? When I click on the link created from the thumbnail, the larger image just comes up tucked in the top left corner. I am creating this gallery manually because I don't have Fireworks, only CS3, which Fireworks didn't come with.
    Any helpful suggestions would be greatly appreciated.

    Acrobat Pro

  • How to handle large heap requirement

    Hi,
    Our Application requires large amount of heap memory to load data in memory for further processing.
    Application is load balanced and we want to share the heap across all servers so one server can use heap of other server.
    Server1 and Server2 have 8GB of RAM and Server3 has 16 GB of RAM.
    If any request comes to server1 and if it requires some more heap memory to load data, in this scenario can server1 use serve3’s heap memory?
    Is there any mechanism/product which allows us to share heap across all the servers? OR Is there any other way to handle large heap requirement issue?
    Thanks,
    Atul

    user13640648 wrote:
    Hi,
    Our Application requires large amount of heap memory to load data in memory for further processing.
    Application is load balanced and we want to share the heap across all servers so one server can use heap of other server.
    Server1 and Server2 have 8GB of RAM and Server3 has 16 GB of RAM.
    If any request comes to server1 and if it requires some more heap memory to load data, in this scenario can server1 use serve3’s heap memory?
    Is there any mechanism/product which allows us to share heap across all the servers? OR Is there any other way to handle large heap requirement issue? That isn't how you design it (based on your brief description.)
    For any transaction A you need a set of data X.
    For another transaction B you need a set of data Y which might or might not overlap with X.
    The set of data (X or Y) is represented by discrete hunks of data (form is irrelevant) which must be loaded.
    One can preload the server with this data or do a load on demand.
    Once in memory it is cached.
    One can refine this further with alternative caching strategies that define when loaded data is unloaded and how it is unloaded.
    JEE servers normally support this in a variety of forms. But one can custom code it as well.
    JEE servers can also replicate cached data across server instances. Custom code can do this but it is more complicated than doing the custom caching.
    A load balanced system exists for performance and failover scenarios.
    Obviously in a failover situation a "shared heap" would fail completely (as asked about) because the other server would be gone.
    One might also need to support very large data sets. In that case something like Memcached (google for it) can be used. There are commercial solutions in this space as well. This allows for distributed caching solutions which can be scaled.

  • How to resize large images without losing quality

    Hello I have an image that I am trying to use as an email. Right now it is 2108 pixels. And for an email it should be 600 px. I created this image in illustrator as vectors and type.
    Whenever I go into image size and i change it to be 600 pixels it gets extremely blurry. I have also tried converting this to a smart object... doesnt work. How do I resize my large image to be smaller without losing quality???

    here is an example sceenshot of the opening dialog (.ai opened directly in Photoshop)
    your illustrator vector should be rastered sharp at 100% actual Pixels in Photoshop
    that is where you want to evaluate sharpness in Photoshop...
    then File> Save for Web & Devices (and drag that saved file icon into an open web browser)
    still no joy, embed your saved image here using the forum's camera icon...

  • Resume jpeg is saving way to small. How to save larger image that's readable.

    created my resume in cs6 and the jpeg is so small, no employers can even read the text without zooming in a bunch. How do i save a readable/larger image of my resume?! HELP!!! Thank you!

    For a resume, when you create one (BTW photoshop is not the proper app for it) The document should be the same size as the paper size that it will be printed on and at 200 to 300 ppi.
    Then you don't save as jpg not for a resume, it needs to be clean and professional. Save as tiff, png or better yet as a pdf. Pdf supports layers, transparency, vector shape, paths and editable text.
    Your resume should be created in a program meant for text documents. Illustrator, InDesign and even MS word. All three can export a pdf file. If photoshop is all you have, then that's all you can do. Just making you aware that's all.

  • Handling large image files...

    Hello All,
    Few days back I posted a query regarding handling of Satellite Imagery but didn't got any responses...
    Well, what I'll try to do now that I'll post the same question in adifferent way.
    In my current project, we require textures of around 1024*1024 pixels and around 15 to 20 in numbers to be simulataneously displayed in the scenegraph. We are using a good Hardware Accelerator Card with sufficient memory ..... but the overall performance degrades a lot.
    Any suggestions regarding handling these images (or some sort of dynamic loading)
    Regards

    Hello,
    you should use Mipmaps.
    http://java.sun.com/products/java-media/3D/collateral/
    Chapter 7.6
    Regards,
    Oliver

  • Spry Gallery - how to get large image to open in a new window?

    Hey guys,
    I'm building a new website and decided to use Spry for the Gallery section. It works like a charm but I want to get the larger version of the image to open in a new window when someone clicks on the normal image? It shouldn't be that difficult but I'm lost. Can anyone help?
    I believe I have to put a <a href> infront of the image something like this:
    <div id="picture">
            <div id="mainImageOutline" style="width: 0px; height: 0px;"><a href="?????" target="_blank" id="??????"><img id="mainImage" alt="main image" src=""/></a></div>
      </div>
    and something to the XML file...
    <photo
    path = "1.jpg"
    width = "300"
    height = "400"
    thumbpath = "1.jpg"
    thumbwidth = "56"
    thumbheight = "75"
    large = "galleries/xyz/large/1.jpg"   <------- this is the large image I want to open in a new windows
    >
    </photo>
    thanks!!

    Actually, the site is for my friend and she really likes this Gallery: http://labs.adobe.com/technologies/spry/demos/gallery/index-air.html
    I just want to keep this one and just edit it, so when I click on the image it opens the large image...

  • How to scan large images with the CanoScan 9000F Mark II

    I kept getting this error:
    ScanGear
    You are trying to scan an image exceeding 100 MB.
    Reduce image size or switch off the thumbnails view mode,
    when you want to scan this image.
    OK
    I couldn't find the fix anywhere online but I eventually figured it out myself. I'm posting it here so that other people don't have to waste time figuring it out.
    The fix is to click the button in toolbar in the upper left corner of the ScanGear window. The icon looks like a photograph and a slide. The tooltip when you hover over it says "Switches on/off the thumbnails view mode".
    This will switch the preview window to showing the entire scan area but you can still zoom in to adjust the scanning rectangle by clicking the magnifying class button in the toolbar.
    There is another setting you may want to change in order to be able to scan even larger images.
    - In the Canon IJ Scan Utility, click the "Settings" button.
    - Click ScanGear in the list on the left.
    - Check "Enable large image scans".
    - You can also set the JPEG and PDF compression levels from here by clicking the "Settings" button.

    Hi Riley!
    So that the Community can help you better, we will need to know the computer operating system you're using (Windows XP/Vista/7/8 or Mac 10.x). Any error messages or other details you'd like to give will also help the Community better understand your issue.
    Thanks and have a great day!

  • How to process Large Image Files (JP2 220MB+)?

    All,
    I'm relatively new to Java Advanced Imaging, so I need a little help. I've been working on a thesis that involves converting digital terrain data into X3D scenes for future use in military training and applications. Part of this work involves processing large imagery data to texture the previously mentioned terrain data. I have an image slicer that can handle rather large files (200MB+ jpeg files). But it can't seem to process jpeg 2000 data. Below is an excerpt from my code.
    public void testSlicer(){
    String fname = "file.jp2";
    Iterator readers = ImageIO.getImageReadersByFormatName("jpeg2000");
    ImageReader imageReader = (ImageReader) readers.next();
    try {
    ImageInputStream imageInputStream = ImageIO.createImageInputStream(new File(fname));
    imageReader.setInput(imageInputStream, true);
    } catch (IOException ex) {
    System.out.println("Error: " + ex);
    ImageReadParam imageReadParam = imageReader.getDefaultReadParam();
    BufferedImage destBImage = new BufferedImage(256, 256, BufferedImage.TYPE_INT_RGB);
    Rectangle rect = new Rectangle(0, 0, 1000, 1000);
    //Only reading a portion of the file
    imageReadParam.setSourceRegion(rect);
    //Used to subsampling every 4th pixel
    imageReadParam.setSourceSubsampling(4, 4, 0, 0);
    try {
    destBImage = imageReader.read(0, imageReadParam);
    } catch (IOException ex) {
    System.out.println("IO Exception: " + ex);
    The images I am trying to read are in excess of 30000 pixels by 30000 pixels (15m resolution at 5 degrees latitude and 6 degrees longitude). I continually get an OutOfMemoryError, though I am pumping up the heap size to 16000MB when using the command line.
    Any help would be greatly appreciated.

    Hi,
    In general, an extra sizing for XI memory consumption is not required. The total memory of the SAP Web Application Server should be sufficient except in the case of large messages (>1MB).
    To determine the memory consumption for processing large messages, you can use the following rules of thumb:
    Allocate 3 MB per process (for example, the number of parallel messages per second may be an indicator)
    Allocate 4 kB per 1kB of message size in the asynchronous case or 9 kB per 1kB message size in the synchronous case
    Example: asynchronous concurrent processing of 10 messages with a size of 1MB requires 70 MB of memory
    (3MB + 4 * 1MB) * 10 = 70 MB With mapping or content-based routing where an internal representation of the message payload may be necessary, the memory requirements can be much higher (possibly exceeding 20 kBytes per 1kByte
    message, depending on the type of mapping).
    The size of the largest message thus depends mainly on the size of the available main memory. On a normal 32Bit operating system, there is an upper boundary of approximately 1.5 to 2 GByte per process, limiting the respective largest message size.
    please check these links..
    /community [original link is broken]:///people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Input Flat File Size Determination
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
    data packet size  - load from flat file
    How to upload a file of very huge size on to server.
    Please let me know , your problem is solved or not..
    Regards
    Chilla..

  • How to handle invalid images in "Image" report item?

    I have a report that displays images in Image item (MIMEType image/jpeg) in the table. Images are stored in the database.
    Some of the images are, however, not a valid jpeg files (not sure what they are but I saved them as files and they cannot be opened by any graphics editor). When report server tries to display such an image in the report whole report fails.
    Similarly, web application that tries to display them on the web page throws an exception. In web application we can catch that exception and show static "IMAGE IS INVALID" bitmap instead.
    Is there a way to handle/catch such errors in SSRS? The way it is now is not good because error message doesn't tell you anything specific about error.

    Enabling SSRS Remote errors
    http://technet.microsoft.com/en-us/library/aa337165.aspx
    http://www.sharepointjohn.com/sql-reporting-services-2008-r2-enable-remote-errors/
    Displaying custom error message
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/2b891541-836f-4d9d-89f3-d2340319f453/
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for