scantailor-advanced
scantailor-advanced copied to clipboard
faulty TIFF files
I've been using v 2019.8.16
I'm finding that the program is producing output TIFF files that are faulty - they are not readable by my image program (Corel Paintshop Pro) and are causing XNview to simply crash.
The output options were the default 600dpi but changed from b/w to output in color.
I don't have the ability to look at the TIFF files otherwise to determine the problem. They were quite big files - a scan of a broadsheet newspaper. I should try again outputting at 300 rather than the defaut 600 dpi.
Would be great if you attach an example of such faulty file.
Happy to do so. I can't attach any here - tiff's apparently are not supported so I'll post the work on dropbox here: https://www.dropbox.com/scl/fo/h56ssuk4q557c5vshltds/h?rlkey=tla955w5dxd7mwgl1w32zejr7&dl=0 There are 5 that I cannot read, but two (numbers 002 & 003) that I can.
I tried and I can open your file in Affinity Photo. It used 19GB of RAM but everything felt smooth. I'm on a m1 max macbook running macOS 12.
Odd that the dropbox folder has only one file in it rather than the several I referred to . In any case I"ve removed it now, but I can confirm that I cannot read it and Windows reports that it is "corrupted". I've posted a different one here: https://cloud.nmerchant.ca/s/zQadXLNHtFNiXER and I can confirm that this one too is "corrupted". Are there Tiff file types that Mac's can read but not Windows? All too odd for me I'm afraid but it does make the program less useful to me.
I can open the file just fine. I won't necessarily conclude that this is a OS fault - had you tried using other softwares?
Affinity photos are also available on Windows. As a last resort you can try that out.
identify -verbose /Users/jin/Downloads/pacemaker\ story-005.tiff
Image:
Filename: /Users/jin/Downloads/pacemaker story-005.tiff
Permissions: rw-r--r--
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 35096x43682+0+0
Resolution: 600x600
Print size: 58.4933x72.8033
Units: PixelsPerInch
Colorspace: sRGB
Type: TrueColor
Endianness: LSB
Depth: 8-bit
Channels: 3.0
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Channel statistics:
Pixels: 1533063472
Red:
min: 27 (0.105882)
max: 254 (0.996078)
mean: 196.432 (0.77032)
median: 229 (0.898039)
standard deviation: 57.6382 (0.226032)
kurtosis: -0.232566
skewness: -1.19414
entropy: 0.764186
Green:
min: 16 (0.0627451)
max: 209 (0.819608)
mean: 157.882 (0.619146)
median: 187 (0.733333)
standard deviation: 50.5595 (0.198273)
kurtosis: -0.450821
skewness: -1.09917
entropy: 0.78352
Blue:
min: 0 (0)
max: 200 (0.784314)
mean: 136.043 (0.533502)
median: 161 (0.631373)
standard deviation: 47.9345 (0.187978)
kurtosis: -0.641794
skewness: -0.973386
entropy: 0.830195
Image statistics:
Overall:
min: 0 (0)
max: 254 (0.996078)
mean: 163.452 (0.640989)
median: 192.333 (0.754248)
standard deviation: 52.0441 (0.204094)
kurtosis: -0.441727
skewness: -1.0889
entropy: 0.792633
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33,0.03)
green primary: (0.3,0.6,0.1)
blue primary: (0.15,0.06,0.79)
white point: (0.3127,0.329,0.3583)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 35096x43682+0+0
Dispose: Undefined
Iterations: 0
Compression: LZW
Orientation: TopLeft
Properties:
date:create: 2024-05-10T03:22:17+00:00
date:modify: 2024-05-10T00:41:02+00:00
date:timestamp: 2024-05-10T03:25:06+00:00
signature: ad8ad68ab2ef733d7dc3a15b6c5eef97ff0a7e91fbad44f507b29c8112b44f7c
tiff:alpha: unspecified
tiff:endian: lsb
tiff:photometric: RGB
Artifacts:
verbose: true
Tainted: False
Filesize: 2.59972GiB
Number pixels: 1.53306G
Pixel cache type: Memory
Pixels per second: 58.415MP
User time: 22.000u
Elapsed time: 0:27.244
Version: ImageMagick 7.1.1-29 Q16-HDRI aarch64 21991 https://imagemagick.org
It seems like ImageMagick can open the file, I don't think the file is corrupted. Your software probably has a bug.
I have tried a variety of different programs - 6 in all. All refuse to open it, stating 'bad file'. This includes 'ImageMagick Display'
I have no further understanding of what is going on. Perhaps a problem with my system but it seem unlikely that every piece of software I have 'has a bug'.
You can try to report the errors to the relevant developers, and they might be able to fix it - perhaps it's quick fix! What is the exact error you get? Sometimes "bad file" can mean other things depending on how errors are handled. Perhaps a malloc
call fails because you are out of memory?
What's your system configuration? How much RAM do you have?
As I said, as a last resort, try out Affinity Photos. They offer free trials. Even if it fails, this might give us more information to work on.
The resolution of the image is ridiculous (1.53 giga pixels). When I change it to something more manageable (realistic for an ordinary newspaper/magazine scan using a book scanner), I am able to open it with no problems. https://drive.google.com/file/d/1EbBq7q24l5yz4OrEL5dsZkwY7ecT87Md/view?usp=sharing Can you share the source image? Has someone tried to upscale the image?