std/handsum: tweak magic identifier bytes

This commit is contained in:
Nigel Tao committed 2026-05-01 23:23:21 +10:00
1 parent acbf9d2ecf
commit 38a5e853c9
17 files changed
+159 -84

No files matched your search

+7 -1
View File
@@ -25,7 +25,13 @@ func makePlainColorImage(grayValue uint8) image.Image {
}
func testRoundTrip(tt *testing.T, src image.Image, pixelValue uint8, justCheckThatItsGray bool) {
for c := Color(0); c < 2; c++ {
colors := []Color{
ColorGray,
ColorRGB,
// TODO: ColorRGBA,
}
for _, c := range colors {
for q := Quality(0); q < 4; q++ {
buf := &bytes.Buffer{}
err := Encode(buf, src, &EncodeOptions{