When I try to open these files in Adobe Photoshop, I get the error
message
"Could not complete your request because reading spatial/lossless JPEG
files is not implemented."
If not, what other open source libraries can I use to read lossless
JPEG/JFIF files?
> Hi,
> Can the OpenJPEG library help me import lossless JPEG/JFIF files?
No, because it is for JPEG 2000 rather than original JPEG/JFIF. You
need IJG JPEG 6b with the addition of the lossless JPEG source patches
from
"ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/delegates/ljpeg-6b.tar.gz".
Bob
--
Bob Friesenhahn
bfri...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
The original patch (from oceana) is bogus, check ljpeg at:
http://jpeg.sf.net ->
http://sourceforge.net/apps/mediawiki/jpeg/index.php?title=Main_Page
Or to some extent I think you can use pvrg
eg:
http://packages.qa.debian.org/p/pvrg-jpeg.html
HTH
--
Mathieu
In what way is it bogus (honest question)?
It seems that there are quite a few competing variants of IJG JPEG
now. Besides the ones listed in this Wiki, official IJG JPEG is now
up to release 8a, still lacks lossless support, and seems highly
unlikely to ever support it. Debian Linux (and others) have been
eager to get started on the upgrade track to IJG JPEG 8a.
I -honestly- do not remember. This was done ages ago. If you have time
and intest compare the 'official ijg6b+lossless patch':
svn co http://jpeg.svn.sourceforge.net/svnroot/jpeg/ljpeg/
with what I had to do in GDCM (this contains ijg6b+lossless+bug for
signed short + lossless bug):
svn co http://gdcm.svn.sourceforge.net/svnroot/gdcm/trunk/Utilities/gdcmjpeg
I believe DCMTK also contains a patched ijg6b+lossless patch
>> http://jpeg.sf.net ->
>> http://sourceforge.net/apps/mediawiki/jpeg/index.php?title=Main_Page
>
> It seems that there are quite a few competing variants of IJG JPEG now.
> Besides the ones listed in this Wiki, official IJG JPEG is now up to
> release 8a, still lacks lossless support, and seems highly unlikely to ever
> support it.
This is also my understanding.
> Debian Linux (and others) have been eager to get started on the
> upgrade track to IJG JPEG 8a.
Yup. But those people only really care about lossy 8bits. I think 8a
is somewhat backward compatible in that sense.
--
Mathieu
I get back the following error from jpeglib:
"Invalid lossless parameters Ss=1 Se=63 Ah=0 Al=0"