There is a wrapper around what appears to do the conversion here: https://github.com/russlamb/file_convert
no documentation, but does have examples.
I can't vouch for it as I have never used it, but it's worth a try.
no documentation, but does have examples.
I can't vouch for it as I have never used it, but it's worth a try.