Johnson070 / MiBand-5-watchface-editor

A program to help create watch faces for mi band 5 & 6!
GNU General Public License v2.0
285 stars 26 forks source link

Cannot create .bin file #52

Open kearmau5 opened 3 years ago

kearmau5 commented 3 years ago

Bin file cannot be created despite the correct size and correct settings Please fix

Gatlincura commented 3 years ago

I'm experiencing the same issue. Looks like it's writing both the .json and the .bin at the same time but the .bin is nowhere to be found in the destination displayed (showing it should be in the same destination as the .json file).

Is there a way to manually do this? For some reason I remember an old version of another app you could drag the .json file on the Watchface.exe and it would build it similar to how you do that to unpack.

Thanks for any insight.

Gatlincura commented 3 years ago

@kearmau5 You should check your logs. In my logs it said I was missing images (with titles like 0104.png and 103.png etc) so I just duplicated some images and renamed them to those, then saved the bin and managed to get a bin file. I also saw in the log that while I kept my filesize down below minimum, the log says it was still over so I optimized that as well.

Hope that helps you too.

kearmau5 commented 3 years ago

@kearmau5 You should check your logs. In my logs it said I was missing images (with titles like 0104.png and 103.png etc) so I just duplicated some images and renamed them to those, then saved the bin and managed to get a bin file. I also saw in the log that while I kept my filesize down below minimum, the log says it was still over so I optimized that as well.

Hope that helps you too.

Yeah thanks for help I did what you suggested....however i noticed that my custom watchface is greater than 1300kb the size is 1765kb which will not be accepted by the mi band 6 and i guess that's the reason Any idea how can i reduce the size

Gatlincura commented 3 years ago

For size reduction it depends on your images and how many you're using. If you have an animated gif, or frames you're using for animation (which is the more optimized way) you'll have to reduce the amount of frames. My animation I'm working on currently is about 10 frames but was 23 frames. That helped a lot with the size.

You can also download a program called RIOT (Radical Image Optimization Tool). You can drag all your images in there and reduce based on things like size percentage or quality. This will significantly reduce image size but can sometimes also reduce image quality. Not that it will matter for such a small image in the end.

kearmau5 commented 3 years ago

For size reduction it depends on your images and how many you're using. If you have an animated gif, or frames you're using for animation (which is the more optimized way) you'll have to reduce the amount of frames. My animation I'm working on currently is about 10 frames but was 23 frames. That helped a lot with the size.

You can also download a program called RIOT (Radical Image Optimization Tool). You can drag all your images in there and reduce based on things like size percentage or quality. This will significantly reduce image size but can sometimes also reduce image quality. Not that it will matter for such a small image in the end.

Yeah thanks for the program However in my case there is no moving parts...just flat images...no animation at all ..a friend said that you should compress all the png files you have and then adjust everything with your JSON file So i will try that and see if things work