Quantcast
Channel: Pebble Watchapp Directory - Pebble Forums
Viewing all articles
Browse latest Browse all 5890

[WatchApp][Proof of concept] Image Viewer

$
0
0
I have developed a watchapp to display every jpeg images from the internet on your watch.
It is more a proof of concept because the app itself is not very interesting.

Every complex task is computed on the phone.

The app does this :
- download a jpeg from a given url
- decode the jpeg image (with this lib https://github.com/notmasteryet/jpgjs)
- apply a greyscale filter on it
- apply a dithering filter on it (code found here http://blog.ivank.net/floyd-steinberg-dithering-in-javascript.html)
- convert the byte array to a pebble GBitmap structure (adapted from http://blog.evernote.com/tech/2014/04/23/evernote-pebble-update/#bitmaps)
- send the GBitmap to the watch 
- display the picture

You can download and test the app here : http://pblweb.com/appstore/53bdb1291c6da72083000044/

The not-yet-commented code is available here : https://github.com/gregoiresage/pebble-image-viewer

It should work both on android and iOS


Tell me if you need more informations or if you have problems


Viewing all articles
Browse latest Browse all 5890

Trending Articles