As initially reported on StackExchange:
The spec confirms "jpg" is a valid format here:
As suggested by Andrea and Ian, the fix is to add "JPG" to the enum here:
GitHub pull request incoming.
(Credit to my co-worker Murray McDonald for tracking this down and verifying the fix)