Lullabot / drupal9ci

Command Line Interface for implementing Continuous Integration in Drupal 9
GNU General Public License v3.0
161 stars 55 forks source link

Increase the ImageMagic max image dimensions #43

Closed quicksketch closed 1 year ago

quicksketch commented 5 years ago

When a test failure occurs, Behat tries to take a screenshot of the failure. A screenshot is captured for every step of the test, and then concatenated together into one big image. These large images can easily exceed the maximum image dimensions for ImageMagick. We should increase this to a very large value by default.

This value can be modified in /etc/ImageMagick-6/policy.xml, e.g.

  <policy domain="resource" name="width" value="10MP"/>
  <policy domain="resource" name="height" value="200MP"/>
quicksketch commented 5 years ago

For the time being I've added this to bump up the default in a simple find/replace method:

  before_script:
    - sed -i -e "s/16KP/200MP/" /etc/ImageMagick-6/policy.xml
deviantintegral commented 1 year ago

I'm closing this given there's been no movement in several years.