Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
Increase image max-height
Browse files Browse the repository at this point in the history
It not unusual, when taking full-size screenshot, to get large screenshot more than 16 K pixel height.
That's especially true for one-page website.
Let's increase default max-height accepted by ImageMagick.
  • Loading branch information
Raphaël Droz committed Jul 12, 2019
1 parent 965e459 commit 63d68d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ WORKDIR /opt
RUN curl -Ls https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | tar -jxf -
RUN apt-get -qq update && apt-get -qq install fontconfig
RUN ln -s /opt/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/
RUN sed -ri '/policy.*name="height"/s/value="([^"]*)"/value="32KP"/' /etc/ImageMagick-6/policy.xml

WORKDIR /app
ADD Gemfile* /app/
Expand Down

0 comments on commit 63d68d0

Please sign in to comment.