mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: make OCR portable and reliable across AMD64 and ARM64 (#519)
* fix: make OCR portable and reliable * fix: harden OCR installation portability * fix: pin OCR partials across downloads * fix: make OCR execution reliably asynchronous * fix: harden OCR portability and docs routes * fix: preserve decoder and docs safeguards
This commit is contained in:
@@ -42,6 +42,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libjxl-tools \
|
||||
ghostscript \
|
||||
qpdf \
|
||||
&& if apt-cache show libmagickcore-6.q16-7-extra >/dev/null 2>&1; then \
|
||||
apt-get install -y --no-install-recommends libmagickcore-6.q16-7-extra; \
|
||||
elif apt-cache show libmagickcore-6.q16-6-extra >/dev/null 2>&1; then \
|
||||
apt-get install -y --no-install-recommends libmagickcore-6.q16-6-extra; \
|
||||
else \
|
||||
echo "No supported ImageMagick EXR coder package found" >&2; exit 1; \
|
||||
fi \
|
||||
&& convert -list format | grep -Eq '^[[:space:]]*EXR([*[:space:]]|$)' \
|
||||
&& if apt-cache show libx265-199 >/dev/null 2>&1; then \
|
||||
apt-get install -y --no-install-recommends libx265-199; \
|
||||
elif apt-cache show libx265-209 >/dev/null 2>&1; then \
|
||||
|
||||
Reference in New Issue
Block a user