coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: richms on August 29, 2005, 12:16:00 PM

Title: error 127 on imagemagick execution - searched and no solution from there.
Post by: richms on August 29, 2005, 12:16:00 PM
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.
Title: Re: error 127 on imagemagick execution - searched and no solution from there.
Post by: richms on August 29, 2005, 12:18:50 PM
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
(
   
Title: Re: error 127 on imagemagick execution - searched and no solution from there.
Post by: Joachim Müller on August 29, 2005, 01:00:49 PM
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.
Title: Re: error 127 on imagemagick execution - searched and no solution from there.
Post by: kegobeer on August 29, 2005, 03:24:29 PM
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.
Title: Re: error 127 on imagemagick execution - searched and no solution from there.
Post by: richms on August 30, 2005, 07:59:26 AM
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?
Title: Re: error 127 on imagemagick execution - searched and no solution from there.
Post by: Joachim Müller on August 30, 2005, 08:13:28 AM
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 (http://coppermine-gallery.net/tutorial/)...