Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Cannot create .bin file #52

Open
kearmau5 opened this issue Oct 9, 2021 · 5 comments
Open

Cannot create .bin file #52

kearmau5 opened this issue Oct 9, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@kearmau5
Copy link

kearmau5 commented Oct 9, 2021

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

@kearmau5 kearmau5 added the bug Something isn't working label Oct 9, 2021
@Gatlincura
Copy link

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
Copy link

@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
Copy link
Author

@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
Copy link

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants