Jump to content

Screenshot format with corrupt PNG?


fearlessfrog

Recommended Posts

In the 1.5.8 recent release it seems the print screen seems to output a PNG file. What is new is that the PNG seems to have a corrupt image header. Example:

 

https://mudspikefiles.s3.amazonaws.com/PNG_problem.zip

 

Using a popular image processing library to convert it to a jpg, such as ImageMagick

 

> identify -verbose Screen_171203_123000.png

 

identify: Expected 8 bytes; found 0 bytes Screen_171203_123000.png' @ warning/png.c/MagickPNGWarningHandler/1832. identify: Read ExceptionScreen_171203_123000.png’ @ error/png.c/MagickPNGErrorHandler/1806.

identify: corrupt image `Screen_171203_123000.png’ @ error/png.c/ReadPNGImage/4077

 

This means we can't resize/rescale DCS screenshots on the Mudspike forum software.

 

Thanks for any info or help.

Link to comment
Share on other sites

  • ED Team

Hi fearlessfrog

 

I will highlight this to the team, thanks

 

If you wish to change back to jpg you can

 

c:\Users\username\Saved Games\DCS.openbeta\Config\autoexec.cfg

 

if you dont have autoexec.cfg create one.

 

add the line

 

options.graphics.ScreenshotExt = "jpg"

 

That should work

smallCATPILOT.PNG.04bbece1b27ff1b2c193b174ec410fc0.PNG

Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status

Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, HP Reverb G2

Link to comment
Share on other sites

Great - thanks for the quick response.

 

Our forums software converts PNG uploads to JPG previews to speed up big thread load times and the like. The bit it is now failing at is the PNG conversion, as it thinks it is corrupt. I've put in a workaround to turn off that, but it means people will get to see lovely Harriers at 3 MB a pop rather than the measly 200 kb JPEG will used to give them (unless you click on the image).

  • Like 1
Link to comment
Share on other sites

  • ED Team

It has been mentioned in another thread, and I have added it to a bug report for ED

 

Screenshots don't have "end of image = IEND" chunk.

according to PNG 1.2 Specification, PNG files must contain IHDR chunk, one or more IDAT chunks, and an IEND chunk.

http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html

Because of missing the chunk, Twitter says that "this file is invalid".

 

https://forums.eagle.ru/showthread.php?p=3309212#post3309212


Edited by BIGNEWY
  • Like 1

smallCATPILOT.PNG.04bbece1b27ff1b2c193b174ec410fc0.PNG

Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status

Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, HP Reverb G2

Link to comment
Share on other sites

I like this, actually. Can the autoexec.cfg be given a options.graphics.ScreenshotExt = "png" to force them to PNG after this feature gets "fixed"?

 

Also, what are the JPEG quality parameters? This page https://www.digitalcombatsimulator.com/en/support/faq/505/ just says...

 

options.graphics.ScreenshotQuality = “screenshot quality value”

 

...but doesn't describe what the value should be. Integer? From what to what number range? Higher is higher? Are the quotes included?

 

Thanks.

 

Range 1-100

Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2),

ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9)

3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...