• Administrator
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

Is image format for GTR/GTS 3/4 not Truevision_TGA (.tga) in fact?

A branch of the forum to discuss everything that is connected with Huami Zepp OS.

Moderators: asoo, Watchmens

Forum rules
All communication in this branch should only be in English.
Post Reply
Lilonu
Posts: 5
Joined: 10 Feb 2024, 18:12
Location: Brussels
Has thanked: 1 time
Contact:

Is image format for GTR/GTS 3/4 not Truevision_TGA (.tga) in fact?

Post by Lilonu »

Hi everybody (first post of mine here),

after playing and fiddling with watchface making on code level, I almost bricked my GTS-4 with inadvertingly feeding it an image in the wrong format (see here). With the (true) png images I used, the watchfaces did not install and so I examined the example images(.png) on the binary level and discovered that they in fact are Truevision_TGA images, non-compressed, indexed (or paletted), 255 color, origin left top.

With wrongly using a non-indexed, compressed (RLE) left bottom version I send, as mentioned, my watch into a boot loop, which I escaped only with luck later.

Before I make another test with a (I assume) correct tga: Anybody been there before?
User avatar
asoo
Posts: 2130
Joined: 03 Jan 2019, 01:48
Location: ͼͽ Thailand ͼͽ
Has thanked: 411 times
Been thanked: 2050 times

Post by asoo »

I used to pack the dials using normal png, but didn't find any looping. The watch only shows the wrong color or not show image on screen (on GTR 3) , and you can delete it out normally
_________________
If you want to manipulate png used in ZeppOS, I recommend checking out this tool.

viewtopic.php?p=14958#p14958

Hopefully it will be of benefit.
ͼͽ To request please use the interrelated forum in action ͼͽ
Please do not PM to me for requests ported watchface.
Lilonu
Posts: 5
Joined: 10 Feb 2024, 18:12
Location: Brussels
Has thanked: 1 time
Contact:

Post by Lilonu »

Thank you!

A I create my images in Gimp I'd like to skip that step: Gimp can export indexed, non-compressed, left-top tga files - but I'm a little afraid of (almost) bricking the gts-4 again. So if anybody has tried that already, I'd like to be reassured - or warned ;)
Lilonu
Posts: 5
Joined: 10 Feb 2024, 18:12
Location: Brussels
Has thanked: 1 time
Contact:

Post by Lilonu »

I had a closer (sourcecode) look at another tool by the same author, SashaCX75, ImageToGTR3 of what asoo mentioned:
asoo wrote: 11 Feb 2024, 04:00
If you want to manipulate png used in ZeppOS, I recommend checking out this tool.
viewtopic.php?p=14958#p14958
Actually, the files are Truevision_TGA files, but with a few twist (e.g. the width always a multiple of 16 and rgba mirrored to abgr).
User avatar
SashaCX75
Posts: 820
Joined: 26 Oct 2019, 15:18
Location: Ukraine
Has thanked: 13 times
Been thanked: 1029 times
Contact:

Post by SashaCX75 »

Probably better to look at a newer version. But the general principles are the same. The format is based on TGA, but there are some differences (depending on the watch model).
https://github.com/SashaCX75/ImageToGTR3_v2
Post Reply

Return to “Zepp OS”

Who is online

Users browsing this forum: No registered users and 2 guests