replate-camera 0.1.63 → 0.1.64
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.
|
@@ -815,7 +815,7 @@ class ReplateCameraController: NSObject {
|
|
|
815
815
|
|
|
816
816
|
static func saveImageAsJPEG(_ image: UIImage) -> URL? {
|
|
817
817
|
// Convert UIImage to Data with JPEG representation
|
|
818
|
-
guard let imageData = image.jpegData(compressionQuality: 0.
|
|
818
|
+
guard let imageData = image.jpegData(compressionQuality: 0.9) else {
|
|
819
819
|
// Handle error if unable to convert to JPEG data
|
|
820
820
|
print("Error converting UIImage to JPEG data")
|
|
821
821
|
return nil
|