Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User jayesh4456's Avatar
    Join Date
    Dec 2011
    Posts
    142
    I want to compress the image before uploading the image on server.
    is there any class which provides compression of an image(jpg)?
    as i have go through other threads, they are suggesting the LZW algorithm for compression.
    but i don't want to implement LZW algorithm if symbian has a class for compression of image.

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    you could use image encoder API to save the image in JPG, and you can save it to file or into buffer as well. Wiki should have some examples that could get you started with it.

  3. #3
    Registered User jayesh4456's Avatar
    Join Date
    Dec 2011
    Posts
    142
    i can save the image into jpg format.
    i want to compress it before upload.

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    I would think it would not do too much difference, anyway, you could then try searching wiki for compression articles, here's link for one: http://www.developer.nokia.com/Commu...ing_GZIP_files

  5. #5
    Regular Contributor teemup's Avatar
    Join Date
    May 2010
    Posts
    362
    JPG image is already compressed in several ways. Compressing it again will give you little benefit.

  6. #6
    Registered User jayesh4456's Avatar
    Join Date
    Dec 2011
    Posts
    142
    I am asking this question because when ever i am uploading Image quality of 12M -Large.
    I am getting trouble.I don't know what..but there is a problem doing that work.
    i don't have such device .
    so i can't debug..but there is problem in uploading image of high quality...

  7. #7
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    maybe you should instead reduce the image size by either using lower resolution's images, or saving it with lower quality. Also please note the Remote device Access service,which with you can use a real device for your testings. Links available under the tab on top of this page

  8. #8
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,412
    If sending a smaller file works, but a bigger one doesn't, the problem is not in the data you're trying to send, but the sending or receiving software.

    In other words, if you have problems uploading a big file (regardless of what the file contains), my first inclination would be to try to iron out the bug form your code, or the server code, that prevents you from doing so, rather than trying to send less data, which is not a solution, but just a temporary workaround where you ignore/hide the real problem.

  9. #9
    Regular Contributor teemup's Avatar
    Join Date
    May 2010
    Posts
    362
    And if you do control the server side, consider splitting the send process and doing smaller segments, taking short breather in between.
    There might be limitations on the server, doing a timeout when sending process takes too much time.

    Trying to compress 12M JPEG without quality loss is not just possible. So follow the instructions symbianyucca told or send it in segments.

Similar Threads

  1. image compression API or opensouce lib
    By hbzyn1 in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2011-01-13, 10:59
  2. image compression in J2ME
    By rprabhune in forum Mobile Java General
    Replies: 3
    Last Post: 2009-09-14, 08:42
  3. Image Compression
    By Stalkin in forum Mobile Java General
    Replies: 3
    Last Post: 2008-09-02, 14:57
  4. image compression LZW???
    By dev_buzz in forum Streaming and Video
    Replies: 2
    Last Post: 2008-05-29, 05:31
  5. MMS Image compression
    By kashchei2003 in forum General Messaging
    Replies: 3
    Last Post: 2006-05-19, 19:40

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