Skip to content

Commit

Permalink
go back to com.sksamuel.scrimage 4.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jun 8, 2024
1 parent 53237eb commit af36c2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ dependencies {
//
implementation("org.xerial:sqlite-jdbc:3.46.0.0")
implementation("ca.gosyer:kotlin-multiplatform-appdirs:1.2.0")
implementation("com.sksamuel.scrimage:scrimage-core:4.1.2")
implementation("com.sksamuel.scrimage:scrimage-webp:4.1.2")
implementation("com.sksamuel.scrimage:scrimage-core:4.1.3")
implementation("com.sksamuel.scrimage:scrimage-webp:4.1.3")
implementation("com.google.code.gson:gson:2.11.0")
implementation("io.github.alexzhirkevich:qrose:1.0.1")
implementation("com.vanniktech:emoji-ios:0.20.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,9 @@ object HelperGeneric {
var quality = qualityies[count]
while (new_len > TOX_MAX_NGC_FILESIZE)
{
Log.i(TAG, "shrink_image_file:ff1a=" + ff1.absolutePath + " ff1c=" + ff1.canonicalPath + " ff2c=" + ff2.canonicalPath)
ImmutableImage.loader().fromFile(ff1).scaleToWidth(max_width).
output(WebpWriter().withQ(quality).withMultiThread(),ff2.canonicalPath)
output(WebpWriter().withQ(quality), ff2.canonicalPath)
new_len = ff2.length()
Log.i(TAG, "shrink_image_file:fsize_after=" +
new_len + " " + quality + " " + max_width + " " + ff2.absolutePath)
Expand Down Expand Up @@ -1050,4 +1051,4 @@ private fun BufferedInputStream.use(block: KFunction1<File, ImageBitmap>): Image
{
TODO("Not yet implemented")
}
*/
*/

0 comments on commit af36c2f

Please sign in to comment.