Solved

J2ME Generate .svg of .png file

Posted on 2006-06-08
7
620 Views
Last Modified: 2011-04-14
I am trying to generate .svg file of .png from J2ME application.I have nextel i870 phone. I went through a couple of APIs (tinyline, org.w3c.dom..) they dont have any examples to generate .svg file of .png. Is there any way I can do that?? If you could help me on that, It would be a great help.

Thanks,
Prajwol Bhandari
0
Comment
Question by:velosumdev
  • 4
  • 2
7 Comments
 
LVL 14

Assisted Solution

by:hoomanv
hoomanv earned 380 total points
ID: 16867980
Afaik tinyline is not for converting raster images to SVG
however you can download Programmer's Guide for sample codes
http://www.tinyline.com/2d/download/index.html

Btw below is an open source java tool for this purpose
http://delineate.sourceforge.net/
0
 
LVL 14

Assisted Solution

by:hoomanv
hoomanv earned 380 total points
ID: 16867996
also http://xmlgraphics.apache.org/batik/
am not sure if you can port them to J2me
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 20 total points
ID: 16869506
There is a dev toolkit from Tinyline for SVG, hope this helps:

http://www.tinyline.com/svgt/
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:velosumdev
ID: 16871955
Thanks guys for your comments. The link which you guys sent is for generating .svg file from java graphics2D (like circle, rect, square). I was looking for a way to
convert raster images (jpg,png) to vector image.

I know there are programs for automatic or semiautomatic verctorization on pc (like Delineate). But I am looking for something which is compatible with J2ME environment.

Thanks again for your help.
Praj
0
 

Author Comment

by:velosumdev
ID: 16873748
Guys let me reiterate what exactly I am trying to do. May be that will help to understand the problem better.

I have an app which captures an image from the Motorola i870 phone and sends that image to the server through HTTP post. I have to send that image to the server from the phone.

To make the life easier, I tried to generate a .svg file of that image and send it to the server, because I could reduce the overhead by almost 1/10 in terms of size.

So, It would be great help for if you could help me solve this problem. Its really an inportant feature of our company's product.

Thanks again,
Praj
0
 
LVL 14

Accepted Solution

by:
hoomanv earned 380 total points
ID: 16873818
raster images when converted to vector (like SVG), always become larger, because there is no algorithm that can detect shapes/lines/etc in the raster image to formulate it (in order to reduce the size) so it is constrained to export each pixel individualy, and that results in a larger file size.
you can test it here http://www.enetzwerk.de/svg/index2.html
0
 
LVL 14

Assisted Solution

by:hoomanv
hoomanv earned 380 total points
ID: 16873833
> there is no algorithm
or im not yet aware of
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question