Proposal Details
The image/jpeg package contains TODO comments in the writer.go file mentioning "Switch on m.ColorModel() instead of type":
These TODO comments have been left unresolved for about ten years.
I am considering addressing these comments by implementing a switch statement on m.ColorModel().
Concerns:
- Are there any specific reasons why these comments have not been addressed for a long time?
- Should we account for handling *image.Gray16 images while implementing this change?