• [Mod] Image Annotation (Watermark) 2 0 5 1
Currently:  

Author Topic: [Mod] Image Annotation (Watermark)  (Read 989429 times)

0 Members and 1 Guest are viewing this topic.

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #60 on: March 02, 2003, 09:40:59 PM »
Quote from: uny
Anotherone WORKING!!!!!!!!!!

THANK YOU!!
:P  :lol:  :o  :D  :wink:

one problem left now

http://www.4homepages.de/forum/viewtopic.php?t=2660&highlight=


Are you using *nix server?

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #61 on: March 02, 2003, 09:43:51 PM »
Yes, I'm using *nix server   linux redhat

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #62 on: March 02, 2003, 09:47:19 PM »
Why .. why does my not work ... do you think you could send me your annotation modded files?

wetrade2002@yahoo.com

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #63 on: March 02, 2003, 09:59:02 PM »
check your PM, good luck

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #64 on: March 02, 2003, 10:01:55 PM »
Quote from: uny
check your PM, good luck


Thx for that ... Tried it but still does not annotate :(

Almost giving up on watermarking my pictures ... wonder what is the big problem with it :( Check and check and check but to no avail ... With you using *nix it shows that *nix users should not have a problem ..

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #65 on: March 02, 2003, 10:05:33 PM »
What is the Error message?? If you dont' see error message.
MAKE SURE your turn   Auto-create thumbnail ON in the ADMIN setting
It won't work unless you have the Auto Thumbnail on.
Well V@no did some coding changed it..

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #66 on: March 02, 2003, 10:13:42 PM »
Yupz man its on .. thanks for getting me to check .. there is no error message ... everything went smoothly ... but just no water mark...

Use auto images annotation on image upload   Yes

Annotation font
Specify full path and font filename  
/home/virtual/*/var/www/html/4images/annotate.ttf

Annotation font size   16
Annotation text fill color   #FFFFFF
Annotation text shadow color   #000000
Use letter shadows   Yes
Shadow offset (same right and down)   1
Resulting image quality (in per cent)   80
Vertical annotation message alignment   Image Bottom
Horizontal annotation message alignment    Right Image Edge
Top annotation message offset   5
Bottom annotation message offset  5
Left annotation message offset   5
Right annotation message offset   5

Processing image TEST from category * Picture Highlights, image ID 52 >>
Finished!

This is for batch annotate

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #67 on: March 02, 2003, 10:47:13 PM »
Does your image have a WHITE Back ground? you set the Font as WHITE..  WHIT FONT ON WHITE BACKGROUND =      

see what I mean.??
change your font color, hehe.. this is my current thought.  :roll:

well,, check your PM again, just send you other CODEs
Good luck!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Mod] Image Annotation (Watermark)
« Reply #68 on: March 02, 2003, 11:05:07 PM »
also, try to set vertical/horisontal position to top/left.
I had different and not very nice results on Apache2
but on Apache1 everything works just as it should...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
[Mod] Image Annotation (Watermark)
« Reply #69 on: March 02, 2003, 11:19:33 PM »
Thx uny for this note:
there is missing an option for vertical align => middle
also, I'd change horisontal align from "middle" to "center" so, it would be same in HTML ;)
here is little changes u'll need to do:
in lang/<yourlanguage>/admin.php
in the come u added, locate two arrays:
Code: [Select]
$annotation_v_positioning_optionlist = array(
  "top"  => "image top",
  "bottom" => "image bottom"
);
$annotation_h_positioning_optionlist = array(
  "left"  => "left image edge",
  "middle"  => "image middle",
  "right" => "right image edge"
);

Replace it with:
Code: [Select]
$annotation_v_positioning_optionlist = array(
  "top"  => "image top",
  "middle" => "image middle",
  "bottom" => "image bottom"
);
$annotation_h_positioning_optionlist = array(
  "left"  => "left image edge",
  "center"  => "image center",
  "right" => "right image edge"
);


and in /includes/annotate.php find:
Code: [Select]
  case "middle"      : $h_offset = (($isz[0]/2) - ($ann_text_width/2)); break;
Replace with:
Code: [Select]
  case "center"      : $h_offset = (($isz[0]/2) - ($ann_text_width/2)); break;

then, add this code:
Code: [Select]
  case "middle"      : $v_offset = (($isz[1]/2) - ($ann_text_height/2)); break;
after this:
Code: [Select]
  case "top"         : $v_offset = $ann_text_height + $ann_top_offset; break;



[EDITED]
seems it might be confused, so, here is how peace of code in annotate.php should looks like:
Code: [Select]
switch ($horisontal) {
   case "left"         : $h_offset = $ann_left_offset; break;
   case "center"      : $h_offset = (($isz[0]/2) - ($ann_text_width/2)); break;
   case "right"      : $h_offset = ($isz[0] - $ann_text_width - $ann_right_offset - $ann_font_size); break;
//   case "right"      : $h_offset = ($isz[0] - $ann_text_width - $ann_right_offset); break;
}

switch ($vertical) {
   case "top"         : $v_offset = $ann_text_height + $ann_top_offset; break;
   case "middle"      : $v_offset = (($isz[1]/2) - ($ann_text_height/2)); break;
   case "bottom"      : $v_offset = $isz[1] - ($ann_text_height/2) - $ann_bottom_offset; break;
}

P.S.  case "right" might be different then in the original code, that's the reason I didnt post whole code at the begining.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #70 on: March 02, 2003, 11:22:40 PM »
Quote from: uny
Does your image have a WHITE Back ground? you set the Font as WHITE..  WHIT FONT ON WHITE BACKGROUND =      

see what I mean.??
change your font color, hehe.. this is my current thought.  :roll:

well,, check your PM again, just send you other CODEs
Good luck!


The code got cut off halfway ... guess  PM cannot be too long :D

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #71 on: March 03, 2003, 01:50:25 AM »
all rite, check your e-mail.

Quote from: tradertt
Quote from: uny
Does your image have a WHITE Back ground? you set the Font as WHITE..  WHIT FONT ON WHITE BACKGROUND =      

see what I mean.??
change your font color, hehe.. this is my current thought.  :roll:

well,, check your PM again, just send you other CODEs
Good luck!


The code got cut off halfway ... guess  PM cannot be too long :D

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #72 on: March 03, 2003, 07:03:42 AM »
Nope still not working .. never mind .. I wonder if it is my host .. but I do not know what to tell them ... :(

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #73 on: March 07, 2003, 05:23:56 AM »
V@no, just want you know that the vertical align => middle  Watermark position is working now, dont' know why it didnt' work before. I didn't change anything...

1 problem left,
http://www.4homepages.de/forum/viewtopic.php?t=2660

thx  :lol:

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #74 on: March 07, 2003, 08:01:49 AM »
Quote from: V@no
there is missing an option for vertical align => middle

Just wondering if somebody gonna place annotation text in the center of the image  :D