Watermark on a per image basis - Page 4 Watermark on a per image basis - Page 4
 

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

Watermark on a per image basis

Started by Karri, January 22, 2004, 02:15:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Stramm

Quote from: pgrzegorc on June 12, 2005, 05:36:02 PM
Can I used a few watermarks during to upload picturees to my gallery??
for example I have a few categories, a few albums, about 20 person can upload to my gallery and I want during uploding files add to pictures different watermark for different users but I should make it???

Pawel

you still need a solution for this?? I think it's easy to do

sigepjedi


Joachim Müller

Quote from: GauGau on September 19, 2005, 10:43:29 PM
why don't you try to find it out and post your results? How else should we know unless someone tries, especially since cpg1.4.x goes currently unsupported. Be a giver as well instead of being only a taker.
same thing on this thread.

sigepjedi

Quote from: GauGau on September 19, 2005, 10:47:33 PM
try to find it out and post your results?

if i had figured it out, i assure you i would have posted.
My how 1.4 has really brought down the moral around here....

artistsinhawaii

#64
Quote from: sigepjedi on September 25, 2005, 03:45:15 AM

if i had figured it out, i assure you i would have posted.
My how 1.4 has really brought down the moral around here....

? I'm thinking just the opposite.  If anything it has got me excited and I sense the same excitement in those that are working hard to complete the new version.  I'm very eager for the release of a stable version.  So much so that in the two months that I have been a member here (which is as long as my experience with Coppermine, HTML, PHP, Java, and such) I have contributed 239 posts in the hopes that my efforts here will give the devs more time to work the kinks out of 1.4x.  My experiences in the 1.4x Bugs boards with the Devs have been very positive and enlightening to my knowledge and understanding of Coppermine and PHP.

If those in the know would help deal with many of the smaller issues on the boards, I'm convinced that 1.4x would be released much sooner. 

Just a newbie,

Dennis   
OOPS... make that 240 posts in two months...including 1-mod update, 1 mini-mod, and I've even applied Casper's paypal mod to my 1.4, though the last hasn't been posted as I am currently working on a different approach for a client-based paypal mod for both 1.3x and 1.4x rooted to my mini mod.   
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

300zxtc

I only have a pre GD2 release. What can I do?

Karri

I am not really a php guru and I haven't done anything with this hack in forever but i noticed http://forum.coppermine-gallery.net/index.php?topic=26858.0 which will do basically the same thing as mine with a few modifications and works in 1.4.3.  Do everything he says to do which will set it to watermark all images.  To set it to pick which images are on and off just change

if((($mode == "normal") || ($mode == 'fullsize')) && ($CONFIG['thumb_method']=='im')){
in his hack instructions to

Quoteif((($mode == "normal") || ($mode == 'fullsize')) && ($CONFIG['thumb_method']=='im') && ($pic_row['user1']=="YES")){

then from my original post

In the config section of your gallery set the "Custom fields for image description" Field 1 name to "Watermark".

Now is the optional part.  If you want the watermark on by default (it is only on by default for images you upload after you make this change, the other images you will have to go through and turn it on one by one.  I haven't found a way around that although I am sure there is a way to do it in one big batch) go to

include/picmgmt.inc.php and change

function add_picture($aid, $filepath, $filename, $position = 0, $title = '', $caption = '', $keywords = '', $user1 = '', $user2 = '', $user3 = '', $user4 = '', $category = 0, $raw_ip = '', $hdr_ip = '', $iwidth = 0, $iheight = 0)
[code]

to

[code]function add_picture($aid, $filepath, $filename, $position = 0, $title = '', $caption = '', $keywords = '', $user1 = 'YES', $user2 = '', $user3 = '', $user4 = '', $category = 0, $raw_ip = '', $hdr_ip = '', $iwidth = 0, $iheight = 0)


The script looks for the  "YES" in the watermark field ($user1) so if you don't want the watermark to appear just remove the YES from that field.[/code][/code]
Thanks,
Karri

Dirk

I tried the mod and got the following message:
Notice: Undefined index: user1 in /mnt/be2/03/314/00000016/htdocs/fotoarchiv/include/functions.inc.php on line 1279


link to the gallery:
http://www.dirk-thoelking.de/fotoarchiv/


This is line 1279:
if ($pic_row['user1']!="YES") {


Where did i go wrong? Is ist a problem if have the install die following mod too?
http://forum.coppermine-gallery.net/index.php?topic=3269.0


Many thanks!

Joachim Müller

disable notices if they don't mean anything to you.

cryogen

Hi!

How can I place a watermark into thumbnails in Album listing using that hack?

Thanks

thecave

Hey, works great. I'm still testing this out.
I noticed when I right-click the image in all sizes that the file save info says "logo.php". Is there anyway on the back-end to configure this prob so when you right-click and save the image it can show the actual filename or maybe even a custom file save name? Thanks.

Here's a watermark image in my gallery that I'm talking about.
http://www.z28cave.com/membergallery/displayimage.php?album=lastup&cat=10&pos=0
Try saving the image and you'll see what I'm talking about.

I do not know php so that's why I ask for help, thanks.

:)

elizabethh

hi, i am a new user to coppermine. i have done all these; what next? how can i turn on watermarking on the pictures?

Victoryfan


        return $url_prefix[$pic_row['url_prefix']]. path2url($pic_row['filepath']. $pic_prefix[$mode]. $pic_row['filename']);


Can't find it! In what line is it?

Nibbler

Look for the get_pic_url function.

Victoryfan