coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: samnjugu on April 22, 2006, 03:12:24 PM

Title: http upload failure
Post by: samnjugu on April 22, 2006, 03:12:24 PM
when i perform a http upload i get the following error message:

critical error
The file 'albums/userpics/10002/muthii1.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 1

Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 100x66 'albums/userpics/10002/muthii1.jpg' 'albums/userpics/10002/thumb_muthii1.jpg'


The convert program said:
convert: unable to open image `albums/userpics/10002/muthii1.jpg': Permission denied.


File: /var/www/html/cpg144/db_input.php - Line: 391




and this is the debug info generated:

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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => muthii
    [groups] => Array
        (
           
Title: Re: http upload failure
Post by: samnjugu on April 22, 2006, 10:10:07 PM
when i open the album folder as i try upload using my file browser i see the picture trying to upload then after it finishes it goes, there are also a few pics in the album but they dont show up, since at first it would start uploading then give a message file could not be placed. when i check permissions on the albums its 777. i forgot to mention it has no problem creating new albums.
Title: Re: http upload failure
Post by: Stramm on April 23, 2006, 02:36:16 PM
you could either try to properly install ImageMagick or use GD2
Title: Re: http upload failure
Post by: samnjugu on April 24, 2006, 05:55:33 PM
how do i make coppermine use gd2 since i have already insatlled it
Title: Re: http upload failure
Post by: Stramm on April 24, 2006, 05:58:04 PM
read the docs
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_picture_thumb_advanced
Title: Re: http upload failure
Post by: samnjugu on April 25, 2006, 10:03:04 AM
i followed the link you gave me but it doesn't tell me how to tell coppermine to change over to GD since @ install it automatically chose imagemagick but i have both apps GD and imagemagick, and i have been advised for my particular problem i need to use GD to solve it.

So the question in a nutshell is how do i tell coppermine to switch to GD from Imagemagick?

am running a fedora core 4 server.

I have looked but i havent seen a thread covering this, if you have seen such a thread just point me to it thanks.
Title: Re: http upload failure
Post by: Stramm on April 25, 2006, 10:08:38 AM
config -> Files and thumbnails advanced settings -> Method for resizing images

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#admin_picture_thumb_advanced
Title: Re: http upload failure
Post by: samnjugu on April 25, 2006, 07:51:16 PM
solved thanks stramm, just changed from imagemagick to gd2 and it is working great, so if you have selinux running and you encounter permissions issues with imagemagick change to GD2 hope this helps someone out there. Now i can finnaly rest after a whole week of no sleep.