Page 1 of 1

Problem when break a file "TIF"

Posted: 2014-02-04T06:42:28-07:00
by coisa2004
Hello everybody, I am facing a problem. Previously I had version 6.7.7 and when I broke one "TIF" 900kb of it generated other "TIF" 70-80kb with the current version of the imagemagick "TIF" are broken with a size of 4.2 mb anyone knows me say why?

Re: Problem when break a file "TIF"

Posted: 2014-02-11T05:32:01-07:00
by coisa2004
Can help me?

Re: Problem when break a file "TIF"

Posted: 2014-02-11T05:41:22-07:00
by snibgo
Sorry, I don't understand the question.

What command did you use? What is the problem? Can you provide a file that shows the problem?

Re: Problem when break a file "TIF"

Posted: 2014-02-11T07:51:48-07:00
by glennrp
Are you comparing the result from a Q8 build of ImageMagick-6.7.7 with the result from
a Q16 build of the current version? This just a guess; there's not much to go on in the
bug report. Aside from having a larger file size than you expected, does the result look OK?

Re: Problem when break a file "TIF"

Posted: 2014-02-11T08:25:21-07:00
by snibgo
Another possibility: perhaps size is the only problem, caused by a difference in compression methods. Converting from one tiff to another will use the same compression method, but not if the method was "jpeg". Perhaps "-compress Jpeg" or other method will solve the problem.

I don't use jpeg compression for intermediate results.

Re: Problem when break a file "TIF"

Posted: 2014-02-11T11:02:50-07:00
by coisa2004
I'll be more specific, I have a tif file 900kb 10 pages, using the comand: convert name_of_tif.tif name_tif_% d.tif

In version 6.7.7 was generating 10 pages of 90 kb.

In the current version is generating 10 pages 4.2 mb.

The command executed is the same.

The strange thing is that nothing has changed except the new ImageMagick install mode.


Any suggestions?

Re: Problem when break a file "TIF"

Posted: 2014-02-11T11:04:35-07:00
by coisa2004
glennrp wrote:Are you comparing the result from a Q8 build of ImageMagick-6.7.7 with the result from
a Q16 build of the current version? This just a guess; there's not much to go on in the
bug report. Aside from having a larger file size than you expected, does the result look OK?
No. I did the tests on both Q8 and Q16 and the result is the same.

Re: Problem when break a file "TIF"

Posted: 2014-02-11T11:07:12-07:00
by coisa2004
What I found most odd was that after installing the current version, I removed it and installed version 6.7.7 and continued to generate 4.2 mb files. I do not know what else to do.

Re: Problem when break a file "TIF"

Posted: 2014-02-11T11:09:53-07:00
by snibgo
Are the input images compressed with JPEG? (Use "identify verbose in.tif"). Are the output files compressed?

Re: Problem when break a file "TIF"

Posted: 2014-02-11T11:29:10-07:00
by coisa2004
snibgo wrote:Are the input images compressed with JPEG? (Use "identify verbose in.tif"). Are the output files compressed?
The suggested command generated the output:

a.tif[0] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.016u 0:00.003
a.tif[1] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.016u 0:00.006
a.tif[2] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.007
a.tif[3] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.010
a.tif[4] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.012
a.tif[5] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.014
a.tif[6] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.017
a.tif[7] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.019
a.tif[8] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.021
a.tif[9] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.024
a.tif[10] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.025
a.tif[11] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.027
a.tif[12] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.031
a.tif[13] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.034
a.tif[14] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.035
a.tif[15] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.038
a.tif[16] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.041
a.tif[17] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.042
a.tif[18] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.045
a.tif[19] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.049
a.tif[20] TIFF 4960x7014 4960x7014+0+0 1-bit Bilevel Gray 972KB 0.000u 0:00.051

what does that mean?

Re: Problem when break a file "TIF"

Posted: 2014-02-11T11:30:14-07:00
by fmw42
I think compression of tif files gets changed to none for some reason. As snibgo says, check the input and output compressions using identify -verbose yourimage. Find what the input compression is and add -compress XXX to match or to whatever you want.

Re: Problem when break a file "TIF"

Posted: 2014-02-11T11:51:46-07:00
by snibgo
Sorry, I forgot the "-":

Code: Select all

identify -verbose in.tif
(I have a vague memory that automatic JPEG compression for tiffs was turned off after someone said that IM should never lose data by default.)