DIGIT-ARC read-only archive · snapshot: July 23, 2026

opening jpg file in C++

11 posts · originally from https://geek.digit.in/community/threads/opening-jpg-file-in-c.46747/

L
legolas Original post #1
Jan 18, 2007 at 7:52 PM
Hi guys,

can any1 show me how to open a jpg file for processing in C++?? I am sick of searching it online!!

/legolas
R
rahul_becks23 #2
Jan 18, 2007 at 8:02 PM
well , u can process an image file in photoshop , never heard about c++.......i think c++ opens codes (i.e. plain text) .
L
legolas #3
Jan 18, 2007 at 8:11 PM
:) I wanted to open the jpg file and process with the information in my code. I wanted to perform the fft of an image. for that i have to open the image and get the data on an array and then i have to start getting the fft. hope u understand now.

/legolas
R
rahul_becks23 #4
Jan 18, 2007 at 8:15 PM
well, then........do this.....
Run ur compiler........
and drag the image file into the compiler.
L
legolas #5
Jan 18, 2007 at 8:19 PM
I am reporting your reply to the moderators. It seems you dont know what is C++ from the way you answered and you are just replying with bogus replies.

Please reply usefully and only if you know.

thks a lot,
/legolas.
Lucky_star
Jan 18, 2007 at 8:19 PM
Search for this header file in google: jpeglib.h
You can get it easily from the Independent Jpeg Group.
Check for the documentation on what decompression functions are available in the above said file.:)
L
legolas #7
Jan 18, 2007 at 8:22 PM
hi lucky_star,

I have opened jpeg files before in C. I just dont remember them. And i dont recollect using any special headers for opening the files. Its just the parameters that i am not able to recollect while using the fopen function.

thks,
legolas.
Lucky_star
Jan 18, 2007 at 8:25 PM
Ok, I will check that and will reply to you soon....;)
Pragadheesh
Jan 18, 2007 at 10:09 PM
hope these links 'll help u...:)

*cimg.sourceforge.net/reference/group__cimg__tutorial.html

*cimg.sourceforge.net/
B
Jan 27, 2007 at 8:33 PM
CAN ANY ONE TELL ME how to open a file in C. ( file is more than 8.3 format)

I am using win Xp and in C it is opening only files having 8.3 format.

what changes i have to make so that it will take long file names...
S
Jan 27, 2007 at 10:21 PM
Have a look at these sites they might help u:-♥♣♠•○
*ce.sharif.edu/~ahmadinejad/jpeg/
*www.cs.sfu.ca/~bbastani/personal/courses/820/Assg2/
*groups.google.com/group/microsoft....peg+file+in+C++&rnum=1&hl=en#5a1bdae40155b205