Permanent Watermark with GD2 - Page 2 Permanent Watermark with GD2 - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Permanent Watermark with GD2

Started by Burpee, June 20, 2004, 11:43:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joachim Müller

Quote from: tanfwc on July 21, 2004, 12:24:29 PM
Can this work with the lastest CPG 1.3.1?
why don't you try and give feedback?

GauGau

tanfwc

tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

tanfwc

It works. Here is the result

http://gallery.tanfwc.com/displayimage.php?album=2&pos=51

GauGau,

Can include a download package for those who do not know how to install?
tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Soong

Arrrrrrrrrrrgh, can someone help please?

Basically... I did it once, bottom-left but I didn't like the watermark I made. I made another, this time thought I'd have it top-right instead.

The one in the bottom left is still there :( How can I get rid of it?

Burpee

#24
Quote from: Soong on July 24, 2004, 06:21:02 PM
Arrrrrrrrrrrgh, can someone help please?

Basically... I did it once, bottom-left but I didn't like the watermark I made. I made another, this time thought I'd have it top-right instead.

The one in the bottom left is still there :( How can I get rid of it?
Quote from: GauGau on July 01, 2004, 12:51:26 PM
Watermarking is ireversible, that's why this mod is called "permament watermarking". I'm not sure what you mean though.

GauGau

Try reuploading the files


On another note,

Would it be possible to select:
the type of watermark and/or
wether or not you want it watermarked
when uploading?

I personally wouldn't have the slightest clue of how to do this, but it would certainly improve this mod a great deal.
Also, if somebody were to give me pointers and tell me more or less where I should look, I'd be willing to give it a shot with my extremely basic php knowledge

photoman13

awesome watermarking tool.. I gotta say I got it up and installed in less than 10 minutes.


Heck I was updating to 1.3.1 as I was waiting... nothing could have been smoother :)

jdk

Is their a way to add option for admins before they approve the pic whether to add watermark or not. So desktop backgrounds don't get water marked.

photoman13

if you put the watermark in the LOWER part of the pic and it's small enough it woul djust get covered by Windows Clock/Toolbar anyways :)

But I know what ya mean.. I already had my wallpapers up.. and I just 'skipped' adding the watermark to that folder.

Maybe in the admin panel you can select what Album Folders get watermarked and which do not. :)

Just an idea :)

tanfwc

tanfwc
[ + ] My HomePage
[ + ] GuestBook
[ + ] Photo Gallery
[ + ] Free Image Hosting

Joachim Müller

Quote from: tanfwc on August 18, 2004, 03:18:14 PM
this hacks works for 1.3.2
sure, that's why the subject says "cpg1.3.x". ;)

GauGau

courtneyeliza

HI!

I was wondering if there was a way to center the watermark at the bottom of the photo.
I have it set  up in the left corner, right now.
here's a look: http://www.courtneyelizabeth.com/photos/displayimage.php?album=48&pos=14
I noticed the center in the middle of the image watermark, but that's too far up...so I'd like to have it at the bottom and centered. Thank you for any information! :)

Courtney Elizabeth
http://www.courtneyelizabeth.com

Burpee

I hope this works :D

First apply the mod.

Further changes need to be made to the following files:

Lang/english.php
include/picmgmt.inc.php
config.php

As before, remember to make backups of all the files you are editing!

1. Open file Lang/english.php

Find this:

'wm_topright' => 'Up right',


Add this after it:

'wm_bottomcenter' => 'Centered at bottom',


2. Open file include/picmgmt.inc.php

Find this:

} else if ($pos == "bottomright") {
$src_x = $srcWidth - ($logoW + 5);
$src_y = $srcHeight - ($logoH + 5);


Add this after it:

} else if ($pos == "bottomcenter") {
$src_x = ($srcWidth/2) - ($logoW/2);
$src_y = $srcHeight - ($logoH + 5);


3. Open file config.php

Find this:

$bottomleft_selected = ($value == 'bottomleft') ? 'selected' : '';


And add this after it:

$bottemcenter_selected = ($value == 'bottomcenter') ? 'selected' : '';


Find this:

<option value="bottomleft" $bottomleft_selected>{$lang_config_php['wm_bottomleft']}</option>


And add this after it:

<option value="bottomcenter" $bottomcenter_selected>{$lang_config_php['wm_bottomcenter']}</option>


Note: the above two lines place the Bottom Centered option on the configuration page in alphabetical order, you can put it in any order within the

<select name="$name" class="listbox">

section of the code, as long as it is after the above code and before the

</select>

line of code.

That's it! All you have to do now is upload your pages and login as an administrator and update your configuration through the config button.

Alejandrito

Hi guys!!

Is there a way to watermark images that were uploaded before the watermarking mod?

Have more than 3000 pics and I don't want to upload them again... ??? ::)

Tranz

It's in Admin Tools / Add watermarks. Select an option and then the album to process.

Alejandrito

Hi, i don't really see that option, i only have

QuoteImage watermarking
Watermark Image on upload    yes/no
Where to place the watermark    bottom/right
which files to watermark    both
Which file to use for watermark    path

but no have the watermark yet :(

Tranz

Those settings are in Config. Please look at Admin Tools.

Alejandrito

Well, in the config page don't have anything like that :(

here is a screenshot

Tranz

#37
What I was saying was that the settings you were showing were in Config, but you are supposed to look in Admin Tools. It's a separate button. It is not in Config. If you can't find the button, enter this in your addressbar and go: http://AddressToGallery/util.php and substitute your gallery's path accordingly.

You probably don't see the button as Admin Tools because you are using a different language. If you are seeking help from English speakers, please change the language file accordingly so that you can see what they are telling you. You can't expect them to tell you instructions in your language.

Alejandrito

Quote from: TranzNDance on October 14, 2004, 04:22:55 PM
What I was saying was that the settings you were showing were in Config, but you are supposed to look in Admin Tools. It's a separate button. It is not in Config. If you can't find the button, enter this in your addressbar and go: http://AddressToGallery/util.php and substitute your gallery's path accordingly.

Greit! your are right, i was looking in Config and not in Admin Conf. About the language, both are the same in spanish as in english. Thanks andsorry for the troubles :)

Tranz

You're welcome. I'm glad it has been resolved.