so let's start
first the necessary SQL
Code:
insert into cpg_config (name, value) values ('enable_watermark', '1');
insert into cpg_config (name, value) values ('where_put_watermark', 'bottomright');
insert into cpg_config (name, value) values ('watermark_file', '/your/full/path/to/logo.png');
insert into cpg_config (name, value) values ('which_files_to_watermark', 'both');
insert into cpg_config (name, value) values ('orig_pfx', 'orig_');
insert into cpg_config (name, value) values ('watermark_transparency', '0');
insert into cpg_config (name, value) values ('watermark_transparency_featherx', '0');
insert into cpg_config (name, value) values ('watermark_transparency_feathery', '0');
Okay so I guess I'm just not getting this..... I've figured out that I have to go into the /coppermine/sql folder and insert this into one of the files... but I'm not sure what one to modify (if it even matters). I have the choice of basic, schema, and update sql files...
Anyone have an idea what one is supposed to get the code above?
Okay so I gave it a go figuring I've got a recent backup and nothing I can do but learn from this.
I updated basic.sql with the code from above and modified the rest of the files per this thread. When I try to do a single picture upload I get these errors after placing it into an album:
Warning: imagesx(): supplied argument is not a valid Image resource in /usr/local/apache2/htdocs/Levanger/coppermine/include/picmgmt.inc.php on line 245
Warning: imagesy(): supplied argument is not a valid Image resource in /usr/local/apache2/htdocs/Levanger/coppermine/include/picmgmt.inc.php on line 246
Warning: imagecolorat(): supplied argument is not a valid Image resource in /usr/local/apache2/htdocs/Levanger/coppermine/include/picmgmt.inc.php on line 269
Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /usr/local/apache2/htdocs/Levanger/coppermine/include/picmgmt.inc.php on line 269
Warning: imagecopymerge(): supplied argument is not a valid Image resource in /usr/local/apache2/htdocs/Levanger/coppermine/include/picmgmt.inc.php on line 270
In my coppermine config I'm set to
GD2
Watermark Yes
Center
Both
/images/watermark.png (I have also tried /usr/local/apache2/htdocs/Levanger/coppermine/images/watermark.png).
Any suggestions?