Sandeep
Sandeep
CDCloudflare Developers
Created by Sandeep on 5/21/2024 in #general-help
Using worker for generating thumbnail of video from R2 bucket
Is there any way possible in the worker script where I can generate thumbnail of a video which is uploaded to the R2 bucket?
1 replies
CDCloudflare Developers
Created by Sandeep on 5/21/2024 in #workers-help
Cloudflare worker for generating thumbnail of R2 video
Hello All, Is there any way possible in the worker script where I can generate thumbnail of a video which is uploaded to the R2 bucket?
1 replies
CDCloudflare Developers
Created by Sandeep on 5/20/2024 in #workers-help
Using workers to compress images and upload back to R2 Bucket.
I'm using the worker script for compressing the image uploaded on the R2 bucket. I have setup the event using wrangler cli for pushing the event in a queue. I'm consuming the queue data in the worker script. My script creates a presigned URL and fetches the image from the bucket, it then compresses the image using jimp pacakge and then uploads it back to the bucket. Everything works well until the image size is less than 3 MB. As soon as it crosses that size, my worker starts failing. Can you please help me with this as I need to move my code to production environment ASAP. Since there is no direct support for the AWS S3 sdk, I had to use aws4fetch package to generate the presigned URL. Also there is no direct support for nodejs sharp package that is why I had to use Jimp package.
5 replies