I find myself in need of some “sips” (scriptable image processing system) troubleshooting.
I’m trying to have a Keyboard Maestro macro (I found shared on the internet) work: the macro get the selected pdfs in finder and ocr them with tesseract: to do that it convert the pfd in tiff via sips.
Here’s the two commands that do the trick
cd ~ && /usr/bin/sips -s format tiff "$KMVAR_percorso" --out "$KMVAR_TheOutPathTIFF" cd ~ && /usr/local/bin/tesseract "$KMVAR_TheOutPathTIFF" "$KMVAR_TheOutPath" -l ita pdf
My problem is that sips, with multipage pdfs, converts only the first page to tiff. Other than this issue the macro run as intended. On the macro author machines the problem does not occur.
Sips behave the same if I just try to convert a multipage pdf into tiff from the terminal
sips -s format tiff test.pdf --out test.tiff
I read the man page for sips and done some googling around, but haven’t been able to find a solution, so I hope someone in the community has some idea of what’s going on…