Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: error 127 on imagemagick execution - searched and no solution from there.  (Read 4897 times)

0 Members and 1 Guest are viewing this topic.

richms

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

Have read thru the search results.

The file 'albums/userpics/10001/try3.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127

Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 100x75 'albums/userpics/10001/try3.jpg' 'albums/userpics/10001/thumb_try3.jpg'


The convert program said:


File: /home/richard/justine.richms.com/gallery/db_input.php - Line: 305

running the command line from an ssh session works fine (assuming i am in the root directory of the install of coppermine.

I cant use GD as the images are from a 5 megapixel camera and that hits the limit in php, which the host will not increse for me.

Is this limit likly to be causing the failure of image magick?

And yes, it is blank after " the convert program said: "

even viewing the source shows nothing there.

Also searching for the error gets a lot of threads where people are being told to search for that exact term, which makes finding the real solution take longer.
Logged

richms

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

USER:
------------------
Array
(
    [ID] => 76378e87221add1b3e1440d35898c41d
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => xxxxxxxxx
    [user_password] => ********
    [user_lastvisit] => 2005-08-29 02:15:50
    [user_regdate] => 2005-08-29 00:42:33
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [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] => 5
    [num_URI_upload] => 3
    [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
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg134_filetypes;
  • [1] => SELECT * FROM cpg134_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '938a211765925b58c992d37f1255e6fa'
        [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg134_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg134_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg134_banned WHERE expiry < '2005-08-29 02:29:08'
        [5] => SELECT * FROM cpg134_banned WHERE ip_addr='60.234.156.17' OR ip_addr='60.234.156.17' OR user_id=1
        [6] => SELECT category FROM cpg134_albums WHERE aid='1'
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
       
[album] => 1
    [MAX_FILE_SIZE] => 4194304
    [title] => xxx
    [caption] => xxx
    [keywords] => xxx
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.3.4
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.2.0.7
==========================
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 | .:/usr/local/lib/php | .:/usr/local/lib/php
open_basedir | /var/www/domains/devianthardware.com/:/home/richard/:/var/www/domains/phpmyadmin/:/tmp/:/usr/share/pear:/var/www/vwebmail/:/usr/local/lib/php:/usr/bin | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/sendmail -t | /usr/sbin/sendmail -t
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 60 | 60
max_input_time | 120 | 120
upload_max_filesize | 30M | 30M
post_max_size | 30M | 30M
==========================
Page generated in 0.147 seconds - 7 queries in 0.004 seconds - Album set :
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

your path to ImageMagick in coppermine's config is wrong, or the user the script runs under doesn't have sufficient permissions to run the convert executable. If the server is yours to administer, set permissions (CHMOD) on the ImageMagick folder accordingly.

Joachim

P.S. Don't post debug_output unless a supporter requests it.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website

ImageMagick isn't the "holy grail" compared to GD2.  There are still memory limits, depending on how your host sets up ImageMagick.  A 5 mp image will eat up a lot of memory during any image manipulations, which could cause the process to terminiate unexpectedly - this leaves very large files in your /tmp directory; those files are counted against your storage limit.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

richms

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

Is there any alternate I can drop in there that will be able to resize these images without decompressing the whole thing to memory at once?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

resize the pic on your client, name the resized pic "normal_myimage.jpg" (if the original was named "myimage.jpg") and FTP-upload both the full-sized and the intermediate image to the same folder. Then use batch-add (with GD turned on) - coppermine will realize that there already is an intermediate sized pic and not will not attempt to create it using GD. Similar process for the thumbnail file, using the prefix "thumb_" (unless you changed the default settings for prefixes in coppermine's config). This means that you lose an important functionality of coppermine though: it will then only be used to provide a nice interface to browse your pics, however you won't be able to use it for easy uploading and pic resizing, which is not recommended. I'm convinced that your pics don't have to be that large in the first place, you might consider resizing the full-size before upload to circumvent the resize issues in the first place- most users don't need high-res pics on their websites. Take a look at the batch-resizing pics tutorial...
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.