Rework libpng Auxiliary support to address numerous problems (#636)

This commit is contained in:
Chuck Walbourn
2025-10-21 23:02:38 -07:00
committed by GitHub
parent 0b4d5f6541
commit 264931b2e1
6 changed files with 214 additions and 67 deletions

View File

@@ -591,7 +591,7 @@ namespace
#ifdef USE_LIBPNG
else if (_wcsicmp(ext.c_str(), L".png") == 0)
{
return LoadFromPNGFile(fileName, &info, *image);
return LoadFromPNGFile(fileName, PNG_FLAGS_NONE, &info, *image);
}
#endif
else
@@ -643,7 +643,7 @@ namespace
#endif
#ifdef USE_LIBPNG
case CODEC_PNG:
return SaveToPNGFile(*image, fileName);
return SaveToPNGFile(*image, PNG_FLAGS_NONE, fileName);
#endif
default:
return SaveToWICFile(*image, WIC_FLAGS_NONE, GetWICCodec(static_cast<WICCodecs>(codec)), fileName);