06-13-2018 22:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

Recovery Runner
12
1
0
06-13-2018 22:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm trying to scale an image in my UI so that it scales without distorting. Typically in SVG code that's done with preserveAspectRatio, but FitBit OS doesn't recognise that attribute, much less does anything with scaling. Here's the code I'm trying:
<image x="0" y="0" preserveAspectRatio="xMidYMid slice" width="100%" height="140" href="buzz.png" load="sync" />
Is there another way to change how an image is scaled on the device?

1 REPLY 1
06-30-2018 07:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


Fitbit Developer
2266
575
1162
06-30-2018 07:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Image resizing on the device isn't very performant. What effect are you trying to achieve?

