titoxd / wptc-track

WikiProject Tropical Cyclones' track map generator -- see http://en.wikipedia.org/wiki/WP:WPTC/M
22 stars 27 forks source link

Output PNG errors: Suffered Unix->DOS line ending conversion when compiling on MSYS2 #16

Open MagicalDrizzle opened 1 month ago

MagicalDrizzle commented 1 month ago

I have succeeded in compiling track natively for Windows without Cygwin using MSYS2. However the PNGs outputed by it are corrupted - seemingly due to line ending conversion.

wptc-track-master\png>pngcheck -v output.png
File: output.png (419285 bytes)
  File is CORRUPTED.  It seems to have suffered Unix->DOS conversion.

Comparing the pngs themselves with xxd seems to confirm it - the actual image data is the same but there are differences in spots throughout the file. (These are PNGs but with extensions changed to disable embedding) output-lin.png.zip output-win.png.zip

MagicalDrizzle commented 1 month ago

Using dos2unix fixes the file. dos2unix -f output.png -n output1.png