mwoffliner
mwoffliner copied to clipboard
Scraping dies with "Input buffer contains unsupported image format" if logo returns 301
Zimfarm recipe: https://farm.openzim.org/recipes/encyclopediaofmath.org_en_all
Zim-request details: https://github.com/openzim/zim-requests/issues/964#issuecomment-2124736481
Log:
[error] [2024-05-22T12:56:44.462Z] Failed to run mwoffliner after [18s]: {
"stack": "Error: Input buffer contains unsupported image format",
"message": "Input buffer contains unsupported image format"
}
[error] [2024-05-22T12:56:44.462Z]
**********
Input buffer contains unsupported image format
**********
It is pretty hard to tell which image has been grabbed and failed to be read, making the fix even more delicate.