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

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

0 Members and 1 Guest are viewing this topic.

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #45 on: February 28, 2003, 12:57:10 PM »
Quote from: SLL
Before publishing this mod, I was asking people here to test it on *nix systems, but unfortunatelly got to response, niether negative, nor positive. What you can be sure is that this mod running without any problems on at least 2 galleries - V@no and mine, but both of us running on Windows. So, I'd be happy to help you, but I just can't...

tradertt also asked to explain what's all these errors about... that's pretty simple. When you enable shadows in this mod, this is done in two passes: first you draw you text with shadow color, and second pass draws the same text with foregroung color and with an offset of 1px. So, this error saying that system is not able to rename *.shd file, which appears after first pass, probably it was never created for some reason  :roll:


Do you think it will work if I do not enable shadows?

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #46 on: February 28, 2003, 03:07:23 PM »
Quote from: tradertt
Do you think it will work if I do not enable shadows?


Why don't you just try???  As I said, on Windows it works with shadows, or without shadows... with IM, with GD2...

Since I have no chance to try it on unix, the only thing we can do is to wait when somebody, smarter than me, find out what was the reason for this error

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #47 on: February 28, 2003, 05:35:53 PM »
Oops I am so sorry lolz .. cause I do not know anything about coding ... forgot you were on Window so cannot try it out on *nix :D sorry about that .. will feedback when I tried

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #48 on: March 01, 2003, 06:33:05 PM »
I tried it without shadows and there is NO error .. but there is no watermark either ... any idea why ? :D

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 #49 on: March 02, 2003, 06:19:02 AM »
Quote from: tradertt
I tried it without shadows and there is NO error .. but there is no watermark either ... any idea why ? :D


No error = good sign!
no watermakr either = ouh well... :wink: j/k


but when u enable shadows, it doesnt give u error, that .ttf file can not be found?
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 #50 on: March 02, 2003, 06:27:04 AM »
Quote from: V@no
Quote from: tradertt
I tried it without shadows and there is NO error .. but there is no watermark either ... any idea why ? :D


No error = good sign!
no watermakr either = ouh well... :wink: j/k


but when u enable shadows, it doesnt give u error, that .ttf file can not be found?



lolz  :twisted:   :twisted:
When I enable shadows, it does give me error

Processing image test from category SgCarLink Picture Highlights, image ID 29 >>
Warning: rename(./../../data/media/1/5.gif,./../../data/media/1/5.gif.shd) [function.rename]: No such file or directory in /home/virtual/site178/fst/var/www/html/4images/admin/plugins/batch_annotate.php on line 105

.... I do not know what happen :D I should think I set the correct path to my .ttf file.

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #51 on: March 02, 2003, 05:57:33 PM »
ok, now I fixed the first error I had, now this is the only error left

Code: [Select]
Warning: rename() failed (No such file or directory) in /home/***/public_html/***/gallery/includes/annotate.php on line 65



note: I put *** Instead of the path name. the path is corrected.

Thanks if any one could help .[/quote]

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #52 on: March 02, 2003, 06:59:49 PM »
It seems rename function is really OS-dependant... *nix users can try to replace it with someting like this:
Code: [Select]
 $unixrename = `mv $ann_dest $file_shd 2>&1`;
  if ( empty( $unixrename ) )
  {
   //ok
  }  else
  {
  //error
}

Sorry, can't check it myself  :cry:

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #53 on: March 02, 2003, 07:21:34 PM »
Lolz... SLL even if it does not rename it seems that it does not annotate for me :D wonder where went wrong..



TO ALL:

Anyone on *nix systems that is using this mod? Please just let me know if yours is working or not ... or is it just my system :D



I don't mind having no letter shadows ... just want my watermark to go on !! lolz :D

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #54 on: March 02, 2003, 07:41:49 PM »
Quote
It seems rename function is really OS-dependant... *nix users can try to replace it with someting like this:
Code:
  $unixrename = `mv $ann_dest $file_shd 2>&1`;
  if ( empty( $unixrename ) )
  {
   //ok
  }  else
  {
  //error
}

Sorry, can't check it myself


Thanks SLL, but where do I add this code too, sorry if it's a stupid question   :oops:

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 #55 on: March 02, 2003, 07:44:26 PM »
Quote from: uny

Thanks SLL, but where do I add this code too, sorry if it's a stupid question   :oops:

in /includes/annotate.php
instead of
Code: [Select]
rename($ann_dest, $file_shd);
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 uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #56 on: March 02, 2003, 08:45:59 PM »
WORKING!!!!!!!!!!

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

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #57 on: March 02, 2003, 08:54:52 PM »
great, it's working on my own site. however on my other site.. same exactly setting. the server had GD 2.0 with freetype. and I got the following erros:

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/***/public_html/gallery/includes/annotate.php on line 109

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/***/public_html/gallery/includes/annotate.php on line 138

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/***/public_html/gallery/includes/annotate.php on line 139

thank you again!

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 #58 on: March 02, 2003, 09:12:18 PM »
make sure u entered correct path to your .ttf font file in the settings.
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 uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #59 on: March 02, 2003, 09:33:24 PM »
Anotherone WORKING!!!!!!!!!!

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

one problem left now

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

 

Post your comments here