Skip to content

Commit 482c070

Browse files
authored
Merge pull request #190 from numandev1/fix/image-manual-compression
fix: image manual compression
2 parents be85ba8 + 599d400 commit 482c070

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/Image/ImageCompressorOptions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class ImageCompressorOptions: NSObject {
2626

2727
for (key, value) in dictionary {
2828
switch key {
29-
case "autoCompress":
30-
options.autoCompress = (value as? Bool) ?? false
29+
case "compressionMethod":
30+
options.autoCompress = (value as? String ?? "") != "manual"
3131
case "maxWidth":
3232
options.maxWidth = (value as? Int) ?? 1280
3333
case "maxHeight":

0 commit comments

Comments
 (0)