peasy-image 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![npm version](https://agentgif.com/badge/npm/peasy-image/version.svg)](https://www.npmjs.com/package/peasy-image)
4
4
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.7-blue)](https://www.typescriptlang.org/)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
+ [![GitHub stars](https://agentgif.com/badge/github/peasytools/peasy-image-js/stars.svg)](https://github.com/peasytools/peasy-image-js)
6
7
 
7
8
  Image processing library for Node.js powered by [sharp](https://sharp.pixelplumbing.com/) -- resize, crop, convert, compress, rotate, blur, sharpen, and 8 more operations. TypeScript-first with full type definitions.
8
9
 
@@ -11,7 +12,7 @@ All functions accept a `Buffer` and return a `Promise<ImageResult>` with the pro
11
12
  > **Try the interactive tools at [peasyimage.com](https://peasyimage.com)** -- image resizing, format conversion, compression, and more
12
13
 
13
14
  <p align="center">
14
- <img src="demo.gif" alt="peasy-image demo — image resize, crop, convert operations in terminal" width="800">
15
+ <a href="https://agentgif.com/4wmbsDgf"><img src="https://media.agentgif.com/4wmbsDgf.gif" alt="peasy-image demo — image resize, crop, convert operations in terminal" width="800"></a>
15
16
  </p>
16
17
 
17
18
  ## Table of Contents
@@ -94,7 +95,7 @@ const wide = await resize(source, { width: 1200, fit: "contain" });
94
95
  const cropped = await crop(source, { left: 50, top: 100, width: 300, height: 300 });
95
96
  ```
96
97
 
97
- Learn more: [PeasyImage](https://peasyimage.com) · [Glossary](https://peasyimage.com/glossary/)
98
+ Learn more: [Resize Image Tool](https://peasyimage.com/image/resize-image/) · [Crop Image Tool](https://peasyimage.com/image/crop-image/) · [What is Aspect Ratio?](https://peasyimage.com/glossary/aspect-ratio/)
98
99
 
99
100
  ### Format Conversion
100
101
 
@@ -119,7 +120,7 @@ const webp = await convert(source, "webp");
119
120
  const avif = await convert(source, "avif");
120
121
  ```
121
122
 
122
- Learn more: [PeasyImage](https://peasyimage.com) · [Guides](https://peasyimage.com/guides/)
123
+ Learn more: [Convert Image Tool](https://peasyimage.com/image/convert-image/) · [Image Format Comparison](https://peasyimage.com/guides/image-format-comparison/) · [What is AVIF?](https://peasyimage.com/glossary/avif/)
123
124
 
124
125
  ### Compression
125
126
 
@@ -135,7 +136,7 @@ const small = await compress(source);
135
136
  const webp = await compress(source, { quality: 80, format: "webp" });
136
137
  ```
137
138
 
138
- Learn more: [PeasyImage](https://peasyimage.com)
139
+ Learn more: [Compress Image Tool](https://peasyimage.com/image/compress-image/) · [How to Compress Images for Web](https://peasyimage.com/guides/how-to-compress-images-for-web/) · [What is Lossy Compression?](https://peasyimage.com/glossary/lossy-compression/)
139
140
 
140
141
  ### Rotation and Flipping
141
142
 
@@ -300,10 +301,10 @@ Full API documentation at [peasyimage.com/developers/](https://peasyimage.com/de
300
301
 
301
302
  ## Learn More
302
303
 
303
- - **Tools**: [Image Resize](https://peasyimage.com/tools/image-resize/) · [Image Crop](https://peasyimage.com/tools/image-crop/) · [Image Convert](https://peasyimage.com/tools/image-convert/) · [All Tools](https://peasyimage.com/)
304
- - **Guides**: [WebP Guide](https://peasyimage.com/guides/resize/) · [All Guides](https://peasyimage.com/guides/)
305
- - **Glossary**: [JPEG](https://peasyimage.com/glossary/jpeg/) · [PNG](https://peasyimage.com/glossary/png/) · [WebP](https://peasyimage.com/glossary/webp/) · [All Terms](https://peasyimage.com/glossary/)
306
- - **Formats**: [JPEG](https://peasyimage.com/formats/jpeg/) · [PNG](https://peasyimage.com/formats/png/) · [All Formats](https://peasyimage.com/formats/)
304
+ - **Tools**: [Resize Image](https://peasyimage.com/image/resize-image/) · [Compress Image](https://peasyimage.com/image/compress-image/) · [Convert Image](https://peasyimage.com/image/convert-image/) · [Crop Image](https://peasyimage.com/image/crop-image/) · [Rotate Image](https://peasyimage.com/image/rotate-image/) · [Watermark Image](https://peasyimage.com/image/watermark-image/) · [All Image Tools](https://peasyimage.com/)
305
+ - **Guides**: [Image Format Comparison](https://peasyimage.com/guides/image-format-comparison/) · [How to Compress Images for Web](https://peasyimage.com/guides/how-to-compress-images-for-web/) · [JPG vs PNG](https://peasyimage.com/guides/jpg-vs-png-which-format-to-use/) · [WebP vs JPG](https://peasyimage.com/guides/webp-vs-jpg-modern-image-formats/) · [How to Optimize Images for SEO](https://peasyimage.com/guides/how-to-optimize-images-for-seo/) · [All Guides](https://peasyimage.com/guides/)
306
+ - **Glossary**: [AVIF](https://peasyimage.com/glossary/avif/) · [WebP](https://peasyimage.com/glossary/webp/) · [Alpha Channel](https://peasyimage.com/glossary/alpha-channel/) · [EXIF](https://peasyimage.com/glossary/exif/) · [Color Grading](https://peasyimage.com/glossary/color-grading-image/) · [Chroma Subsampling](https://peasyimage.com/glossary/chroma-subsampling/) · [All Terms](https://peasyimage.com/glossary/)
307
+ - **Formats**: [PNG](https://peasyimage.com/formats/png/) · [JPEG](https://peasyimage.com/formats/jpeg/) · [WebP](https://peasyimage.com/formats/webp/) · [AVIF](https://peasyimage.com/formats/avif/) · [All Formats](https://peasyimage.com/formats/)
307
308
  - **API**: [REST API Docs](https://peasyimage.com/developers/) · [OpenAPI Spec](https://peasyimage.com/api/openapi.json)
308
309
 
309
310
  ## Also Available
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peasy-image",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Image processing library for Node.js — resize, crop, convert, compress, filter. Powered by sharp.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",