Make WordPress Core


Ignore:
Timestamp:
12/03/2012 07:44:58 PM (13 years ago)
Author:
ryan
Message:

Increase the PHP memory_limit to WP_MAX_MEMORY_LIMIT in WP_Image_Editor_Imagick.

Props DH-Shredder
fixes #22699

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-image-editor-imagick.php

    r22904 r22997  
    120120            return new WP_Error( 'error_loading_image', __('File doesn’t exist?'), $this->file );
    121121
     122        // Even though Imagick uses less PHP memory than GD, set higher limit for users that have low PHP.ini limits
     123        @ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
     124
    122125        try {
    123126            $this->image = new Imagick( $this->file );
Note: See TracChangeset for help on using the changeset viewer.