Permanent Watermark with GD2 - Page 8 Permanent Watermark with GD2 - Page 8
 

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 2 Guests are viewing this topic.

Schubi

Is there somewhere a downloadlink for this modification?

Joachim Müller

no, you have to apply the changes needed for this mod manually, as suggested in the first posts in this thread.

Joachim

Schubi

Servus GauGau! Thx - updated the files and it it works really fine! Take a look here!

yaakoob

Quote from: Nibbler on March 10, 2005, 05:16:00 PM
You should be able to use the is_image() function to check if the file is an image, and only apply the watermark if it is.

Can you give a little more info about how to use that function in coppermine to prevent error with non-picture files? My php skills are basic at best and my coppermine skills are even worse.


ggnetworks

does all images that are batched get the watermark? also the original size image, like when u click on an image and it opens up in 100% scale, will that be watermarked too?

fedexx

Hello! I was seeing the code, proving it I have realized that when upload swf files gives error and upload cannot be done, somebody has solved east error?

pgrzegorc

And how to add diffenren watermarks ( not only 1 watermark whole all albums, categories ) for diferent users during upload???
Because in my gallery about 20 users can upload files and I want that each user will be have own watermark - it's obvious, but how to it do during uploading? any hacks???


Pawel

djmac

Burpee

I was able to install your mod without any errors. I also don't get any results.  :-[  I also notice that the watermark image block in the config isn't saving the data enterd. Although the (path) and (1) and (both) are in the SQL. GD2 is available by default both in php and perl.

In your post you say (the prefix highlighted in red should be edited by the user to make sure it corresponds to their gallery prefix.. latest CPG should have cpg130 as prefix.) I am running 1.3.2 of CPG, so I used the prefix of 132 which the other tables were using. Was that the correct thing to do. Other than that I am all eyes on your advice.

Regards
Don

-TRshady-

Hey Burpee, thanks for a great mod, am having a problem though:


1. When batch adding , the original full size image does not get watermarked
Check this Image as an example. << Was batched added but when you click to view the larger image, no watermark is seen.
Then check this image. << was uploaded through the 'upload a file' button and you can see the full size image did get watermarked.

So what could be preventing the full size image getting watermarked when batch adding?

2. Broken 'result image' when batch adding

My second problem is when batch adding for watermarking. The results screen which usually shows 'OK', 'DP' and so on for example is a broken image. What would be causing this and could you offer a solution?

Would greatly appreciate the help!

-TRshady-

Anyone able to help with this?  :\'(

-TRshady-

5 days later ... where are you burpee?

Joachim Müller

mod authors rarely re-visit their thread. As sf.net has disabled outbound email traffic, there's no currently not even notification working. I guess you're on your own with this.

yaakoob

Quote from: yaakoob on April 25, 2005, 01:06:28 AM
Quote from: Nibbler on March 10, 2005, 05:16:00 PM
You should be able to use the is_image() function to check if the file is an image, and only apply the watermark if it is.

Can you give a little more info about how to use that function in coppermine to prevent error with non-picture files? My php skills are basic at best and my coppermine skills are even worse.



Joachim Müller

read my posting just one above yours. This mod goes unsupported by the original author, you're on your own when using it. If people don't answer your question, it usually means that they don't know the answer or that they don't want to answer. Read FAQ: I've posted my question a while ago, but nobody answers. What the...?

_Samantha_

Hi @ll!

Of you chop functioned great, however only in English! Does it
give not also into German?

please help me ...

::)

_Samantha_

Joachim Müller

please rephrase your question, I don't understand (and I don't think others will). You might want to illustrate your question with a screenshot.

_Samantha_

Apology asks, if I expressed myself so misleadingly, but mine english
is not very good. Thanks, which answered me someone. My problem: that
chop can only in "english.php" be used, one presupposes thus, the
baking and front-end are "English". I however would like a German
copilot by mine baking and front-end. The Howto refers however only to
"english.ph" - I need the Howto for "german.php". Or do I make which
traffic and I can chop just as well to "german.php" to apply?

Who can help me?

-- Samantha --

Nibbler

You can safely apply the changes to the german.php instead of english.php.

undeshila

GREAT mod , tnx
i've added the mod , no problem , all the new pics get watermarked , BUT , i also want to watermark the old images. As mentioned on the 2nd page i think , i went to the util.php , found the utility to watermark albums , only that , i have 600+ albums .... and modifing each and everyone will be hell.

Can someone tell me a way to select ALL the albums pls ?!

Stramm

you'll have to modify the code for that
open util.php and find function updatethumbs()
a few lines below you'll see
    $query = "SELECT * FROM $picturetbl WHERE aid = '$albumid'";

replace it with
    $query = "SELECT * FROM $picturetbl";


now it doesn't matter what album you set in the admin tools... coppermine will just process them all