10-20-2018 22:12
10-20-2018 22:12
Hey, I am trying to have a image set as background for my watchface.
Here is what i have tried:
<svg class="background"> <image id="image" href="test.jpg" width="100%" height="100%"/> <text id="myLabel"/> <text id="score"/> </svg>
Where test.jpg is in my resource folder:
m-C02NV13:yuvi vrajori$ tree ./resources/ ./resources/ ├── index.gui ├── players ├── styles.css ├── test.jpg └── widgets.gui
Upon trying to load this clockface onto simulator i see below in logs:
[10:42:08] App: Error 0 pjpeg_save_to_file returned Non-zero
Can anyone help me out here, please?
10-22-2018 09:52
10-22-2018 09:52
Your jpg might be in progressive format. It's best to use PNG, which will be converted to a format optimized for the hardware.
If you must use jpg, try saving the file with progressive.