LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2013, 06:26 AM   #1
reza_zah1991
Member
 
Registered: Mar 2013
Location: Qom , Iran
Distribution: opensuse,lubuntu
Posts: 32

Rep: Reputation: Disabled
Thumbs up image conversion


Hi Folks,,

i want to read a image (like jpg)
& convert it to another Extension & format (like png)

and i want do it in depth,,

anybody have information??
 
Old 11-02-2013, 06:31 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
http://www.imagemagick.org/script/convert.php
 
Old 11-02-2013, 06:37 AM   #3
reza_zah1991
Member
 
Registered: Mar 2013
Location: Qom , Iran
Distribution: opensuse,lubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thumbs up

My goal & porpose (in depth) is like what mathlab do,,,

read a matris of picture and header & change these to another Algorithm,,

i want do the conversion by my hand,,

any Suggestion??
 
Old 11-02-2013, 03:48 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
So read the file with libjpeg and save it with libpng? API docs and examples should be be easily available in the tarballs and online.

And if even that's too high level for you, then I'm sure the file format specifications are linked on Wikipedia.

Last edited by dugan; 11-02-2013 at 03:50 PM.
 
Old 11-02-2013, 04:45 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
have a look at the image library
CImg.h
and a large project built on it
Gmic ( was GRAYCsteration)

the terminal version of Gmic has 100% completely replaced imagemagick for me .

Code:
gmic image.jpg -o image.png
--- or for a 2kx2k 32 bit floating point RAW to a 32 bit tiff image 
gmic -type float image.raw,2048,2048 -o image.tiff
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linx image conversion for nanflash (gang programming) lxpwj Programming 2 09-27-2009 09:39 PM
Acronis Image -> VM Conversion -> boot issues mannpt Linux - Server 9 07-30-2009 04:29 PM
3D image conversion software? OneManOfBits Linux - Software 4 09-23-2008 09:29 AM
ghostcast image file conversion supradrvr Linux - General 0 09-23-2007 10:27 AM
Batch image conversion mrsolo Linux - Software 1 09-06-2004 04:47 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration