@capgo/capacitor-file-compressor 8.1.20 → 8.1.21
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
|
@@ -18,12 +18,12 @@ Compress and resize images on the device before upload, and convert between JPEG
|
|
|
18
18
|
|
|
19
19
|
## Built and maintained with AI
|
|
20
20
|
|
|
21
|
-
We build, improve and fix our plugins with heavy use of AI, so issues usually get fixed in under a day and pull requests get feedback the same day. A human still reviews and merges 50+ pull requests daily.
|
|
21
|
+
We build, improve and fix our plugins with heavy use of AI, so issues usually get fixed in under a day and pull requests get feedback the same day. A human still reviews, tests and merges 50+ pull requests daily.
|
|
22
22
|
|
|
23
23
|
- Most plugin issues get a fix pull request the same day, often within a couple of hours, and are usually resolved in one to two days.
|
|
24
24
|
- Every pull request goes through our AI review system, usually within minutes.
|
|
25
|
-
- Our AI pre-checks tests, code review, conventions and security, then a human
|
|
26
|
-
- A human, Martin, reviews and merges 50+ pull requests every day.
|
|
25
|
+
- Our AI pre-checks tests, code review, conventions and security, then a human reviews, tests and merges.
|
|
26
|
+
- A human, Martin, reviews, tests and merges 50+ pull requests every day.
|
|
27
27
|
- In the last 90 days, 95% of plugin issues were resolved.
|
|
28
28
|
|
|
29
29
|
[Learn more about how we build with AI](https://capgo.app/docs/plugins/ai-engineering/)
|
|
@@ -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.21";
|
|
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.21"
|
|
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.21",
|
|
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",
|