NSImage's writeToFile:atomically: bitmap image file type changes based in the macOS version
NSImage's writeToFile:atomically: bitmap image file type changes based in the macOS version

vitor251093/ObjectiveC_Extension