Hello,
all my file have a Thumbnail preview. Only MS Files. Installed LibreOffice. So odt would get also preview. As Online Office i use Onlyoffice.
In cofig.puhp MS office is included.
Any Ideas?
Hein
Hello,
all my file have a Thumbnail preview. Only MS Files. Installed LibreOffice. So odt would get also preview. As Online Office i use Onlyoffice.
In cofig.puhp MS office is included.
Any Ideas?
Hein
same here, i folllow the instuction at the link. But no perview with MS Office files. Libre Office is installed
unfortunately i still have the problem. Does it work for you? What could be the reason?
I have same problem. NO SOLUTION ???
The .cache folder can’t be created. It need to be created manually as described in the github link above.
hmm i thin no, doc and xls works fine, only docx and xlsx have no preview. and wen i ran preview:generate-all -vvv there is no error
I managed to fix that by installing libreoffice
, default-jre
and libreoffice-java-common
!
Easiest way to make it work for every update is to add it in a Dockerfile like so:
(this one is a modified version from here: docker/Dockerfile at master · nextcloud/docker · GitHub)
FROM nextcloud:apache
RUN set -ex; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
ffmpeg \
libmagickcore-6.q16-6-extra \
procps \
smbclient \
supervisor \
#Install ghostscript for PDF Previews and libreoffice/default-jre/libreoffice-java-common for DOCX Previews
ghostscript \
libreoffice \
default-jre \
libreoffice-java-common \
; \
rm -rf /var/lib/apt/lists/*
RUN set -ex; \
\
savedAptMark="$(apt-mark showmanual)"; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
libbz2-dev \
libc-client-dev \
libkrb5-dev \
libsmbclient-dev \
; \
\
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
docker-php-ext-install \
bz2 \
imap \
; \
pecl install smbclient; \
docker-php-ext-enable smbclient; \
\
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark; \
ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
| awk '/=>/ { print $3 }' \
| sort -u \
| xargs -r dpkg-query -S \
| cut -d: -f1 \
| sort -u \
| xargs -rt apt-mark manual; \
\
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p \
/var/log/supervisord \
/var/run/supervisord \
;
COPY supervisord.conf /
ENV NEXTCLOUD_UPDATE=1
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
#Enable PDF Previews
RUN sed -i 's+domain="coder" rights="none" pattern="P+domain="coder" rights="read|write" pattern="P+' /etc/ImageMagick-6/policy.xml
RUN sed -i 's+domain="coder" rights="none" pattern="E+domain="coder" rights="read|write" pattern="E+' /etc/ImageMagick-6/policy.xml
RUN sed -i 's+domain="coder" rights="none" pattern="X+domain="coder" rights="read|write" pattern="X+' /etc/ImageMagick-6/policy.xml