Error message while converting .tif to .jpg

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
limonair
Posts: 3
Joined: 2014-10-13T01:12:24-07:00
Authentication code: 6789

Error message while converting .tif to .jpg

Post by limonair »

Hello,

I got a bunch of errors while converting a .tif file to .jpg. (See at the bottom of this message the command and result)
The image toto.jpg is nevertheless created and looks perfectly good.

The input image is maybe not perfect because it comes from a scanning software which add some informations at the begining of the file.
I removed the first lines manually in Notepad++ so the file starts with 0x49 49 2a 00. TIFF format description.

Any idea why I got these error messages ?

Configuration :
ImageMagick-6.8.9-8-Q16-x86-windows.zip (Portable Win32 static at 16 bits-per-pixel. Just copy to your host and run (no installer, no Windows registry entries).)
Windows 7 Professional SP1

Code: Select all

D:\Users\jeremie.prudhomme\Downloads\ImageMagick-6.8.9-8-Q16-x86-windows>convert.exe ./test/00000056.tif ./test/toto.jpg
convert.exe: Bad code word at line 1928 of strip 0 (x 82). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1928 of strip 0 (got 82, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1941 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1941 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1942 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1942 of strip 0 (got 1694, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1943 of strip 0 (x 12). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1943 of strip 0 (got 12, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1944 of strip 0 (x 11). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1944 of strip 0 (got 11, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1945 of strip 0 (x 10). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1945 of strip 0 (got 10, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1946 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1947 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1948 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1949 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1952 of strip 0 (got 3380, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1967 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1967 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1968 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1969 of strip 0 (x 1693). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1969 of strip 0 (got 1693, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1971 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1971 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1972 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1974 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1974 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1979 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1985 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1986 of strip 0 (x 1685). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1986 of strip 0 (got 1685, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1987 of strip 0 (x 1684). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1987 of strip 0 (got 1684, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 1988 of strip 0 (x 1683). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 1988 of strip 0 (got 1683, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1989 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1994 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 1996 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2000 of strip 0 (x 31). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2000 of strip 0 (got 31, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2005 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2006 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2007 of strip 0 (x 0). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2007 of strip 0 (got 0, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2023 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2025 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2026 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2026 of strip 0 (got 1694, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2027 of strip 0 (x 1693). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2027 of strip 0 (got 1693, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2034 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2034 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2037 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2038 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2050 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2053 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2057 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2057 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2061 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2061 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2069 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2072 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2072 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2073 of strip 0 (x 1693). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2073 of strip 0 (got 1693, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2074 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2075 of strip 0 (x 1692). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2075 of strip 0 (got 1692, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2076 of strip 0 (x 1691). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2076 of strip 0 (got 1691, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2078 of strip 0 (got 1730, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2079 of strip 0 (x 31). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2079 of strip 0 (got 31, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2083 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2083 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2086 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2086 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2087 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2088 of strip 0 (got 1699, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Uncompressed data (not supported) at line 2089 of strip 0 (x 31). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2089 of strip 0 (got 31, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2095 of strip 0 (got 2094, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2096 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2100 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2101 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2105 of strip 0 (x 41). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2105 of strip 0 (got 41, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2106 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2106 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2111 of strip 0 (got 1698, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2112 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2112 of strip 0 (got 1694, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2114 of strip 0 (got 1699, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2119 of strip 0 (got 1698, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2120 of strip 0 (x 122). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2120 of strip 0 (got 122, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2123 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2123 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2126 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2127 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Uncompressed data (not supported) at line 2128 of strip 0 (x 8). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2128 of strip 0 (got 8, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2133 of strip 0 (got 1706, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2135 of strip 0 (x 57). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2135 of strip 0 (got 57, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2136 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2138 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2143 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2144 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2146 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2148 of strip 0 (x 56). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2148 of strip 0 (got 56, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2153 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2155 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2156 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2158 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2161 of strip 0 (x 73). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2161 of strip 0 (got 73, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2164 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2169 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2170 of strip 0 (got 1698, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2171 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2171 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2173 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2173 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2175 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2177 of strip 0 (got 1894, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2179 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2181 of strip 0 (got 1699, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2186 of strip 0 (got 1698, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2193 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2193 of strip 0 (got 1694, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2196 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2196 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2197 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2197 of strip 0 (got 1694, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2198 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2199 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2199 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2208 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2216 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2225 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2226 of strip 0 (got 3232, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2227 of strip 0 (got 1698, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2228 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2228 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2235 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2241 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2245 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2247 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2247 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2248 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2248 of strip 0 (got 1694, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2258 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2258 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2259 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2259 of strip 0 (got 1694, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2260 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2263 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2263 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2283 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2283 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2286 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2286 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2287 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2295 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2296 of strip 0 (x 1692). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2296 of strip 0 (got 1692, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2298 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2298 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2302 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2302 of strip 0 (got 1695, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2303 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2304 of strip 0 (x 1693). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2304 of strip 0 (got 1693, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2306 of strip 0 (got 1702, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2307 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2308 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2310 of strip 0 (got 1703, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Bad code word at line 2315 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Premature EOL at line 2315 of strip 0 (got 1694, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2316 of strip 0 (got 1712, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2317 of strip 0 (got 1701, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2321 of strip 0 (got 1706, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2328 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2329 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2332 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2333 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2338 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2339 of strip 0 (got 1697, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2340 of strip 0 (got 1698, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2342 of strip 0 (got 1707, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
convert.exe: Line length mismatch at line 2343 of strip 0 (got 1698, expected 1696). `Fax4Decode' @ warning/tiff.c/TIFFWarnings/857.
D:\Users\jeremie.prudhomme\Downloads\ImageMagick-6.8.9-8-Q16-x86-windows>
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error message while converting .tif to .jpg

Post by fmw42 »

most are just warnings. try adding -quiet to your command line. did the file get converted OK?
limonair
Posts: 3
Joined: 2014-10-13T01:12:24-07:00
Authentication code: 6789

Re: Error message while converting .tif to .jpg

Post by limonair »

fmw42 wrote:most are just warnings. try adding -quiet to your command line. did the file get converted OK?
I already tried with -quiet, I got less error lines, I think only the warnings are disappearing.
I am not at work now so I can not try and copy you the result.

The file is converted ok, yes.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error message while converting .tif to .jpg

Post by fmw42 »

When you get a chance, please upload the input image to some free hosting service such as dropbox.com and put the URL here. Also please supply your exact command line so we can try to reproduce your results and check your input image. But it kind of looks like a malformed input tif image. People do not really conform to the proper tiff standards when creating tiffs and this is a common problem.
limonair
Posts: 3
Joined: 2014-10-13T01:12:24-07:00
Authentication code: 6789

Re: Error message while converting .tif to .jpg

Post by limonair »

With the -quiet option, I got the following result :

Code: Select all

D:\Users\jeremie.prudhomme\Downloads\ImageMagick-6.8.9-8-Q16-x86-windows>convert.exe -quiet ./test/00000056.tif ./test/toto.jpg
convert.exe: Bad code word at line 1928 of strip 0 (x 82). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1941 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1942 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1943 of strip 0 (x 12). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1944 of strip 0 (x 11). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1945 of strip 0 (x 10). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1967 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1969 of strip 0 (x 1693). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1971 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1974 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1986 of strip 0 (x 1685). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1987 of strip 0 (x 1684). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 1988 of strip 0 (x 1683). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2000 of strip 0 (x 31). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2007 of strip 0 (x 0). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2026 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2027 of strip 0 (x 1693). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2034 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2057 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2061 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2072 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2073 of strip 0 (x 1693). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2075 of strip 0 (x 1692). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2076 of strip 0 (x 1691). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2079 of strip 0 (x 31). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2083 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2086 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Uncompressed data (not supported) at line 2089 of strip 0 (x 31). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2105 of strip 0 (x 41). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2106 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2112 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2120 of strip 0 (x 122). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2123 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Uncompressed data (not supported) at line 2128 of strip 0 (x 8). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2135 of strip 0 (x 57). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2148 of strip 0 (x 56). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2161 of strip 0 (x 73). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2171 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2173 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2193 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2196 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2197 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2199 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2228 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2247 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2248 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2258 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2259 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2263 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2283 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2286 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2296 of strip 0 (x 1692). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2298 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2302 of strip 0 (x 1695). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2304 of strip 0 (x 1693). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
convert.exe: Bad code word at line 2315 of strip 0 (x 1694). `Fax4Decode' @ error/tiff.c/TIFFErrors/561.
D:\Users\jeremie.prudhomme\Downloads\ImageMagick-6.8.9-8-Q16-x86-windows>
About uploading the image, I can't, because it's an image with informations from my company and I'm not allowed to send it online.
How can I investigate to see if the tiff standard is not applied ? Maybe you can give me some tips ?
Post Reply