-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMPROVEMENT] Ability to display distant image #8
Comments
Yes, it is possible but it is undocumented for two reasons, the main one being that Pebble.js is missing a resource unload/eviction policy. The other is the handling of large remote images which will either require packet segmenting or using the png format natively. I've replied to the forum thread with slightly more information. I hope to eventually work out these issues. |
It would be nice, maybe, to be able to use data-url images as well. |
data-url is an interesting idea, I'll keep that in mind. There was some progress on this ticket with e1ace40. That merge allows images larger than 2K to load. I may improve this to have a progress bar since it's not exactly the best user experience. It's also still lacking an onload callback for knowing when the image is done loading. Be sure to add the suffix |
Ok I'll do a test to display my home connected camera on my Pebble.
This will resize picture and transform image to greyscale.
And it works great ! |
That's great to hear, and you're welcome! It actually has dithering built in too. It's much more impressive with that turned on. Use Ah, it must be running out of memory somehow. Thanks for reporting the crash. It already flushes the resource cache when changing windows. Perhaps I should also add reference counting to flush particular images in a long standing window. I'll look into this further. For anyone else fiddling, it currently only supports PNG's using the wonderful library at https://github.com/devongovett/png.js/. I'll be adding JPEG and GIF support after all the kinks in remote loading are ironed out. |
I managed the image removal with an event, and the app crash less often.
For me the issue can be closed. Thank you it works like a charm. |
Is it possible to display a PNG on a distant server ?
Didin't succeed in doing this, opened a thread : http://forums.getpebble.com/discussion/17903/pebble-js-display-image-from-distant-server
Tried several ways, without success
The text was updated successfully, but these errors were encountered: