kucherenko / blog

Test wordpress blog
MIT License
0 stars 0 forks source link

Implement task #121 - Image resizer #125

Open brian-ai-assistant[bot] opened 1 year ago

brian-ai-assistant[bot] commented 1 year ago

I have implemented the image resizer function using the sharp library in TypeScript. The function takes a base64 encoded image as input and the desired width and height as parameters. If the original image is smaller than the desired dimensions, the function returns the original image without resizing. The resized image is returned as a base64 encoded string in the same format as the input image.