npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@qian-kun/image-converter

v0.1.1

Published

图片格式转换器,本地批量转换图片格式,支持 PNG/JPEG/WebP/BMP/ICO/GIF/AVIF 互转,逐个下载。

Readme

图片格式转换器(@qian-kun/image-converter)

QK 工具箱子窗口应用:本地批量转换图片格式,支持 PNG/JPEG/WebP/BMP/ICO/GIF/AVIF 互转,逐个下载。

功能

  • 批量上传:点击或拖拽多张图片(PNG / JPG / JPEG / GIF / WebP / BMP / AVIF / ICO)
  • 输出格式:PNG、JPEG、WebP、BMP、ICO、GIF、AVIF 共 7 种
  • 全局目标格式分段控制器 + 逐行单独指定目标格式
  • 质量调节(JPEG / WebP),其余格式无损或固定质量
  • 文件列表实时展示:缩略图、原格式、像素尺寸、文件大小、状态徽章
  • 全部转换 / 逐个下载(浏览器原生 <a download>)
  • 一键下载压缩包:把所有已转换文件打包为 ZIP(重名自动追加序号),基于 JSZip 本地打包
  • 全程本地处理,无网络请求

开发

npm install        # 安装依赖
npm run dev        # 仅前端开发(Vite,默认端口 5173)
npm run build      # vite build + 复制 icon.png 到 dist/
npm run pack       # create-qk-app pack 打包为 .qkapp
npm run publish    # 构建并发布到 npm

技术说明

  • 转换全在浏览器本地完成,依赖分层:
    • Canvas 原生(canvas.toBlob):PNG / JPEG / WebP
    • 手写编码器(纯 TS):BMP(BMP24)/ ICO(PNG 套 ICO 容器头)
    • 第三方纯 JS 库 gifenc:GIF
    • WASM 库 @jsquash/avif:AVIF(需 application/wasm MIME,QK 嵌入式服务器已支持)
    • 第三方纯 JS 库 JSZip:压缩包打包(动态加载)
  • 输入解码使用 createImageBitmap(回退 Image),兼容 AVIF / GIF 首帧等格式。
  • 权限声明:仅 clipboard;下载走浏览器原生 <a download>,无需额外权限。
  • 窗口尺寸 720×720,可缩放、居中显示。