### Contact Details _No response_ ### Explain the proposed feature A tool for optimizing and reformatting images. ### Explain the possible use cases for the feature _No response_ ### Any other details you would like to provide? This can't likely be done in browser alone, it may be possible to do using server-less functions which should be explored. This tool should at minimum: - convert images between jpeg, gif, png, webp, and avif formats - optionally optimize the image to reduce its size
Activity
gaston-flores commentedon Oct 8, 2022
For a low-effort approach, how about using canvas'
toDataURL? It supportspng,jpeg, andwebpas output formats.A more complete implementation would use a serverless function to run sharp, but that won't be cheap.
dlford commentedon Oct 8, 2022
@gaston-flores would you like to take a crack at the canvas method?
gaston-flores commentedon Oct 8, 2022
Sure!