|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-10-05 07:52 UTC] samro dot subhro at gmail dot com
Description:
------------
Getting error Uncaught exception 'ImagickException' with message 'memory allocation failed while trying to write an image. Working fine with windows XAMPP server but getting error on Linux server
Reproduce code:
---------------
<?php
$thumb = new Imagick();
$thumb->readImage('1.jpg');
$thumb->writeImage('test.gif');
$thumb->clear();
$thumb->destroy();
?>
Expected result:
----------------
This should work fine
Actual result:
--------------
This is showing a FATAL error
Its showing
Fatal error: Uncaught exception 'ImagickException' with message 'memory allocation failed `/home/p21628/domains/bannermaken.nl/public_html/magic/test.gif' @ error/gif.c/WriteGIFImage/1627' in /home/p21628/domains/bannermaken.nl/public_html/magic/index6.php:4 Stack trace: #0 /home/p21628/domains/bannermaken.nl/public_html/magic/index6.php(4): Imagick->writeimage('test.gif') #1 {main} thrown in /home/p21628/domains/bannermaken.nl/public_html/magic/index6.php on line 4
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
I'm experiencing same problem on BlueHost with a simple WordPress image upload. ImagickException::__set_state(array( 'message' => 'memory allocation failed `2016-10-19-02-15-300x225.gif\' @ error/gif.c/WriteGIFImage/1633', 'string' => '', 'code' => 400, 'file' => '/wp-includes/class-wp-image-editor.php', 'line' => 424, 'trace' => array ( 0 => array ( 'function' => 'writeimage', 'class' => 'Imagick', 'type' => '->', 'args' => array ( 0 => '2016-10-19-02-15-300x225.gif', ), ),