bitfocus / companion

Bitfocus Companion enables the reasonably priced Elgato Stream Deck and other controllers to be a professional shotbox surface for an increasing amount of different presentation switchers, video playback software and broadcast equipment.
http://bitfocus.io/companion
Other
1.61k stars 503 forks source link

[FEATURE] Automatically resize button images that exceed maximum dimensions #1545

Closed estilles closed 3 years ago

estilles commented 3 years ago

Describe the feature At the moment, when uploading a button image that is larger than 72x72 we get an error message indicating; Image must have the following dimensions: 72x72.

I propose automatically resizing such images the maximum dimensions if any of the following conditions are met:

Usecases Not a necessity, just a time saver. I recently acquired a stream deck icon pack, but all the icons are 288x288.


PR to follow, but I do have a question. Should I be submitting the PR against the new React WebUI, the legacy UI or both?

Julusian commented 3 years ago

Implemented in #1546

kjetilpp commented 3 years ago

I have a similar issue, use icons from materialdesignicons.com that are 48x48, on the Stream deck Elgato software it works fine, but migrating to Companion we have a problem with "Image dimensions must be at least 72x58" Maybe auto resizing small icons too?

estilles commented 3 years ago

Hey @kjetilpp, that's an interesting use case. I never thought of upscaling smaller images/icons. Does the native Stream Deck software display icon as-is at 48x48 (padding the image to fill) or does it upscale it?

kjetilpp commented 3 years ago

I think it’s using 48x48 as-is, the icons in \AppData\Roaming\Elgato\StreamDeck\ProfilesV2\XX.sdProfile\Profiles\XXX.sdProfile\X.X\CustomImages is still at 48x48, if i change the icon directly in the folder, is changes on the stream deck.

estilles commented 3 years ago

Okay. I'll look into this. This issues was closed months ago. I suggest you create a new ticket with a feature request so we can track the progress.

kjetilpp commented 3 years ago

Done #1774