Link to home
Start Free TrialLog in
Avatar of liorliat
liorliat

asked on

code for jpg manipulation

i need a source code for mnipulating jpg images. iwant to paste a couple of jpgs on a different larger size jpg.

the source will get the jpgs paths as arguments, and execute the copy and paste.
Avatar of Tommy Hui
Tommy Hui

Go to http://www.ijg.org for a library that can manipulate JPEG files.
Avatar of liorliat

ASKER

i'm sorry, but i have been informed that the application sould run on linux/unix, so i'll ask this question on linux.  about ijg,the only code i could find was JPEG compression and decompression. nothing about other manipulations. i'll be glad if you instruct me to a specific place to get code from.
thanks  :)
ASKER CERTIFIED SOLUTION
Avatar of hougaard
hougaard

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i know the algorithm, i need the code...  i know it's a lot of code,i need somthing written, like the written files of Tom Lane and the independed jpg group.(i didn't find there what i was looking for).  
thanks a lot   :)

See to http://user.cs.tu-berlin.de/~uzadow/paintlib/ 
for C++ code of jpg manipulations
hougaard, thanks you 4 your answer. i'm sorry about the confused requests....   this time it's finall...   i need a  c  code for compression\decompression jpg files.  i have the IJG code, but it's too much, and too big for me.
can you help me with a precise code ?
thanks(again) and sorry(again) for the bother..
:)
 

The best stuff is the IJG code, here is what you need to do with it!

1. Read the libjpeg.doc document ... Good starter info
2. Compile the example.c (Has read and write jpeg file functions!)
2.1 In order to this you will have to build the libjpeg.lib (the example.c includes the libjpeg.h)
2.2 Study the way the library stores the pixels - from this points it becomes easy to do what you want!
4.Change the example.c to include a main()
5. Have a Party!