Re: Error: Missing Huffman code table entry
Bob Friesenhahn <[email protected]> Tue, 11 Jul 2006 11:06:27 -0500 (CDT)
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 11 Jul 2006, dan1 wrote:
> Hello.
>
> I am seeing sometimes a bug in the conversion of a file, which
> generates a 'Missing Huffman code table entry' error message. If we
> open up the generated file, only a part of it will be there.
For the previous bug report where GM was producing this message, the
files were produced by some other commercial software. The user
isolated the problem to an improper (mix of two versions) installation
of that other software.
> Here is the conversion command that I enter:
>
> convert -quality 100 001-011.tif output_file.jpg
I have run GraphicsMagick under valgrind (memory checker) with this
command and no errors were detected. I am unable to produce the
defective JPEG file. Regardless, a patch similar to the following
might offer some benefit to your ImageMagick:
Index: jpeg.c
===================================================================
RCS file: /GraphicsMagick/GraphicsMagick/coders/jpeg.c,v
retrieving revision 1.218.2.2
diff -u -r1.218.2.2 jpeg.c
--- jpeg.c 10 Mar 2005 05:00:16 -0000 1.218.2.2
+++ jpeg.c 11 Jul 2006 15:58:02 -0000
@@ -1427,6 +1427,8 @@
/*
Initialize JPEG parameters.
*/
+ (void) memset(&jpeg_info,0,sizeof(jpeg_info));
+ (void) memset(&jpeg_error,0,sizeof(jpeg_error));
jpeg_info.client_data=(void *) image;
jpeg_info.err=jpeg_std_error(&jpeg_error);
jpeg_info.err->emit_message=(void (*)(j_common_ptr,int)) JPEGWarningHandler;
======================================
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642