


clear
echo -e "\033[1m"
echo -e "\033[38;5;208m频道 @XH666gy \033[0m"
echo "文件路径:"
read input_file

{
    
    echo "static const unsigned char icon_data[] = {"

    
    xxd -i "$input_file" | sed -e 's/unsigned char.* = {/unsigned char icon_data[] = {/' -e 's/0x00,/0x00, /g' -e 's/0x00, /0x00,/g' -e 's/};/};/'
    echo "};"
} > "1.h"
zmzkzmmzmdmmsmz
sksksksksksks

sksmdmdmddx
xkdmd



echo "转换成功"