Permanant watermark with undo possibility (GD2+IMagick) - Page 11 Permanant watermark with undo possibility (GD2+IMagick) - Page 11
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Permanant watermark with undo possibility (GD2+IMagick)

Started by Stramm, March 26, 2005, 06:09:36 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

jbinc

ok figured out the problem, the mod works with gd but when i change ti imagemagik it doesnt work just stays loading.......any possible idea why it might be?

Stramm

the composite command seems not to work. You could try using mogrify ....

jbinc

mogrify actually isnt an option for the command line, tried another one, -average but still same thing....  :-\\

Stramm

if you don't get results with 'whereis composite' or 'whereis mogrify' (in a shell) then ImageMagick isn't fully installed

pgrzegorc

Quote from: Stramm on October 17, 2005, 09:37:33 AM
you haven't set watermarks fully transparent? Try 50%

If you don't get any errors then try the standard watermark picmgmnt.inc.php from site 1 of this thread. Then we can see if it's a general problem or one with the multi watermarks

According to your sugestions Stramm I back to the picmgmnt.inc.php from 1 site of this thread and watermarking was working properly!!! but only for the first time, next time not :-( but I didn't change anything.
I tried to make the same and next time but watermarking not working at all :-(, what is hell going on :-( ???
When I used picmgmnt.inc.php from 1 site, from the newest for multi users/watermarks or standard picmgmnt.inc.php from lib is still not working :-( brrrr....

Stramm you have any idea what is going on???




Stramm

No, I can't really follow you. If you want, you can send me your ftp access info and a cpg admin login. Then I'll have a look

Stramm

oh boy, you have applied that watermark mod http://forum.coppermine-gallery.net/index.php?topic=7160.0

if you want it to work you'll have to use the original picmgmnt.inc.php that comes with coppermine and modify it accordingly.
If you want to use my watermark mod, then you'll have to install it. There's config stuff missing etc. and I bet some mysql stuff as well. I haven't checked all teh fiels but I guess you just have replaced the picmgmnt.inc.php and that's for sure not enough. These both mods aren't compatible. They work on a completely different way.

pgrzegorc

Quote from: Stramm on October 18, 2005, 08:09:50 AM
oh boy, you have applied that watermark mod http://forum.coppermine-gallery.net/index.php?topic=7160.0

if you want it to work you'll have to use the original picmgmnt.inc.php that comes with coppermine and modify it accordingly.
If you want to use my watermark mod, then you'll have to install it. There's config stuff missing etc. and I bet some mysql stuff as well. I haven't checked all teh fiels but I guess you just have replaced the picmgmnt.inc.php and that's for sure not enough. These both mods aren't compatible. They work on a completely different way.

Do you recommended me install whole gallery again (delete present gallery) ??? It's a longgg time to install whole gallery and upload whole pictures again :-(,

Or I can should change maybe only some kind of code in a few files???



Regards,
Pawel

Stramm

you don't need to reinstall CPG. And don't delete your pics and the database. If you haven't added other mods it's pretty easy. Just replace the files you've edited with unedited ones.. done.


pgrzegorc

Quote from: Stramm on October 18, 2005, 09:28:26 AM
you don't need to reinstall CPG. And don't delete your pics and the database. If you haven't added other mods it's pretty easy. Just replace the files you've edited with unedited ones.. done.



But I wolud like to use your watermark hack because I would like to have one different watermark for each user, and what I should exactly do  to replace to your multi watermark mod???

Stramm

then just remove the db entries you'd done when applying the other watermark mod
from the other thread:
insert into cpg11d_config (name, value) values ('enable_watermark', '1');
insert into cpg11d_config (name, value) values ('where_put_watermark', 'bottomright');
insert into cpg11d_config (name, value) values ('watermark_file', '/your/full/path/to/logo.png');
insert into cpg11d_config (name, value) values ('which_files_to_watermark', 'both');


and replace the modified files with fresh ones (if you haven't customized them). Otherwise just undo each of the steps mentioned there

ISBB

after installing the mod i get this on single up load

While executing query "SELECT auto_subscribe_post FROM **ERROR** WHERE user_id='2'" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '**ERROR** WHERE user_id='2'' at line 1
File: C:\apache\htdocs\nick\ddr\gallery\include\functions.inc.php - Line: 105

USER:
------------------
Array
(
    [ID] => 1be5c48d8e2b11ebff77e5610f4bc080
    [am] => 1
    [liv] => Array
        (
            [0] => 19
        )

)

==========================
USER DATA:
------------------
Array
(
    [0] => 2
    [user_id] => 2
    [1] => ISBB
    [user_name] => ISBB
    [2] => 1
    [user_level] => 1
    [groups] => Array
        (
            [0] => 1
            [1] => 2
        )

    [group_quota] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [upload_form_config] => 3
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [custom_user_upload] => 0
    [disk_max] => 1024
    [disk_min] => 0
    [ufc_max] => 3
    [ufc_min] => 3
    [has_admin_access] => 1
    [group_name] => Admin
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg135_filetypes;
    [1] => SELECT user_id, username as user_name, user_level FROM `ddr`.phpbb_users WHERE user_id='2' AND user_password='77df7f6dfb16f51f7d9008c12765a986' AND user_active='1'
    [2] => SELECT (ug.group_id + 5) as group_id FROM `ddr`.phpbb_user_group as ug LEFT JOIN `ddr`.phpbb_groups as g ON ug.group_id = g.group_id WHERE user_id = 2 AND user_pending = 0 AND group_single_user = 0
    [3] => 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 cpg135_usergroups WHERE group_id in (1,2)
    [4] => SELECT group_name FROM  cpg135_usergroups WHERE group_id= 1
    [5] => DELETE FROM cpg135_banned WHERE expiry < '2005-10-20 16:47:08'
    [6] => SELECT * FROM cpg135_banned WHERE ip_addr='24.234.163.152' OR ip_addr='24.234.163.152' OR user_id=2
    [7] => SELECT aid, title FROM cpg135_albums WHERE category < 10000 ORDER BY title
    [8] => SELECT aid, title FROM cpg135_albums WHERE category='10002' ORDER BY title
    [9] => SELECT encoded_string FROM cpg135_temp_data WHERE unique_ID = '122baf2d'
    [10] => UPDATE cpg135_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = '122baf2d'
    [11] => SELECT category FROM cpg135_albums WHERE aid='1'
    [12] => INSERT INTO cpg135_pictures (pid, aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip) VALUES ('', '1', 'userpics/10002/', 'bdwg2~1.JPG', '41996', '64874', '584', '390', '1129852031', '2', 'ISBB','', '', '', 'YES', '', '', '', '', '24.234.163.152', '24.234.163.152')
    [13] => SELECT auto_subscribe_post FROM **ERROR** WHERE user_id='2'
)

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

==========================
POST :
------------------
Array
(
    [album] => 1
    [title] =>
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => 122baf2d
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.4 - OK
------------------
mySQL version: 4.1.10a-nt
------------------
Coppermine version: 1.3.4
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.15 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read 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
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
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\includes | .;c:\php\includes
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | aaron@z400.net | aaron@z400.net
sendmail_path | no value | no value
SMTP | mail.z400.net | mail.z400.net
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30000 | 30000
max_input_time | 3000 | 3000
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 2.436 seconds - 14 queries in 0.026 seconds - Album set :


Any help.. :D
Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.

ISBB

and for what its worth.. this is bridged w/ phpbb  Also the image i was uploading.. ALSO uploaded correctly... :D  i just gotta figure out how to get rid of this error..
Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.

Stramm

it's not related to the watermark hack. This is a mod pack issue. And as you already figured out it's cause you have bridged your coppermine. To get rid of the error either add a column to your boards members table as I did with the CPGs member table and change the notification system queries.. or just turn off email notification on comments in config

ISBB

Turned off e-mail notifications on comments in the config and the problem still persists... how do i go about the other route?
Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.

Stramm

Ok, I checked where you got this errer and I guess it's while uploading. If you comment on a pic you may get on as well.

in picmgmnt.inc.php find
$result2 = db_query("SELECT auto_subscribe_post FROM {$CONFIG['TABLE_USERS']} WHERE user_id='".$user_id."'");
if(list($auto_subscribe_post) = mysql_fetch_row($result2)){
if ($CONFIG['enable_user_notification'] && $auto_subscribe_post) {
$result3 = db_query("SELECT pid FROM {$CONFIG['TABLE_PICTURES']} WHERE ctime='".$time."' AND filename='".addslashes($filename)."'");
    if(list($pid) = mysql_fetch_row($result3)){
db_query("INSERT INTO {$CONFIG['TABLE_NOTIFY']} (user_id, picture_id) VALUES('".$user_id."' ,'".$pid."')");
}
}

and delete it. Email notification won't work properly anymore. This is the part to auto subscribe to pics users upload

ISBB

well if email notification is turned off in the config anyhow.. .what would it matter if thats deleted right?
Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.

Stramm


ISBB

let me give it a whirl.. :D  If not ill just delete it and start over again doing just the WM mod and that should cure the probs right..
Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.

ISBB

that didnt do it for me.. so i just restored my copy of the dbase and files pre the pack install... do you have JUST the watermark modded files or do i need to go do it by hand... and its on a pretty vanilla install w/ the exception of the briding as previously noted
Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.