We will likely eventually support this case built-in. Right now, you can already do this by implementing a local Jib plugin.
Here is an example of exactly that:
https://github.com/joffrey-bion/amper-jib-plugin-example
It was just a PoC, so not perfect, but it could be a starting point