tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
convert oembed images to webp
awarm.space
7 months ago
747397d5
67bb09ae
+2
-1
1 changed file
expand all
collapse all
unified
split
app
[leaflet_id]
publish
publishBskyPost.ts
+2
-1
app/[leaflet_id]/publish/publishBskyPost.ts
···
38
let binary = await preview_image.blob();
39
let resized_preview_image = await sharp(await binary.arrayBuffer())
40
.resize({
41
-
width: 1024,
42
fit: "cover",
43
})
0
44
.toBuffer();
45
46
let blob = await agent.com.atproto.repo.uploadBlob(resized_preview_image, {
···
38
let binary = await preview_image.blob();
39
let resized_preview_image = await sharp(await binary.arrayBuffer())
40
.resize({
41
+
width: 1200,
42
fit: "cover",
43
})
44
+
.webp({ quality: 85 })
45
.toBuffer();
46
47
let blob = await agent.com.atproto.repo.uploadBlob(resized_preview_image, {