Skip to content

About

A browser-based image compression and editing tool. Fully offline, no server, no data upload.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PixelForge — Image Compressor & Editor

PixelForge

English | 中文


English

A browser-based, fully offline image compression and editing tool. No installation, no server, no data upload — everything runs locally in your browser.

Features

  • Image Compression — 5 presets (≤5MB / ≤2MB / ≤1MB / ≤500KB / ≤100KB) + custom target size
  • Smart Algorithm — Binary search on JPEG/WebP quality to guarantee output ≤ target size
  • Formats — JPEG / WebP / PNG output
  • Rotate — 90°/180°/custom angle
  • Crop — Freehand drag + fixed ratios (1:1, 4:3, 16:9, 3:4, 9:16)
  • Real-time Preview — Side-by-side comparison with estimated output size
  • Save As Dialog — Native file picker via File System Access API
  • Bilingual UI — Chinese / English toggle

How to Use

# Open directly
double-click index.html

# Or package for distribution
double-click pack.bat

Requirements: Modern browser (Chrome 86+ / Edge 86+ / Firefox / Safari).

Tech Stack

Plain frontend, zero dependencies:

  • HTML5 + CSS3 (CSS Variables, Flexbox, backdrop-filter)
  • Vanilla JavaScript (Canvas API, File System Access API)
  • No build tools, no frameworks, no Node.js

Privacy

All processing is done locally in your browser. No image data is ever uploaded to any server.

License

MIT License — see LICENSE

Copyright © 2026 Simon Huang


中文

基于浏览器的纯本地图片压缩与编辑工具。无需安装、无需服务器、不上传任何数据。

功能

  • 图片压缩 — 5 级预设(≤5MB / ≤2MB / ≤1MB / ≤500KB / ≤100KB)+ 自定义目标大小
  • 智能算法 — 二分搜索 JPEG/WebP quality,保证输出 ≤ 目标大小
  • 输出格式 — JPEG / WebP / PNG
  • 旋转 — 90°/180°/自定义角度
  • 裁剪 — 自由拖拽 + 固定比例(1:1、4:3、16:9、3:4、9:16)
  • 实时预览 — 原图与效果左右对比,显示预估输出大小
  • 另存为对话框 — 原生文件保存窗口,自由选择保存位置和文件名
  • 中英双语 — 界面一键切换

使用方式

# 直接使用
双击 index.html 即可在浏览器中运行

# 打包分发
双击 pack.bat 生成 Release 目录下的 ZIP 包

系统要求:现代浏览器(Chrome 86+ / Edge 86+ / Firefox / Safari)。

技术栈

纯前端,零依赖:

  • HTML5 + CSS3(CSS Variables、Flexbox、backdrop-filter)
  • Vanilla JavaScript(Canvas API、File System Access API)
  • 无构建工具、无框架、无 Node.js

隐私声明

所有处理均在浏览器本地完成。 图片数据不会被上传到任何服务器。

许可

MIT License — 详见 LICENSE

版权所有 © 2026 Simon Huang

About

A browser-based image compression and editing tool. Fully offline, no server, no data upload.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages