coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: golf7 on February 03, 2006, 04:11:42 AM

Title: Imagemagik Problem, Return value: 188
Post by: golf7 on February 03, 2006, 04:11:42 AM
The file 'albums/userpics/10001/me_and_carolyn~2.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 188

Cmd line :
/usr/local/bin/convert -quality 80 -antialias -geometry 100x85 'albums/userpics/10001/me_and_carolyn~2.jpg' 'albums/userpics/10001/thumb_me_and_carolyn~2.jpg'


The convert program said:
/usr/local/bin/convert: MemoryAllocationFailed (UnableToAllocateCacheInfo) [Cannot allocate memory].


File: /usr/local/psa/home/vhosts/academyofdanceinc.com/httpdocs/photos.academyofdanceinc.com/db_input.php - Line: 391

************************************************************************************************************

Debug Info:

USER:
------------------
Array
(
    [ID] => 5e9ef438e050f74ee76315bc5b5b96dc
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => golf7
    [groups] => Array
        (
           
Title: Re: Imagemagik Problem, Return value: 188
Post by: kegobeer on February 03, 2006, 12:56:43 PM
ImageMagick is running out of memory while working with that image.  Large dimension images eat up a lot of resources, and ImageMagick is simply consuming everything available during the convert process.
Title: Re: Imagemagik Problem, Return value: 188
Post by: golf7 on February 03, 2006, 04:04:28 PM
So there is no way to fix this problem?

Anyway to scale down the speed it tried to convert it in, or scale down the options or something?

thanks alot for the info btw, i really appreciate it

btw, my server says i have GD 1.xx and GD2.xx installed but when i change the options to use them, the file uploads, but then i click on add to album, and the screen is all white, like a php parsing error or something
Title: Re: Imagemagik Problem, Return value: 188
Post by: Joachim Müller on February 03, 2006, 04:40:27 PM
try uploading a known-good jpeg file that is small both in file size and dimensions for testing purposes, my guess is that you're trying to add a file that is extremely large.
Title: Re: Imagemagik Problem, Return value: 188
Post by: golf7 on February 04, 2006, 09:26:24 PM
it works for all files but this one, and its only 675kb and like 1800x1500 pixals, not that big

i really dont know why its not working on that file

But for all other files ive tried it is working, ive tried files straight from the digital camera, and they worked and they are like 2100x1800 or something and over 1mb

thanks for the help guys, maybe ill get it sorted out
Title: Re: Imagemagik Problem, Return value: 188
Post by: kegobeer on February 05, 2006, 04:35:54 AM
Is the image's color profile RGB or CMYK?  CMYK images tend to cause GD and ImageMagick to choke.
Title: Re: Imagemagik Problem, Return value: 188
Post by: Joachim Müller on February 05, 2006, 09:15:03 PM
Post a deep link directly to the pic, so we can take a look at it.