Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

J2ME Generate .svg of .png file

Posted on 2006-06-08
7
Medium Priority
?
634 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 14

Assisted Solution

by:hoomanv
hoomanv earned 1520 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 1520 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 80 total points
ID: 16869506
There is a dev toolkit from Tinyline for SVG, hope this helps:

http://www.tinyline.com/svgt/
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 1520 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 1520 total points
ID: 16873833
> there is no algorithm
or im not yet aware of
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

715 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