Skip to content

Commit

Permalink
memory tuning for imagick (#2451)
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Mar 12, 2023
1 parent 698f155 commit f18ab5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/previewgenerator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ then
then
install_if_not libmagickcore-6.q16-3-extra
fi
# Memory tuning
sed -i 's|policy domain="resource" name="memory" value=.*|policy domain="resource" name="memory" value="512MiB"|g' /etc/ImageMagick-6/policy.xml
sed -i 's|policy domain="resource" name="map" value=.*|policy domain="resource" name="map" value="1024MiB"|g' /etc/ImageMagick-6/policy.xml
sed -i 's|policy domain="resource" name="area" value=.*|policy domain="resource" name="area" value="256MiB"|g' /etc/ImageMagick-6/policy.xml
sed -i 's|policy domain="resource" name="disk" value=.*|policy domain="resource" name="disk" value="8GiB"|g' /etc/ImageMagick-6/policy.xml

# Choose file formats fo the case when imagick is installed.
# for additional previews please look at the Nextcloud documentation. But these probably won't work.
choice=$(whiptail --title "$TITLE - Choose file formats" --checklist \
Expand Down

0 comments on commit f18ab5f

Please sign in to comment.