xoops forums

evylrat

Not too shy to talk
Posted on: 2004/6/16 12:12
evylrat
evylrat (Show more)
Not too shy to talk
Posts: 164
Since: 2004/2/25
#1

Watermarks and XCGal

Does anyone have a working script for adding a graphic, or even better text to the normal and full size images in XCGallery?

I would like to have the Site Name, album name AND username who submitted graphic dynamically put onto the images.

OR added to the bottom of the image in an additional strip...

RachelVirago

Not too shy to talk
Posted on: 2006/10/1 8:01
RachelVirago
RachelVirago (Show more)
Not too shy to talk
Posts: 119
Since: 2005/1/13
#2

Re: Watermarks and XCGal

I just upgraded to 2.02 and the watermark feature works fine, just enable it on in general preferences and rename watermark_default.png to watermark_.png

But how does one cutomise this graphic to, for instance, appear elsewhere than the bottom left? It definitely needs moving because at the bottom it is too easy to crop out.

Can tranparency be used to make the watermark less obtrusive?

Am playing with it in Shop but so far can't make my text appear presumably because the format differs when saved? (more later).
Being transgender is NOT a choice.

hydrO

Not too shy to talk
Posted on: 2006/10/1 10:28
hydrO
hydrO (Show more)
Not too shy to talk
Posts: 105
Since: 2004/1/8 8
#3

Re: Watermarks and XCGal

Edit watermark.php in Xcgal folder.

Change these values accordingly.

else 
    if (
$pos == "topright"
         { 
$src_x $bx 193
           
$src_y 0
         } 
         else 
           if (
$pos == "bottomleft"
           { 
              
$src_x 0
                  
$src_y $by 21;
                } 
                else 
                  if (
$pos == "bottomright"
                  { 
                    
$src_x $bx 270
                        
$src_y $by 21; }      // position in pixel from bottom


If you are using your own image, use bmp format.
Download Dhivehi mp3s
www.gnatoll.com

RachelVirago

Not too shy to talk
Posted on: 2006/10/2 6:22
RachelVirago
RachelVirago (Show more)
Not too shy to talk
Posts: 119
Since: 2005/1/13
#4

Re: Watermarks and XCGal

Thanks hydr0

That works fine and transparent .png works great also, just playing around with relative sizes now but have a nice effective but not too obtrusive watermark method.

Where pictures vary widely in size I can see how it would be fairly easy to have alternate watermark images also.

Excellent, thank you for the quick response.
Being transgender is NOT a choice.

maxima

Not too shy to talk
Posted on: 2006/11/10 1:11
maxima
maxima (Show more)
Not too shy to talk
Posts: 152
Since: 2006/3/4 4
#5

Re: Watermarks and XCGal

I want to adjust the alpha level of the watermark. I see the following in watermark.php
// blend the watermark with the picture
 
ImageAlphaBlending($lmtrue) or die ("Could not create the watermark");

but don't know what to change to adjust the value. Does anyone know how to do this so it appears faded?

chance

Just popping in
Posted on: 2006/11/10 1:54
chance
chance (Show more)
Just popping in
Posts: 11
Since: 2004/4/16
#6

Re: Watermarks and XCGal

i wonder if random watermaking in xcgal possible?

maxima

Not too shy to talk
Posted on: 2006/11/10 14:03
maxima
maxima (Show more)
Not too shy to talk
Posts: 152
Since: 2006/3/4 4
#7

Re: Watermarks and XCGal

So does anyone know how to set the watermark alpha level?

maxima

Not too shy to talk
Posted on: 2006/11/10 23:45
maxima
maxima (Show more)
Not too shy to talk
Posts: 152
Since: 2006/3/4 4
#8

Re: Watermarks and XCGal

Still seeking a solution to this