I was copying a bunch of png files to a separate folder, which I was going to gzip and then move to a different system. I was able to do that, but all those png files that I transferred are giving a crc error in chunk idat. All these images are actually screenshots. I am able to take new screenshots but all of those which I had transferred have a png error in them. I am facing this issue on both the origin and the destination where I transferred them.
According to this answer : Fatal error reading PNG image file: Not a PNG file
I have tried reinstalling libpng12-dev and libpng12-0, but it does not work.
Here is the detailed output of a png file that I am unable to open:
$ pngcheck -v myfile.png
File: myfile.png (80028 bytes)
chunk IHDR at offset 0x0000c, length 13
1090 x 306 image, 24-bit RGB, non-interlaced
chunk sBIT at offset 0x00025, length 3
red = 8 = 0x08, green = 8 = 0x08, blue = 8 = 0x08
chunk tEXt at offset 0x00034, length 25, keyword: Software
chunk IDAT at offset 0x00059, length 8192
zlib: deflated, 32K window, default compression
CRC error in chunk IDAT (computed 550cf20e, expected 24c50000)
ERRORS DETECTED in myfile.png
I have also tried opening these files with Google-Chrome, I can see only 20% of the image, rest of the image is clipped with a green line.
Is there a way I can solve this ?
OS_version : Ubuntu 16.04