Beispiel #1
0
 /**
  * Constructor.
  *
  * @param resource $image GD image resource
  */
 protected function __construct($image)
 {
     $this->_setImage($image);
     // make sure we have enough memory for a temporary copy of this image
     $memoryBuffer = $this->_width * $this->_height * 5 * 1.25;
     $availableMemory = XenForo_Application::getAvailableMemory();
     if ($availableMemory && $availableMemory < $memoryBuffer) {
         XenForo_Application::increaseMemoryLimit($memoryBuffer - $availableMemory);
     }
 }