Expand grayscale JPEGs to RGB(A)
And handle grayscale jpeg example file in test suite.
This commit is contained in:
1 parent
7b3ca701e0
commit
572b26a846
4 files changed
+35
-10
No files matched your search
@@ -51,6 +51,7 @@ Blend_BG_Keep :: image.Options{.blend_background, .alpha_add_if_missing}
|
||||
Return_Metadata :: image.Options{.return_metadata}
|
||||
No_Channel_Expansion :: image.Options{.do_not_expand_channels, .return_metadata}
|
||||
|
||||
|
||||
Dims :: struct {
|
||||
width: int,
|
||||
height: int,
|
||||
@@ -2375,6 +2376,13 @@ Basic_JPG_Tests := []Test{
|
||||
{Default, .Unsupported_Frame_Type, {1024, 1024, 3, 8}, 0x_46a29e0f},
|
||||
},
|
||||
},
|
||||
{
|
||||
"emblem-1024-gray", {
|
||||
{Default, nil, {1024, 1024, 3, 8}, 0x_4115d669},
|
||||
{Alpha_Add, nil, {1024, 1024, 4, 8}, 0x_db496297},
|
||||
{No_Channel_Expansion, .Unsupported_Option, {1024, 1024, 1, 8}, 0},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@test
|
||||
|
||||
Reference in new issue
Block a user