elpupper
elpupper
Explore posts from servers
TTCTheo's Typesafe Cult
Created by roshen on 4/23/2023 in #questions
Using Clerk's getAuth() helper causes withClerkMiddleware to be unrecognized
going to have a look now! im happy for you
72 replies
TTCTheo's Typesafe Cult
Created by roshen on 4/23/2023 in #questions
Using Clerk's getAuth() helper causes withClerkMiddleware to be unrecognized
Lets goo what is it?
72 replies
TTCTheo's Typesafe Cult
Created by roshen on 4/23/2023 in #questions
Using Clerk's getAuth() helper causes withClerkMiddleware to be unrecognized
nooo james 😦
72 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
just not as much as jpg/jpeg
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
also when passing a png image it still gets compressed a nice amount
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
the main difference that i know of is the alpha value
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
all ud have to do is remove the alpha right?
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
without sharp
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
but how would you convert png to jpeg properly
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
i made it so that you can only put in jpeg/jpg
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
what do u see
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
i dont see what needs to be changed
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
i mean
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
the input can only be images
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
its only images
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
have a look at this one 😄
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
this is so sick
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
file.arrayBuffer().then((buffer) => {
const blob = new Blob([buffer], { type: "image/jpeg" });
const newFile = new File([blob], file.name, { type: "image/jpeg" });
console.log(newFile);


new Compressor(newFile, {
quality: 0.4,
success: async (compressedResult: File) => {
const base64 = await getBase64(compressedResult);
setImages((prevImages) => [...prevImages, {
name: compressedResult.name,
type: compressedResult.type,
size: compressedResult.size,
base64: base64 as string
}]);
},
error: (err) => {
console.log(err.message);
},
});
});
file.arrayBuffer().then((buffer) => {
const blob = new Blob([buffer], { type: "image/jpeg" });
const newFile = new File([blob], file.name, { type: "image/jpeg" });
console.log(newFile);


new Compressor(newFile, {
quality: 0.4,
success: async (compressedResult: File) => {
const base64 = await getBase64(compressedResult);
setImages((prevImages) => [...prevImages, {
name: compressedResult.name,
type: compressedResult.type,
size: compressedResult.size,
base64: base64 as string
}]);
},
error: (err) => {
console.log(err.message);
},
});
});
81 replies
TTCTheo's Typesafe Cult
Created by elpupper on 7/10/2023 in #questions
R2 Presigned URL
im the goat
81 replies