Quick Image Compressor · 图片快压右键快速压缩图片,自动更新代码引用。
开始使用
支持 PNG、JPEG、WebP、AVIF 的本地静态路径。界面支持中文和英文。 悬浮图片路径即可查看文件大小,设置中可关闭提示或切换显示单位。 也可在资源管理器右键文件夹,选择 批量压缩图片,一次处理其中及子文件夹内的图片。支持进度、取消和结果详情;默认保留原图,开启项目同步后自动更新引用。 无需 Key?在配置页选择 本地压缩(Sharp),即可离线使用。提供无损预设、质量滑动条和高级参数表;JPEG 压缩需关闭无损。 状态栏直观显示剩余额度。点击可查看详情、切换已保存凭证的厂商,或进入 API Key 设置和插件设置。Tinify 显示本月免费剩余次数。 设置在插件齿轮菜单选择 扩展设置,点击 配置压缩服务,即可在内嵌页面选择服务、填写或更换凭证。在设置中也可调整图片后缀、路径别名、资源根目录和语言。 还没有密钥?点击“服务凭证”旁的 获取 API Key ↗,在默认浏览器中进入服务官网,获取后返回粘贴并保存。 需要自定义 API 时,展开配置页的 高级配置,编辑、导入或导出 JSON 模板。图片会发送到所选服务。 同步替换项目引用并删除原图 默认关闭。开启后,插件会更新当前工作区文件夹中扫描到的静态引用、自动保存代码,并在检查通过后删除原图。扫描遵循忽略和排除设置;动态拼接的路径不在处理范围内。撤销代码不会恢复已删除的图片。 EnglishQuickly compress images from code and automatically update references. Right-click a folder in Explorer and choose Batch Compress Images to process its images and subfolders. Includes progress, cancellation and result details. Originals are kept by default; enable project reference replacement to update references automatically.
Get started
Supports static local paths to PNG, JPEG, WebP and AVIF images. Available in English and Chinese. Hover over an image path to see its file size. Toggle the hint or choose its unit in extension settings. Prefer offline compression? Choose Local compression (Sharp) in the configuration page. Includes a lossless preset, quality slider and advanced parameter tables. Turn off lossless for JPEG. See remaining quota in the status bar. Click for details, saved-provider switching, API Key settings and extension settings. Tinify shows the remaining monthly free allowance. SettingsChoose Extension Settings from the extension's gear menu, then click Configure compression service. The built-in page lets you select a provider and manage credentials. Other settings include the output suffix, path aliases, resource root and language. Need a key? Click Get API Key ↗ beside Service credentials to open the provider's website in your default browser, then return to paste and save it. For a custom API, expand Advanced configuration to edit, import or export a JSON template. Images are sent to the selected service. Replace Project References And Delete Original is off by default. When enabled, it updates scanned static references in the current workspace folder, saves the code and deletes the original after checks pass. Scanning respects ignore and exclusion settings; dynamically constructed paths are outside its scope. Undoing code does not restore a deleted image. |