Skip to content

Commit 8981023

Browse files
author
techpoet
committed
add origv2 device specific
additional case statement for the SD origv2. Tested with my SD
1 parent ea3d7d7 commit 8981023

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

image.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ func deviceSpecifics(devName string, width, height int) (*gift.GIFT, error) {
3636
gift.Rotate90(),
3737
gift.FlipVertical(),
3838
), nil
39+
case "Streamdeck (original v2)":
40+
return gift.New(
41+
gift.Resize(width, height, gift.LanczosResampling),
42+
gift.Rotate180(),
43+
), nil
3944
default:
4045
return nil, errors.New(fmt.Sprintf("Unsupported Device: %s", devName))
4146
}

0 commit comments

Comments
 (0)