zsiki / GeoEasy

land surveying calculation, network adjustment, digital terrain models, regression calculation
http://digikom.hu/english/geo_easy_e.html
GNU General Public License v2.0
75 stars 35 forks source link

geoeasy_foss4g.odp: 10000201000001AC00000050CBA290588C6B855A.png corrupt #120

Closed zvezdochiot closed 5 years ago

zvezdochiot commented 5 years ago

Pictures/10000201000001AC00000050CBA290588C6B855A.png corrupt

Use:

$ 7z x -ogeoeasy_foss4g geoeasy_foss4g.odp
$ cd geoeasy_foss4g

to research presentation components.

$ convert 10000201000001AC00000050CBA290588C6B855A.png 10000201000001AC00000050CBA290588C6B855A.cnv.png 
convert: magick/quantum.c:219: DestroyQuantumInfo: «quantum_info != (QuantumInfo *) ((void *)0)»
$ pngtopnm 10000201000001AC00000050CBA290588C6B855A.png >10000201000001AC00000050CBA290588C6B855A.png.pnm
pngtopnm: fatal libpng error: Read Error
pngtopnm: setjmp returns error condition
$ advpng -z 10000201000001AC00000050CBA290588C6B855A.png 
Error reading the chunk size on 10000201000001AC00000050CBA290588C6B855A.png [at void throw_png_error():pngex.h:37]
$ optipng 10000201000001AC00000050CBA290588C6B855A.png 
OptiPNG 0.6.4: Advanced PNG optimizer.
Copyright (C) 2001-2010 Cosmin Truta.

** Processing: 10000201000001AC00000050CBA290588C6B855A.png
Warning: Can't read the input file or unexpected end of file
428x80 pixels, 4x8 bits/pixel, RGB+alpha
Reducing image to 3x8 bits/pixel, RGB
Recoverable errors found in input. Rerun OptiPNG with -fix enabled.
Error: Previous error(s) not fixed

** Status report
1 file(s) have been processed.
1 error(s) have been encountered.

$ pngreencode 10000201000001AC00000050CBA290588C6B855A.png 10000201000001AC00000050CBA290588C6B855A.re.png 
decoder error 30: chunk length too large, chunk broken off at end of file
$ pngdetail 10000201000001AC00000050CBA290588C6B855A.png 
Filesize: 12396 (12K)
Width: 428
Height: 80
Interlace method: 0
Color type: 6 (RGBA)
Bit depth: 8
Decoding error 30: chunk length too large, chunk broken off at end of file
Ignoring the error: enabling ignore_end
Successfully ignored the error
Chunk types: IHDR IDAT 
Chunk sizes: 13 12351 
Error: no IEND chunk

After correction:

$ 7z a odp.zip *
$ mv odp.zip ../geoeasy_foss4g.odp

Good luck.

PS: https://sourceforge.net/projects/sevenzip/

zvezdochiot commented 5 years ago

Fix #121 (use: https://en.wikipedia.org/wiki/Pngcrush)