Skip to content

Commit

Permalink
fix: image manual compression
Browse files Browse the repository at this point in the history
  • Loading branch information
numandev1 committed Sep 23, 2023
1 parent be85ba8 commit 599d400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Image/ImageCompressorOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class ImageCompressorOptions: NSObject {

for (key, value) in dictionary {
switch key {
case "autoCompress":
options.autoCompress = (value as? Bool) ?? false
case "compressionMethod":
options.autoCompress = (value as? String ?? "") != "manual"
case "maxWidth":
options.maxWidth = (value as? Int) ?? 1280
case "maxHeight":
Expand Down

0 comments on commit 599d400

Please sign in to comment.