forum.coppermine-gallery.net

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
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [album] => 1
    [MAX_FILE_SIZE] => 2097152
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.6 - OK
------------------
mySQL version: 4.1.10a
------------------
Coppermine version: 1.4.3(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.22 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support: 1

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.18
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 8M | 8M
post_max_size | 8M | 8M
==========================
Page generated in 6.321 seconds - 16 queries in 0.052 seconds - Album set : ; Meta set: ;

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


Thats the error that I get, however my uploads work with other files that ive tried, its just this one file thats having trouble, and i created it in photoshop, so i dunno what the problem is

test account:

photos.academyofdanceinc.com
test
test
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.