Open bakape opened 5 years ago
Thanks, I'll look into integration, when I have more time for it. Does your library support building in Go modules? I've had some problems, with C sources/libs being located in a subdirectory in the past.
I didn't try yet, but there should be no problems. I know there are issues when libs are in git submodule, but not sure what happens with ${SRCDIR} that is used.
${SRCDIR} is exactly what I had problems with in the past. Maybe this changed with Go 1.12.
On Sun, 3 Mar 2019, 13:04 Milan Nikolic, notifications@github.com wrote:
I didn't try yet, but there should be no problems. I know there are issues when libs are in git submodule, but not sure what happens with ${SRCDIR} that is used.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/bakape/thumbnailer/issues/45#issuecomment-469011920, or mute the thread https://github.com/notifications/unsubscribe-auth/AHfPsKhzON5jcm9PkNWHHuK6W7at-wJ4ks5vS6w2gaJpZM4afmsz .
I have a wrapper for MuPDF here https://github.com/gen2brain/go-fitz that can be used for extracting the cover image. It uses static libraries bundled in the repo. Not sure if there is something similar that can extract Image from PDF in native Go, but here CGO is used anyway.