Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to use image(jpg) as background on simulator

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?

Best Answer
0 Votes
1 REPLY 1

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.

Best Answer
0 Votes