You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is a bit old, but just in case it helps anyone.
If you are trying to save to a file that does not have an extension, then it is affected by a bug in Util.kt:
val result = if (format == imageFile.compressFormat()) {
imageFile
} else {
File("${imageFile.absolutePath.substringBeforeLast(".")}.${format.extension()}")
}
This logic does not consider the potential of a file destination that has no extension, so instead of /data/my.app.id/cache/compressor - we get /data/my.imagename.extension - which doesn't work.
The destination must have a file extension. The extension does not need to be related to the image format at all, but there must be an extension.
}
The text was updated successfully, but these errors were encountered: