Hey guys. Ive been in a long and tedious process of migrating our express (node) backend to workers.
Hey guys. Ive been in a long and tedious process of migrating our express (node) backend to workers. Ive accomplished a lot but now im stuck in formatting images. Previously, i used sharp (a node library) to convert images from jpg to png and pipe the stream to R2 through the S3 wrapper (which was a one liner). Ive tried to accomplish this in my worker using JIMP, image-js, and other libraries but was unable to get it working (presumably due to the lack of support for the canvas api in workers). How would I go about simply converting a jpg image to png in my worker?


