Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>tiny-imagesNew to Visual Studio Code? Get it now.
tiny-images

tiny-images

Chen Han

|
251 installs
| (0) | Free
使用tinify对单个图片文件或文件夹下所有图片进行压缩,支持设置key和压缩次数
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

tiny-images README

welcome to tiny-images!

Features

· 扩充对文件/文件夹右击的菜单.

· 使用tinify对图片进行压缩.

· 支持设置key和设置压缩次数.

· 若图片压缩后压缩率不足2%则终止此张图片压缩.

· 对于单个图片的压缩,压缩后的图片将替换文件夹内的原图片,原图会在同一级目录下创建sourceImgs文件夹中进行保存.

· 对于文件夹内图片的压缩,压缩后的图片将替换文件夹内的原图片,原图会在文件夹中传家sourceImgsInFolder文件夹后按照原路径进行保存.

· 支持文件夹深度遍历,选中文件夹下的所有图片(包括嵌套文件夹内的)都会进行压缩.

· 支持vscode窗口下方实时展示任务完成进度.

Requirements

· 需要在 https://tinypng.com/developers 中获取key后使用.

· 使用压缩图片功能前请先获取key并设置压缩次数,压缩次数默认为1.

Extension Settings

· 通过在文件夹上右击或者右击单个图片文件使用压缩图片功能.

· 在右键菜单中的压缩图片配置项的子菜单中配置key和压缩次数.

Release Notes

0.0.1

Initial release of tiny-images.


Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

  • Extension Guidelines

Working with Markdown

Note: You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux)
  • Toggle preview (Shift+CMD+V on macOS or Shift+Ctrl+V on Windows and Linux)
  • Press Ctrl+Space (Windows, Linux) or Cmd+Space (macOS) to see a list of Markdown snippets

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft