采用微软新版必应编写.为了试验chat GPT可用性.
用来将jfif图片转换为png图片.
运行windres
编译资源文件
windres icon.rc -O coff -o icon.res
cargo build -r
如果手动运行需要导入注册表,修改相关路径即可.
如果你有编译程序,在jfif图片上点击右键,选择"Convert to png",即可运行程序,转换后会在相同目录下生成png文件.
首先将程序加入环境变量中
@echo off
if "%1" == "" (
echo Usage: %0 [file|directory]
) else (
if exist "%1\*" (
for %%f in ("%1\*.jfif") do (
jfpng.exe "%%f"
)
) else (
jfpng.exe "%1"
)
)
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 [file|directory]"
else
if [ -d "$1" ]; then
for f in "$1"/*.jfif; do
jfpng "$f"
done
else
jfpng "$1"
fi
fi
再次感谢new bing对本程序的大力支持.