Problem when break a file "TIF"

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
coisa2004
Posts: 9
Joined: 2014-02-04T06:40:27-07:00
Authentication code: 6789

Problem when break a file "TIF"

Post 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?
coisa2004
Posts: 9
Joined: 2014-02-04T06:40:27-07:00
Authentication code: 6789

Re: Problem when break a file "TIF"

Post by coisa2004 »

Can help me?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem when break a file "TIF"

Post 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?
snibgo's IM pages: im.snibgo.com
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Problem when break a file "TIF"

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem when break a file "TIF"

Post 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.
snibgo's IM pages: im.snibgo.com
coisa2004
Posts: 9
Joined: 2014-02-04T06:40:27-07:00
Authentication code: 6789

Re: Problem when break a file "TIF"

Post 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?
coisa2004
Posts: 9
Joined: 2014-02-04T06:40:27-07:00
Authentication code: 6789

Re: Problem when break a file "TIF"

Post 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.
coisa2004
Posts: 9
Joined: 2014-02-04T06:40:27-07:00
Authentication code: 6789

Re: Problem when break a file "TIF"

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem when break a file "TIF"

Post by snibgo »

Are the input images compressed with JPEG? (Use "identify verbose in.tif"). Are the output files compressed?
snibgo's IM pages: im.snibgo.com
coisa2004
Posts: 9
Joined: 2014-02-04T06:40:27-07:00
Authentication code: 6789

Re: Problem when break a file "TIF"

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem when break a file "TIF"

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Problem when break a file "TIF"

Post 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.)
snibgo's IM pages: im.snibgo.com
Post Reply