Fix one lingering call to ssb.connectionSendJson.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4129 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-01-17 23:10:17 +00:00
parent 134b2556ad
commit ce0b4de5a1
8 changed files with 36 additions and 21 deletions

View File

@@ -94,7 +94,7 @@ class TfComposeElement extends LitElement {
if (type.startsWith('image/')) {
let best_buffer;
let best_type;
for (let format of ['image/png', 'image/jpeg']) {
for (let format of ['image/png', 'image/jpeg', 'image/webp']) {
let test_buffer = await self.convert_to_format(buffer, file.type, format);
console.log(format, test_buffer.length);
if (!best_buffer || test_buffer.length < best_buffer.length) {