Coder Social home page Coder Social logo

jfpng's Introduction

Jfpng

采用微软新版必应编写.为了试验chat GPT可用性.

用来将jfif图片转换为png图片.

如何转换图标

运行windres编译资源文件

windres icon.rc -O coff -o icon.res

编译程序

cargo build -r

使用

如果手动运行需要导入注册表,修改相关路径即可.

如果你有编译程序,在jfif图片上点击右键,选择"Convert to png",即可运行程序,转换后会在相同目录下生成png文件.

批量转换

首先将程序加入环境变量中

windows下批量转换脚本batch_convert.bat

@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"
    )
)

Linux下批量转换脚本batch_convert.sh

#!/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对本程序的大力支持.

jfpng's People

Contributors

ser163 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.