Skip to content

Commit

Permalink
enable MultiThread for webp image encoding, it may not work yet: sksa…
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Apr 24, 2024
1 parent 7b339d7 commit 77a0141
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ object HelperGeneric {
while (new_len > TOX_MAX_NGC_FILESIZE)
{
ImmutableImage.loader().fromFile(ff1).scaleToWidth(max_width).
output(WebpWriter().withQ(quality),ff2.canonicalPath);
output(WebpWriter().withQ(quality).withMultiThread(),ff2.canonicalPath)
new_len = ff2.length()
Log.i(TAG, "shrink_image_file:fsize_after=" +
new_len + " " + quality + " " + max_width + " " + ff2.absolutePath)
Expand Down

0 comments on commit 77a0141

Please sign in to comment.