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

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

0 Members and 1 Guest are viewing this topic.

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #15 on: February 20, 2003, 06:57:14 AM »
I got this message when I try to Direct upload a image file.. any ideas? thanks in advance. (the path is corrected)

Fatal error: Call to undefined function: imagettfbbox() in /home/popmtv/public_html/anson/gallery/includes/annotate.php on line 36

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 #16 on: February 20, 2003, 07:02:20 AM »
Quote from: uny
Fatal error: Call to undefined function: imagettfbbox() in /home/popmtv/public_html/anson/gallery/includes/annotate.php on line 36

it seems that GD on your host doest support FreeType.
run this script to find it out
Code: [Select]
<?php
phpinfo
&#40;&#41;;
?>
look for GD information.
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 SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #17 on: February 20, 2003, 09:11:53 AM »
I will post next version soon, which could be used to embed images, like logos or manualy prepared image with some text. I hope this will help for those who do not have freetype support.

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #18 on: February 20, 2003, 11:20:14 PM »
I ran the file, and this is the result: I copied GD section from it:
By the way what is the default path for GD ? thx


gd
GD Support  enabled  
GD Version  bundled (2.0 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #19 on: February 21, 2003, 11:01:52 PM »
strange... should be working fine. read remarks there http://www.php.net/manual/en/function.imagettfbbox.php

Offline feri

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #20 on: February 25, 2003, 08:02:50 PM »
1.you said

Files To Edit: 4
##   /4images/member.php
##      /4images/admin/settings.php
##   /4images/lang/english/admin.php
##   /lang/english/main.php

But you did not say anything about /lang/english/main.php?!!

2.I have ImageMagick, can I use your Plugin? I did install it on 4images, there is no error message but it's not working.

3.I have GD but old version, how can I use the code for check my GD version? Should I put it on an HTML file or? Where is /home/public_html/arial.ttf , have I arial.ttf by defult?
is this path correct?
/home/virtual/site7/fst/var/www/html/4images/annotate.ttf

Thanks in advance
Feri

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #21 on: February 25, 2003, 08:31:14 PM »
Quote from: feri
But you did not say anything about /lang/english/main.php?!!

That's a mistake... nothing to add/edit in main.php... just ignore

Quote from: feri
2.I have ImageMagick, can I use your Plugin? I did install it on 4images, there is no error message but it's not working.

This MOD is deactivated by default. Check settings in admin panel

Quote from: feri
3.I have GD but old version, how can I use the code for check my GD version? Should I put it on an HTML file or?


in php file, of course

Quote from: feri
Where is /home/public_html/arial.ttf , have I arial.ttf by defult?


Font path doesn's matter. Just make sure you set correct path and filename for this font in config

Offline feri

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #22 on: February 25, 2003, 09:01:55 PM »
1.Thanks, I did try to run Plugin from control panel, and Got this message:

Processing image leo3 from category &#1578;&#1607;&#1585;&#1575;&#1606;, image ID 10 >>
Warning: Rename failed (No such file or directory) in /home/virtual/site7/fst/var/www/html/4images/admin/plugins/batch_annotate.php on line 105

what should I do?

2.How should I change this:  "This MOD is deactivated by default. Check settings in admin panel. You meane just chose ImageMagick? (I did and for example to make thumblain it works).

3.I did the test http://www.rasaneh.info/4images/test.php and I saw the black area and GD FREE TYPE Test on it. But when I chose GD, get this error: requires GD 2.0 or later.

Offline uny

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #23 on: February 25, 2003, 11:16:25 PM »
My New error, the imaged has been uploaded, however there is no Watermark on it. Errro message on top of the page stated as below:

Warning: Could not find/open font in /home/popmtv/public_html/anson/gallery/includes/annotate.php on line 36

Warning: rename() failed (No such file or directory) in /home/popmtv/public_html/anson/gallery/includes/annotate.php on line 65

My Lien 36 looks like this
Code: [Select]
$isz= @getimagesize($ann_src);


My 65 Lines looks like this:
Code: [Select]
$ann_font_path -fill $ann_fill_color -pointsize $ann_font_size -draw

Any help will be really appreciated, thanks!

Offline Hantta

  • Pre-Newbie
  • Posts: 7
    • View Profile
    • http://www.kimifan.com
Keep getting Safe Mode Warnings
« Reply #24 on: February 26, 2003, 11:16:02 PM »
HI!

Iīve used 4images for a week and Iīm quite pleased with it, though I have had some minor difficulties  :( with Safe Mode.

I also installed annotation-mod which I find very useful. However I keep getting this weird  8O error message every time I try to upload new images to my server and I was hoping to get it fuction...

I have Image Magic installed on my server (which confuses me a little because also Safe Mode is on) and when I tried the little script you mentioned, everything worked fine. First I tried to upload photos from my admin contol panel but watermark just didnīt show up. I also tried uploading with member.php, which gave me this weird error message:

Quote
Warning: SAFE MODE Restriction in effect. The script whose uid is 2230 is not allowed to access /*/4image/data/thumbnails/5 owned by uid 99 in /*/4image/includes/image_utils.php on line 141

Warning: SAFE MODE Restriction in effect. The script whose uid is 2230 is not allowed to access/*/4image/data/thumbnails/5 owned by uid 99 in /*/4image/includes/image_utils.php on line 91

Warning: Could not find/open font in /*/4image/includes/annotate.php on line 36

Warning: rename() failed (No such file or directory) in /*/4image/includes/annotate


Does anyone have any idea what Iīm doing wrong? And please write in english because I canīt understand a hick of germany...  :lol:

Offline feri

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Keep getting Safe Mode Warnings
« Reply #25 on: February 26, 2003, 11:46:54 PM »
Quote from: Hantta
HI!

Iīve used 4images for a week and Iīm quite pleased with it, though I have had some minor difficulties  :( with Safe Mode.

I also installed annotation-mod which I find very useful. However I keep getting this weird  8O error message every time I try to upload new images to my server and I was hoping to get it fuction...

I have Image Magic installed on my server (which confuses me a little because also Safe Mode is on) and when I tried the little script you mentioned, everything worked fine. First I tried to upload photos from my admin contol panel but watermark just didnīt show up. I also tried uploading with member.php, which gave me this weird error message:

Quote
Warning: SAFE MODE Restriction in effect. The script whose uid is 2230 is not allowed to access /*/4image/data/thumbnails/5 owned by uid 99 in /*/4image/includes/image_utils.php on line 141

Warning: SAFE MODE Restriction in effect. The script whose uid is 2230 is not allowed to access/*/4image/data/thumbnails/5 owned by uid 99 in /*/4image/includes/image_utils.php on line 91

Warning: Could not find/open font in /*/4image/includes/annotate.php on line 36

Warning: rename() failed (No such file or directory) in /*/4image/includes/annotate


Does anyone have any idea what Iīm doing wrong? And please write in english because I canīt understand a hick of germany...  :lol:


To off safe mode try this: http://forum.rackshack.net/showthread.php?s=c2d809cde1cdf723aa37bb4364118704&threadid=10244&highlight=safe+mode

Offline Hantta

  • Pre-Newbie
  • Posts: 7
    • View Profile
    • http://www.kimifan.com
[Mod] Image Annotation (Watermark)
« Reply #26 on: February 27, 2003, 12:59:40 AM »
..I donīt have root access to my server...  :roll:

Offline feri

  • Pre-Newbie
  • Posts: 5
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #27 on: February 27, 2003, 08:51:57 AM »
Quote from: Hantta
..I donīt have root access to my server...  :roll:


... so ask your Hosting service!  8O

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #28 on: February 27, 2003, 10:09:23 AM »
Unfortunatelly, for the moment I don't know any workaround for this  :cry:

If you still willing to use this MOD, use GD2 as an image manupulation tool.

Offline Hantta

  • Pre-Newbie
  • Posts: 7
    • View Profile
    • http://www.kimifan.com
[Mod] Image Annotation (Watermark)
« Reply #29 on: February 27, 2003, 12:35:59 PM »
:cry: Well I guess I have to try with GD then. Thanks!