Hi everyone,
My apologies if I missed a solution to my problem. I trawled through the documentation and this forum but couldn't see anything relevant.
Here's what I've done:
1. Set permissions on the albums directory as specified in the tutorial.
2. Enabled file_upload in php.ini, and created temp dir for upload and set the appropriate permissions
3. Narrowed down uploads to single files only to pinpoint the errors,
Here's what's happened:
============
= Error message =
============
QuoteThe file 'albums/userpics/10001/hungry.jpg' can't be inserted in the album
Error executing ImageMagick - Return value: -1
Cmd line :
C:/ImageMagick-6.2.4-Q16/convert -quality 80 -antialias -geometry 100x69 "H:\gallery\albums\userpics\10001\hungry.jpg" "H:\gallery\albums\userpics\10001\thumb_hungry.jpg"
The convert program said:
File: H:\gallery\db_input.php - Line: 305
When I looked in the H:\gallery\albums\userpics\10001 directory there was no image files in there at all. That's probably why ImageMagick complained? It couldn't find the source file to process...
===========
= Debug stuff =
===========
QuoteUSER:
------------------
Array
(
[ID] => b96e466b76c8bc4f61bd8a5412e9649f
[am] => 1
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => admin
[user_password] => ********
[user_lastvisit] => 2005-09-18 19:14:33
[user_regdate] => 2005-09-18 16:54:10
[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) = '0a14de5a76e5e14758b04c209f266726'
[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-09-18 19:30:56'
[5] => SELECT * FROM cpg134_banned WHERE ip_addr='192.168.1.45' OR ip_addr='192.168.1.45' OR user_id=1
[6] => SELECT category FROM cpg134_albums WHERE aid='1'
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[album] => 1
[MAX_FILE_SIZE] => 1048576
[title] =>
[caption] =>
[keywords] =>
[event] => picture
)
==========================
VERSION INFO :
------------------
PHP version: 5.0.5 - OK
------------------
mySQL version: 4.1.14-nt
------------------
Coppermine version: 1.3.4
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.1.7
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
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 | .;C:\php-5.0.5-Win32;C:\php-5.0.5-Win32\pear | .;C:\php-5.0.5-Win32;C:\php-5.0.5-Win32\pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | no value | no value
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 | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.192 seconds - 7 queries in 0.004 seconds - Album set :
Thanks in advance. Again, my apologies if I missed a previously-posted solution to this issue.
Cheers,
Dany.
It seems that just about every other problems with ImageMagick was solved by using GD2. That's just what I did and it seems to work. I only have one question about this.
Is there any quality difference between ImageMagick and GD2? I only have a mediocre LCD monitor so can't quite tell the difference. Any comments would be greatly appreciated.
Cheers,
D.
IMO, GD2 and ImageMagick are nearly equal in quality. All Coppermine does is make smaller versions of your images - so even if ImageMagick is a bit better, does that really matter? In my opinion, it does not.
Quote from: kegobeer on September 18, 2005, 07:34:37 PM
IMO, GD2 and ImageMagick are nearly equal in quality. All Coppermine does is make smaller versions of your images - so even if ImageMagick is a bit better, does that really matter? In my opinion, it does not.
Thanks for that. Things seem to be working just fine with GD2. Just out of curiosity, is there a known issue with ImageMagick in setups like mine? I see quite a few posts about problems with IM, and the replies often suggest going to GD2.
D.
Installing ImageMagick on Windows is a tricky task. Most of the time permissions just aren't set correctly and it's hard to get it working. That's why we recommend using GD2 instead of ImageMagick for Windows installs.