@capgo/capacitor-file-compressor 8.1.12 โ 8.1.14
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.
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Compress and resize images on the device before upload, and convert between JPEG, PNG and WebP. Smaller files mean faster uploads and lower storage costs.
|
|
4
4
|
|
|
5
|
-
<a href="https://capgo.app/?ref=plugin_file-compressor"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-file-compressor" alt="Capgo -
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_file-compressor"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-file-compressor" alt="Capgo - Build Capacitor apps with AI, ship updates instantly" /></a>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
8
|
<p><b>Capgo</b>: push fixes to your Capacitor users in minutes, build signed iOS and Android apps without a Mac, and roll back in one click.</p>
|
|
@@ -11,6 +11,8 @@ Compress and resize images on the device before upload, and convert between JPEG
|
|
|
11
11
|
<p><a href="https://capgo.app/consulting/?ref=plugin_file-compressor">Missing a feature? We'll build the plugin for you ๐ช</a></p>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
+
> ๐ค **Building with an AI coding agent?** Install [Capgo skills](https://capgo.app/skills/?ref=plugin_file-compressor) so Claude Code, Codex, Cursor, Copilot, or Gemini CLI know how to install and use `@capgo/capacitor-file-compressor` in your Capacitor app: `npx skills add Cap-go/capgo-skills`. Then ask your agent: *"Add @capgo/capacitor-file-compressor to my Capacitor app and wire it up."* [Agent setup guides](https://capgo.app/agents/?ref=plugin_file-compressor) ยท [Hosted MCP](https://capgo.app/docs/ai/mcp/?ref=plugin_file-compressor)
|
|
15
|
+
|
|
14
16
|
<p align="center">
|
|
15
17
|
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-file-compressor/main/assets/github-social-preview.png" alt="@capgo/capacitor-file-compressor for Capacitor apps" width="300" />
|
|
16
18
|
</p>
|
|
@@ -20,7 +20,7 @@ import java.util.UUID;
|
|
|
20
20
|
@CapacitorPlugin(name = "FileCompressor")
|
|
21
21
|
public class FileCompressorPlugin extends Plugin {
|
|
22
22
|
|
|
23
|
-
private final String pluginVersion = "8.1.
|
|
23
|
+
private final String pluginVersion = "8.1.14";
|
|
24
24
|
private static final float MIN_QUALITY = 0.1f;
|
|
25
25
|
private static final float QUALITY_STEP = 0.05f;
|
|
26
26
|
private static final List<String> SUPPORTED_OUTPUT_MIME_TYPES = Arrays.asList("image/jpeg", "image/png", "image/webp");
|
|
@@ -6,7 +6,7 @@ import UniformTypeIdentifiers
|
|
|
6
6
|
|
|
7
7
|
@objc(FileCompressorPlugin)
|
|
8
8
|
public class FileCompressorPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
9
|
-
private let pluginVersion: String = "8.1.
|
|
9
|
+
private let pluginVersion: String = "8.1.14"
|
|
10
10
|
private let minimumQuality: CGFloat = 0.1
|
|
11
11
|
private let qualityStep: CGFloat = 0.05
|
|
12
12
|
public let identifier = "FileCompressorPlugin"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-file-compressor",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.14",
|
|
4
4
|
"description": "Capacitor plugin for efficient image compression supporting PNG, JPEG, and WebP formats across iOS, Android, and Web platforms",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|