squish: 基于浏览器的图像压缩工具

2025年10月05日 04:07:05
9755
批处理 图像压缩 图像处理
squish addyosmani/squish

一个现代、基于浏览器的图像压缩工具,结合了现代Web技术和WebAssembly的性能优势,为开发者提供了便捷的图像优化解决方案。无论是处理个人照片还是批量优化网站资源,Squish都能满足多样化的需求。

项目大小 135 Byte
涉及语言 HTML 7.61% JavaScript 3.22% CSS 0.19%
许可协议 LICENSE
仓库同步说明
  • • 同步需要仓库写入权限以创建目标仓库
  • • 使用平台账号授权登录后将同步到您平台下的个人仓库

Squish 🎨

License: MIT

A modern, browser-based image compression tool that leverages WebAssembly for high-performance image optimization. Squish supports multiple formats and provides an intuitive interface for compressing your images without compromising quality.

✨ Features

  • 🖼️ Support for multiple image formats:

    • AVIF (AV1 Image Format)
    • JPEG (using MozJPEG)
    • JPEG XL
    • PNG (using OxiPNG)
    • WebP
  • 🚀 Key capabilities:

    • Browser-based compression (no server uploads needed)
    • Batch processing support
    • Format conversion
    • Quality adjustment per format
    • Real-time preview
    • Size reduction statistics
    • Drag and drop interface
    • Smart queue for compressing large number of files

🛠️ Technology

Squish is built with modern web technologies:

  • React + TypeScript for the UI
  • Vite for blazing fast development
  • WebAssembly for native-speed image processing
  • Tailwind CSS for styling
  • jSquash for image codec implementations

🚀 Getting Started

Prerequisites

  • Node.js 18 or later
  • npm 7 or later

Installation

  1. Clone the repository:
1
2
git clone https://github.com/addyosmani/squish.git
cd squish
  1. Install dependencies:
1
npm install
  1. Start the development server:
1
npm run dev
  1. Build for production:
1
npm run build

💡 Usage

  1. Drop or Select Images: Drag and drop images onto the upload area or click to select files
  2. Choose Output Format: Select your desired output format (AVIF, JPEG, JPEG XL, PNG, or WebP)
  3. Adjust Quality: Use the quality slider to balance between file size and image quality
  4. Download: Download individual images or use the “Download All” button for batch downloads

🔧 Default Quality Settings

  • AVIF: 50%
  • JPEG: 75%
  • JPEG XL: 75%
  • PNG: Lossless
  • WebP: 75%

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments


                

                

免责声明 © 2026 - 虚宝阁

本站部分源码来源于网络,版权归属原开发者,用户仅获得使用权。依据《计算机软件保护条例》第十六条,禁止:

  • 逆向工程破解技术保护措施
  • 未经许可的分发行为
  • 去除源码中的原始版权标识

※ 本站源码仅用于学习和研究,禁止用于商业用途。如有侵权, 请及时联系我们进行处理。

侵权举报请提供: 侵权页面URL | 权属证明模板

响应时效:收到完整材料后48小时内处理

相关推荐

scira: AI 驱动搜索引擎

scira: AI 驱动搜索引擎

极简的 AI 驱动搜索引擎,支持引用来源

10827 2025-10-20
YOLOv8-目标检测界的闪电侠

YOLOv8-目标检测界的闪电侠

YOLO系列的最新版,主打“又快又准”的目标检测。能瞬间识别图片/视频里的人、车、动物、物体,在普通显卡上就能实时处理视频流,工业级场景都在用它。

47034 2025-09-13
Stable Diffusion AI绘画界的 扛把子

Stable Diffusion AI绘画界的 扛把子

提到AI画图,没人能绕开Stable Diffusion!由Stability AI开源,支持文本生成图像、图像修复、风格迁移,关键是完全免费商用(非商用更没问题),普通电脑装个WebUI就能玩到飞起。

41831 2025-09-13
Seelen-UI: 高度可定制的 Windows 桌面美化工具

Seelen-UI: 高度可定制的 Windows 桌面美化工具

一款免费开源的 Windows 桌面增强工具,专注于高度自定义和效率提升。它采用 Rust 语言开发,结合 Tauri 框架与 Web 技术,支持窗口平铺管理、应用启动器、Dock、任务栏、动态壁纸、插件扩展等功能。

13691 2025-10-04
LLaMA-Meta家的平民大模型

LLaMA-Meta家的平民大模型

这是Meta(脸书母公司)开源的大语言模型家族,从70亿参数到700亿参数应有尽有,主打一个“轻量能跑、开源免费”。普通人下载后,在消费级显卡上就能微调,不用再眼巴巴看着大厂模型流口水~

58804 2025-09-13
presenton AI PPT 生成器

presenton AI PPT 生成器

一个免费的、能完全在你自己电脑上运行的 AI PPT 生成工具。和那些必须联网、依赖服务商云服务的工具不同,Presenton 的核心优势在于本地优先和开放可控。 你的数据你做主, 所有生成演示文稿的过程都在你的电脑上完成。这意味着你的内容创意、上传的文件等敏感信息,无需上传到第三方云端服务器,隐私更有保障。自由选择AI模型,它不绑定任何一家 AI 服务商。你可以灵活选择。

2412 2025-09-14
ant-design-vue-pro

ant-design-vue-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design Vue like a Pro! (vue2)

10932 2025-09-20
n8n: AI自动化工作流工具

n8n: AI自动化工作流工具

基于节点的自动化工作流工具,能帮助用户轻松创建和管理复杂的自动化流程,无需编写大量代码。并且内置了AI能力,支持 400+ 应用和服务!

146989 2025-09-26

仓库下载

gitee

GitHub 下载代理

文件信息

文件名
文件大小
文件类型
代理耗时