Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 14:45

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: 31. Mar 2008, 17:35 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
Here is where I put the test now in imagefunctions.inc.php :


function putwatermarkimage($image, $dir, $twg_rot)
{
global $font, $fontsize_original, $text, $textcolor_R, $textcolor_G, $textcolor_B, $position, $modifyheader;
global $watermark_big, $open_download_in_browser, $print_watermark_original, $print_text_original;

/******** PG *************/
$no_watermark_prefix="nowm";
if(stristr($image, $no_watermark_prefix)) {
debug("NoWatermark prefix found in : ".$image);
return;}

/************************/

$oldsize = getImageSize($image);

// for broken images we try to read the exif data!

if ($oldsize[0] == 0) {

$oldsize = get_image_exif_size($image, $image);

...........


Still does not work and nothing in debug.


Top
 Profile  
 
 Post subject:
PostPosted: 31. Mar 2008, 17:41 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
check

generatesmall

there the watermarks are added.

or you simply to to image.php and after reading the config you set

$print_watermark
and
$print_text

to false for this request :).

and don't forget to delete the images in the cache folder that the whole generation is done again while you test!

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 31. Mar 2008, 18:01 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
The simplest was with image.php :
It works now, many thanks for your help.

Paul


Top
 Profile  
 
 Post subject:
PostPosted: 31. Mar 2008, 18:22 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
I have also added the "$no_watermark_prefix" string definition to my_config.php, so that it is easy to activate/inactivate this new feature.
Thanks for the flexibility of your design.

Paul


Top
 Profile  
 
 Post subject:
PostPosted: 31. Mar 2008, 18:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you are welcome.

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 47 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy