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

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

0 Members and 1 Guest are viewing this topic.

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 #105 on: March 26, 2003, 07:23:26 PM »
Quote from: Yogen
if you're right with installation probs, so it might be the best way to restore all back to original and then trying installation again ??!!

this is good idea! ;)
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 Yogen

  • Newbie
  • *
  • Posts: 25
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #106 on: March 26, 2003, 07:30:35 PM »
ok, but, what do you think:

- first all files back to original or only database restoring ?
- completely and then new ... ?

NEW PROB:
now i can't create thumbs after upload with FTP :-(
yesterday, before installing the MOD, it was OK !!
is the mod influentially to the thumbs too ????

Code: [Select]
Erstelle Thumbnail für: bzl12 (bzl12.jpg) ....  
Warning: imagecreatetruecolor(): requires GD 2.0 or later in /opt/root/home/baer-sportfotode/public_html/includes/image_utils.php on line 65

Warning: imagecopyresampled(): requires GD 2.0 or later in /opt/root/home/baer-sportfotode/public_html/includes/image_utils.php on line 73

Warning: imagejpeg(): supplied argument is not a valid Image resource in /opt/root/home/baer-sportfotode/public_html/includes/image_utils.php on line 79

Warning: imagedestroy(): supplied argument is not a valid Image resource in /opt/root/home/baer-sportfotode/public_html/includes/image_utils.php on line 81

Fehler beim Erstellen des Thumbnails!


greetz

Yogen

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 #107 on: March 26, 2003, 07:47:14 PM »
check out this:
http://www.4homepages.de/forum/viewtopic.php?p=16564#16564
since your host has not upgraded yet GD to GD2, make sure it set to 0
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 Yogen

  • Newbie
  • *
  • Posts: 25
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #108 on: March 26, 2003, 08:10:44 PM »
YES !!! :-)
it works again !!

thank you very much !!!

Offline Asports

  • Pre-Newbie
  • Posts: 5
    • View Profile
    • http://www.adrenalinsports.nl
[Mod] Image Annotation (Watermark)
« Reply #109 on: April 05, 2003, 01:02:35 PM »
Cool stuff, just what I need.
However, I'd like to add a 'stamp' to each upload. I'm sure it's possible, but a quick Google search on how-to came up blank.

Basically, I'd like to place a GIF or Jpeg on each uploaded file in a specific corner. Anyone who could help me on this?

Thanks.
Challenge Your Destiny

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #110 on: April 05, 2003, 03:58:27 PM »
Quote from: Asports
However, I'd like to add a 'stamp' to each upload.

that's exactly what this mod intended for. text annotation added automatically to each uploaded image.  i was trying to make another mod, to ebmed images (like logo, etc.) but i haven't suceeded - problems with transparency and alpha blending.

Offline bhafer

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • Hafer Technology Solutions
New Problem
« Reply #111 on: April 05, 2003, 10:34:09 PM »
I installed this just fine, and I was getting an error finding the font, but that appears to be fixed.  Now the only error I get when running the batch is:

Processing image *** from category ***, image ID *** >>
Warning: rename() failed (No such file or directory) in /home/virtual/site11/fst/var/www/html/members/admin/plugins/batch_annotate.php on line 105

Plus it won't work for any new images.  Any thoughts?  I am using ImageMagick.

Thanks!

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile

Offline cwestcivic

  • Newbie
  • *
  • Posts: 15
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #113 on: April 12, 2003, 07:58:32 AM »
Sorry for my stupidity, but Im not understanding the instructions below.  Run this script where?  What file do I place it in?  Do I need to create a file?  What directory will it be placed in?  Thank you.


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;; 
?>

[/code]

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 #114 on: April 12, 2003, 08:38:14 AM »
if u ever see "run this script" - that means:
create a .php file with this code inside, upload it to your server and start it by pointing (i.e.http://yourdomain.com/name_of_the_file.php)
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 cwestcivic

  • Newbie
  • *
  • Posts: 15
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #115 on: April 12, 2003, 09:17:34 AM »
Thx V@no...  Your always there ready for my lack of knoweledge questions.. Much appreciations..

Oh yea 1 more thing.  The download, does it have all corrected info, or do I ned to check thru all the posts here and double check things?

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 #116 on: April 12, 2003, 09:47:32 AM »
all those replys are because everyone has server with about "unique" configuration, and this mod works fine on most systems but doesnt on few, so, if it doesnt work for u, then read the replys.
but I think the download should be with all fixed issues discused here. SLL should know better :D
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 cwestcivic

  • Newbie
  • *
  • Posts: 15
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #117 on: April 12, 2003, 09:48:52 AM »
Coo.. Ill get started on the install then.  Thx again V@no

Offline cwestcivic

  • Newbie
  • *
  • Posts: 15
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #118 on: April 12, 2003, 10:52:49 AM »
Ok just got done.  I did the test script to make sure I have the requirements, I passed   :)

So I installed this mod on the server.  Followed all the instruction to a T.  When I went to add the marl on a newly added photo, I get these errors:

Code: [Select]

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/includes/annotate.php on line 102

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/includes/annotate.php on line 131

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/includes/annotate.php on line 132


I then went to the already loaded images and ran the Batch Annotate and I got these errors:

Code: [Select]


Annotating between image ID 17 and 21:
Processing image C-West Civic's Interior from category Civic, image ID 21 >>
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 142

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 171

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 172
OK
Processing image C-West Civic's Interior from category Civic, image ID 20 >>
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 142

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 171

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 172
OK
Processing image C-West Civic's Front end from category Civic, image ID 18 >>
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 142

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 171

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 172
OK
Processing image C-West Civic's Front end from category Civic, image ID 19 >>
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 142

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 171

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/cwestciv/public_html/lifestylz/4images/admin/plugins/batch_annotate.php on line 172
OK


Finished!


There were others, but the page refreshes itself as it goes from 1 - 10, 11 - 20 so I couldnt get them.

Obviously its not reading the path, but I checked in my FTP and what it said it could not find, is actually there.  Any possible checkes I can do?  Thanks...

Oh and the tff file is in the 4images root.

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 #119 on: April 12, 2003, 11:04:48 AM »
where did u put .ttf file?
make sure u insert correct path to 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)