ICON preparation for apps and the Bangle JS2 loader. #7323
Unanswered
espruino-discuss2
asked this question in
Bangle.js
Replies: 1 comment
-
Posted at 2021-12-17 by @gfwilliams @hughb I just edited your post as it was telling folks do to slighty the wrong thing. Icons need to be 48x48px for the app loader Posted at 2021-12-17 by HughB Oops. No problem. Posted at 2025-01-26 by mbork 3 years later: this didn't work for me, but when I used "Output as: Image String", it did. Is it only me? Posted at 2025-01-27 by @gfwilliams Thanks - I think there was a typo in the original post - it said "Object String" when there is no such option - he meant "Image String" which is what you found worked? I've just edited it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-12-16 by HughB
I've spotted a couple of people struggling to get the icons right for Bangle JS2.
This can be a bit tricky.
One app supplied a 400x400 .png file as the icon for the App loader page.
Needless to say this did not display as an Icon in the launcher or on the App loader page.
I have just seen another icon be loaded that takes over the whole of the dtlauncher and the icon size is 178x178 pixels.
Here's how I would recommend this is done for the least amount of pain and to maximise success.
This gets displayed next to the App description in the App Launcher.
OPTION A
If you simply want this to be a screenshot of your app then take a screenshot of your app through the IDE.
Connect to your bangle through the IDE and type g.dump() in the left hand side of the screen (this only works on Bangle.js 2).
This will create a 176x176 png file.
Click on it and it should download to your download folder.
You now need to resize it to 48x48px in (eg Microsoft Painbrush, or GIMP on Linux)
OPTION B
Download the image you want to represent your App
Load it into a paint program (eg Microsoft Painbrush, or GIMP on Linux)
Cut it to 48x48 pixels, or resize it to 48x48 pixels if its already square.
https://espruino.github.io/EspruinoWebTools/examples/imageconverter.html
You should end up with a string that is a few hundred characters long - as below.
You then simply cut and paste that into the icon.js file - with no ; on the end.
This gets converted to an image (.img) file by the App Loader when its installed onto your Bangle.
Beta Was this translation helpful? Give feedback.
All reactions