Technical information:
Needed tools:
- imagemagick library
https://imagemagick.org/script/download.php (just install)
- watchface tool
https://amazfitwatchfaces.com/forum/viewtopic.php?f=29&t=720 (unpack in your working directory with watch faces, choose palette exe for smaller WF.bin files)
Unpack desired watch face (in my case fallout pip boy), rename directory/json file as per the convenience.
I use this script (if there's no parameter passed from the command line, it uses HUE shift by 10). All PNG images in the watch face folder are shifted in color and overwritten. Watch face JSON is renamed for easy identification of the HUE color and repacked.
Edit: for high quality WF it's necessary to use RAW mode, but this generates a huge BIN file. As a workaround, use mixed mode - define RAW files only for small images where it's mostly visible. Create file "raw.cfg" located in the same folder as the json and define image numbers for RAW mode. For this particular watch face I've used "11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89"
My color_change.bat, modify as needed:
Code:
echo off
set /A x = 10
set /A x = %1
echo Copying files..
echo D|Xcopy /E /Y fallout_pipboy_green_animated fallout_pipboy_%x%_animated
echo Recoloring images..
mogrify -define png:format=png32 -modulate 100,100,%x% fallout_pipboy_%x%_animated/*.png
cd fallout_pipboy_%x%_animated
ren fallout_pipboy_en.json fallout_pipboy_en_%x%.json
cd ..
echo Packing watchface..
watchface fallout_pipboy_%x%_animated/fallout_pipboy_en_%x%.json
I couldn't find a way how to rename file located in the different directory, hence those unnecessary "CD" commands..
Description of modulate command
http://www.imagemagick.org/Usage/color_mods/#modulate_hue