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

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

0 Members and 3 Guests are viewing this topic.

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #30 on: February 27, 2003, 12:47:32 PM »
Quote from: SLL
Quote
Before installing this MOD!
Run this small code below (dont' forget to adjust font path). If you see black square with white text, than your system meets all neccessary requirements.
Code: [Select]
<?php
header 
&#40;"Content-type&#58; image/png"&#41;;
$im imagecreate &#40;180, 30&#41;;
$black imagecolorallocate &#40;$im, 0, 0, 0&#41;;
$white imagecolorallocate &#40;$im, 255, 255, 255&#41;;
imagettftext &#40;$im, 14, 0, 10, 21, $white, "/home/public_html/arial.ttf", "GD Freetype test"&#41;;
imagepng &#40;$im&#41;;
imagedestroy &#40;$im&#41;;
?>

Download MOD: http://www.dalnet.ru/files/4images_annotation_mod_1_1.zip



where can I get the "/home/public_html/arial.ttf",  from? I cannot see it

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #31 on: February 27, 2003, 12:54:07 PM »
you can use any ttf font, just set path and filename for it

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #32 on: February 27, 2003, 01:20:05 PM »
Sorry can I check ..

Processing image AAAA from category SgCarLink Picture of the Week, image ID 10 >>
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/virtual/site178/fst/var/www/html/4images/admin/plugins/batch_annotate.php on line 76




I cannot find the font directory.

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #33 on: February 27, 2003, 01:26:14 PM »
How can I find my font directory ...

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #34 on: February 27, 2003, 01:38:10 PM »
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/virtual/site178/fst/var/www/html/4images/includes/annotate.php on line 36

Warning: rename(./data/media/1/KCians1_3.jpg,./data/media/1/KCians1_3.jpg.shd) [function.rename]: No such file or directory in /home/virtual/site178/fst/var/www/html/4images/includes/annotate.php on line 65



Got this probelm .. I cannot find my font directory ... why is this so ... any easy way to see what is my path?

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #35 on: February 27, 2003, 02:03:42 PM »
copy font you want to use into your 4images root and set this path in config

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #36 on: February 27, 2003, 02:06:35 PM »
Quote from: SLL
copy font you want to use into your 4images root and set this path in config


That was what I did .. but what path should I put inside .. sorry for asking so much question ... cannot seem to get it ... could you check it out for me the path name?

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #37 on: February 27, 2003, 02:09:56 PM »
SSL this is the link to the PHP test file...

http://www.sgcarlink.com/test.php


do you think I can use your mod?

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 #38 on: February 27, 2003, 02:10:50 PM »
Quote from: tradertt
Quote from: SLL
copy font you want to use into your 4images root and set this path in config


That was what I did .. but what path should I put inside .. sorry for asking so much question ... cannot seem to get it ... could you check it out for me the path name?

tradertt, this is not actualy mod's problem, I see u started few other topics about same problem.
lets keep MOD troubleshooting clean from general troubleshooting. :roll:
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 #39 on: February 27, 2003, 02:14:21 PM »
Vano .. did I ? I tot I was only asking in this thread ... sorry did not know that this was not a mod problem ... Where can I ask this problem in? :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 #40 on: February 27, 2003, 02:22:14 PM »
here are your recent posts:
http://4homepages.de/forum/viewtopic.php?t=4369
and
http://4homepages.de/forum/viewtopic.php?t=4370

yeah, all troubleshooting goes in Diskussionen & Troubleshooting forum ;)
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 #41 on: February 27, 2003, 02:29:33 PM »
Quote from: V@no
here are your recent posts:
http://4homepages.de/forum/viewtopic.php?t=4369
and
http://4homepages.de/forum/viewtopic.php?t=4370

yeah, all troubleshooting goes in Diskussionen & Troubleshooting forum ;)


Thx man .. will go over there to post ... :D

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #42 on: February 27, 2003, 09:14:24 PM »
Sorry but really had to post here

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
Processing image vxzcv from category SgCarLink Picture Highlights, image ID 30 >>
Warning: rename(./../../data/media/1/sgGirls005_2.jpg,./../../data/media/1/sgGirls005_2.jpg.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
Processing image aacdascd from category SgCarLink Picture Highlights, image ID 31 >>
Warning: rename(./../../data/media/1/artsfest75_3.jpg,./../../data/media/1/artsfest75_3.jpg.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
Processing image So today from category SgCarLink Picture Highlights, image ID 32 >>
Warning: rename(./../../data/media/1/fd5.jpg,./../../data/media/1/fd5.jpg.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
Processing image sfdgsf from category SgCarLink Picture Highlights, image ID 33 >>
Warning: rename(./../../data/media/1/guides_2.jpg,./../../data/media/1/guides_2.jpg.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
Processing image Devborah from category SgCarLink Picture Highlights, image ID 34 >>
Warning: rename(./../../data/media/1/deborah.jpg,./../../data/media/1/deborah.jpg.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


what went wrong? ANyone could advice. I hope this is a mod question :D

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #43 on: February 28, 2003, 08:08:17 AM »
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:

Offline tradertt

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #44 on: February 28, 2003, 11:52:48 AM »
Thank you for that reply. So there is no work around for it at the moment issit? Are you working on another version that might be compatible with *nix? Hope that is the case but anyway GREAT WORK.