Permanent Watermark with GD2 - Page 4 Permanent Watermark with GD2 - Page 4
 

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.

yemgi

Thanks for pointing this out :)

The directories were in 777 but the ffiles I uploaded by FTP were in 644 mod while the normally uploaded ones are 666. I chmoded all files as 666 and all works fine now :)

Thanks a lot for your help and this great mod :)

Boegh

Burpee > Totally great hack/add-on!!
I love it, keep up the great work!

GauGau > Is it possible to add this hack permanently to future releases of CPG?
So that we do not have to implement it manually in new versions?

// Greetings Boegh -  Denmark

Joachim Müller

This will only be included if someone comes up with a hack that makes the mod work both for users running GD and ImageMagick.

Joachim

Tranz

PHP lets us place text, shapes, lines on top of image files on-the-fly, kind of like your IP on the AV trick. Is it possible to put image files on top of image files? Would that function depend on server settings? Would it be too resource intensive if it's done on-the-fly?

Joachim Müller

Quote from: TranzNDance on October 25, 2004, 07:55:34 AMWould it be too resource intensive if it's done on-the-fly?
Yes, that's what all those watermark mods available do. They can only be used on sites with nearly no traffic, on larger sites they will bring the server down (or at least, they will get you in trouble with your webhost).
My avatar is just some "proof of concept" thing that can only be done because my personal page if a low traffic site and the image I use is rather small. Doing this stunt "On the fly" with a full-size pic would be way to resources-consuming. Another drawback of the method I use for my avatar is that it relies on GD2, it won't work with GD1 nor ImageMagick (that's why I haven't started coding it for cpg).

Joachim

DaRichMan

Quote from: DaRichMan on October 23, 2004, 04:27:09 PM
Still getting errors like:
Warning: imagesy(): supplied argument is not a valid Image resource in ../include/picmgmt.inc.php

Does anyone know what's wrong?

Sorry for this message again, but doesn't anyone know?
Please  :\'(

Joachim Müller

you probably didn't apply the hack properly. Undo your modifications and start over.

Joachim

DaRichMan

How should i name the watermark image? What kind of file (jpeg, png ???) ? Where should this file be places?

Thanks

kegobeer

@DaRichMan: Read the entire thread.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

eliteracer

#69
Please, can you post a download package!

Thanks!

Quote from: tanfwc on July 21, 2004, 04:08:28 PM
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?

Burpee

Quote from: Boegh on October 24, 2004, 07:08:19 PM
Burpee > Totally great hack/add-on!!
I love it, keep up the great work!

Don't thank me, thank Sammy! He's the one that made the mod, I just fixed some minor errors that were in it...

rob2k4life

I got it to work but it is only watermarking the resized image, but I have it on watermark "both" anyone know whats wrong with mine?

Sammy

Hello All

First I have to say Thanks for Burpee for making those "minor fixes" and for porting this mod for use with 1.3x.
Thanks also for Burbee's brother for co working on it.
I have been working quite lot for a some time ( 1/2 year ) now. Gladly when I came here to see how Coppermine is growing, almost first I bump on Burpees thread :)

Anyway, I now just want to say thank's  :D

Burpee

Hey Sammy :D
Nice seeing you back here :)

Binks

There is bug in this mod(so i think). I did exactly as sammy instructed and when i do "batch file adding" some pictures are watermarked and some of them not. Randomly. As i've notice, watermark works, in "batch adding", only on pictures that are bigger then dimentions of intermediat picture. When file(picture) is exact or smaller dimentions, the watermark isn't putted on a picture.
As i said, it happends only when i want to do "catch file adding", but i think that this is big problem, couse when i have 300pictures to add, i would like to use "batch adding"...


Binks

Sammy

Hello Binks

If I remember correctly, it compares imagesizes just as You say. It Does not add watermark on images, that are smaler than intermediate image size declared in settings page for intermediate imeges.

kleppen

hello !
I wonder if its possible to fix that if a user uploads a photo or a picture the
picture adress is displayed on the uploaded photo..
and if its ok and possible: shorter url:
like
http://domain.com/?pic=2212343424324243

Tranz

I suppose it's possible using ImageTTFText() or ImageString(). I'm using both of them to display dynamic text on my avatar. I output my images temporarily to the browser only. You should output actual files to minimise resource use.

PS. Don't send unsolicited PMs to dev team members.

Hein Traag

Busy adding this mod to pictures.scoutlink.net atm and found a teenyweeny typo

-->typo (Watermarks)       'watermarks' => 'Add watermaks',
        'watermark_normal' => 'Resized images only',
        'watermark_image' => 'Original sized only',
        'watermark_both' => 'Original and resized images',
        'watermark_wait' => 'Watermarking images...',
        'watermark_continue_wait' => 'Continuing to watermarking originals and/or resized images...',

Tranz

Oh yeah, I noticed that. I have edited the first post. :)