Skip to content

liuxinjl/image-compression

Repository files navigation

Image Compression Tool 图像压缩工具

Author: liuxin Version: 0.0.2 Type: tool

Description

An image compression tool that effectively reduces file size while preserving image quality. It optimizes the user upload experience and server storage efficiency, significantly improving the processing efficiency of image-related services.

图像压缩工具,能够在保持图像质量的同时有效减小文件大小,优化用户上传体验和服务器存储效率,可有效提升图像相关业务的处理效率。 alt text

The tool solves the URL exception issue currently encountered in the Dify system when retrieving images, by configuring Dify URLs.

通过Dify URL配置,解决了当前dify系统中获取图片时抛出的URL异常问题。 alt text

  • Batch Compression: Supports processing multiple images simultaneously

  • Format Compatibility: Compatible with common formats such as JPG and PNG

  • Custom Parameters: Allows adjustment of compression quality through configurable size parameters

  • 批量压缩:支持多张图片同时处理

  • 支持多种格式:兼容JPG、PNG等常见图片格式

  • 自定义参数:可通过尺寸参数配置,调整压缩质量。

Changelog

v0.0.2

Added
  • Introduced a method for intelligently calculating compression quality
  • Added logic to compare original and compressed image sizes to avoid cases where compression increases file size
Fixed
  • Fixed “unknown file extension” error when processing specific formats such as PNG
  • Resolved the issue where small images became larger after compression

v0.0.1

Added
  • Initial version release
  • Implemented basic image compression - tionality
  • Supported common image formats including - PNG, GIF, WEBP, and BMP
  • Provided adjustable quality parameters
  • Enabled integration and API access via the - platform
  • Basic error handling mechanism

About

Image compression tool for Dify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages