Feature request: jpegtran support
@saschazar21 I have been testing and see many useful use cases to modify the image like cropping. Since this comes as a separate utility to do this (jpegtran), it would complement well what you have already. Probably porting this follows the same pattern as the others you have on this repo.
For more info, the usage document talks about how to use jpegtran:
https://github.com/mozilla/mozjpeg/blob/master/usage.txt
Thanks for the great work so far!
Hi @pbreah - interesting topic indeed. I'm not sure yet how to include those features though.
Maybe a separate .wasm binary or a totally separate package within this monorepo might do the trick. However, I need to think how and to what extent I may include those features. I'll leave this issue open for now and come back to it once I've come up with a solution.
I believe a separate .wasm file is the way to go. All these utilities are standalone, so it is something that would work well having a separate package on your monorepo. I have been testing several utilities from other wasm repos and all of these are just many "attempts" to deliver usable tools, but they lack the flexibility to be implemented on a real world project for the web. I already tried 5 repos, and none worked well for the project I am working on. Some of these repos have even huge .wasm files - which is not good.
You have a great structure already with these other tools, and the flexibility needed to continue to grow this repo. Adding extra tools to manipulate the image would make this monorepo a one stop place to get all you need to break free from using canvas on the browser. Plus nobody has ported jpegtran to wasm, you'll be the first one. I wouldn't hesitate to help with this, but don't know how much I could help without c++ experience to write glue code.
I also found this repo that may help see the tool in a standalone way and not from the same mozjpeg repo: https://github.com/cloudflare/jpegtran.