Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

URGENT,how to convert PGM image or raw  format to JPG,PNG format,

Thread view: 
bharath - 13 Mar 2007 20:26 GMT
please give source code or method to convert raw or PGM to JPG,PNG
format.
this is one of my module in academic project.
Knute Johnson - 13 Mar 2007 20:57 GMT
> please give source code or method to convert raw or PGM to JPG,PNG
> format.
> this is one of my module in academic project.

http://netpbm.sourceforge.net/doc/pgm.html

Signature

Knute Johnson
email s/nospam/knute/

Joshua Cranmer - 13 Mar 2007 22:27 GMT
>> please give source code or method to convert raw or PGM to JPG,PNG
>> format.
>> this is one of my module in academic project.
>
> http://netpbm.sourceforge.net/doc/pgm.html

Or, if you are on linux and have appropriate man pages, man pgm.

PNG specification can be obtained from
http://www.w3.org/TR/2003/REC-PNG-20031110/, JPG from
http://www.digicamsoft.com/itu/itu-t81-1.html, GIF from
http://www.w3.org/Graphics/GIF/spec-gif89a.txt, and Windows' BMP from
http://www.digicamsoft.com/bmp/bmp.html. For more information, Wikipedia
has detailed information and a list of relevant links (the sources for
those I gave you).

Alternatively, reading up on javax.imageio could save the trouble of
reading/writing PNG, JPG, GIF, and BMP for you, although you'll have to
still churn PGM yourself.

As a final note, I don't give out source code for how to do XXX unless
I'm fixing someone else's code. It's better to work it out on your own
with occasional guidance.
a24900@googlemail.com - 13 Mar 2007 21:41 GMT
> please give source code or method to convert raw or PGM to JPG,PNG
> format.
> this is one of my module in academic project.

If it is so urgent, start writing code.
Thomas Fritsch - 16 Mar 2007 11:52 GMT
> please give source code or method to convert raw or PGM to JPG,PNG
> format.
> this is one of my module in academic project.

Here is an excellent answer (although posted to another thread), which
covers all aspects of your question:
<http://groups.google.com/group/comp.lang.java.help/msg/74dd172d5d70da58>

Signature

Thomas



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.