Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
18 Views

Need to manipulate JPEG image

I assume I would have to open the file as a BINARY type.

Any idea where I can find some detail about the format ?

The stuff I want to do is not included in their typical software for opening the file directly.

0 Kudos
4 Replies
Highlighted
Beginner
18 Views

loadimage and StretchBlt do work fine, but only with bmp files, not with jpeg files.

I welcome any information to make then work with jpeg  

0 Kudos
Highlighted
Valued Contributor II
18 Views

JPEG files are binary files with a compression scheme. There are probably a lot of libraries out there that you can use to manipulate them. ImageMagick is certainly a good candidate (http://www.imagemagick.org/script/index.php). I do not know of Fortran bindings, but they should not be too hard to write.

Wikipedia has a long page on the subject: https://en.wikipedia.org/wiki/JPEG

Depending on the amount of effort you want to put in, interfacing to an existing library may or may not be an attractive solution.

 

0 Kudos
Highlighted
Black Belt
18 Views

The IPP library contains a number of routines for image processing. See Vol. 2 of the IPP documentation:

     https://software.intel.com/en-us/node/503692

 

0 Kudos
Highlighted
New Contributor I
18 Views

OK, thanks for your responses !

 

I will take a look at the stuff -

What I need to do is not normally supported, since it involves some encryption.

 

I basically need to get the "raw" pixel format, so I can load it into a Fortran program.

0 Kudos