Open peterstace opened 1 year ago
When closing the file, errors can still occur that might not be surfaced during the writes from png.Encode and jpeg.Encode. By returning the error from file.Close(), these cases can be caught.
png.Encode
jpeg.Encode
file.Close()
FYI, something along these lines has been done in "my" fork of gg:
gg
When closing the file, errors can still occur that might not be surfaced during the writes from
png.Encode
andjpeg.Encode
. By returning the error fromfile.Close()
, these cases can be caught.