Review main Merged

43389[BUGFIX] LocalCropScaleMaskHelper consumes too much memory when cropping

Thomas Maroschik CR +2 V +2 Easy +20 −5 updated 09/17/15, 20:51

Commit message

When using the new image crop functionality in the backend the
LocalCropScaleMaskHelper crops the image using gdlib functions. Those
functions load the whole image into memory and can lead to fatal
errors because of memory limits in case of large images.

This fix replaces the gdlib functions with according ImageMagick/
GraphicsMagick functions which crop the image outside of PHP's
memory.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1