4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: SLL on January 27, 2003, 04:30:46 PM



Title: [Mod] Image Annotation (Watermark)
Post by: SLL on January 27, 2003, 04:30:46 PM
Quote  [Expand]
Auto annotate images MOD for 4images - Image Gallery Management System.

Version:      1.4

Author:       Silly Little Lamer <sll@dalnet.ru>

Description:

This MOD automatically places a line of custom text, called "Annotation" on every image uploaded to the Gallery. Fully customizable: font type, size and color, shadow usage, offsets, annotation location, etc. "Batch Annotate" admin plug-in included, to annotate images, uploaded to your gallery before you installed this MOD.

Requirements:    

To use in text annotation mode: GD2+ Library compiled with Freetype support. Also works with ImageMagic, but GD still needed for some functions, which ImageMagic is missing.
For "image embedding" mode you don't need anything.

New in v.1.4

•   NetPBM support in both text and image embedding mode.
•   Media type check (applies annotation only on jpeg images); no ‘gif’ errors anymore.
[/b]

New in v.1.31

•   You can choose the annotation method now: text annotation or embedded PNG image (logo, text, etc.). Image embedding (hopefully) works with ImageMagick even if GD library is not installed on your server. CP annotation settings are now separated from the Gallery Settings. Simplified MOD installation.

New in v.1.2

•   Misc. corrections (read 4images forum), code cleanup. Problem with *nix"rename" solved (hopefully".
•   Now checking if annotation text would fit image width, skipping if not.
•   Now you can use variables in the "annotation text" setting, which will be automatically replaced during annotation:
                   %N for Site Name , %H for full Site URL (http://www.mysite.com), %U for short Site URL (www.mysite.com)  
                   %S for User Name (image uploader name), %D for current date, %T for current time, %B to insert line break into annotation text.
[EDIT by V@no]
there is a bug in annotate.php so, either use single quotes around the variables above (i.e. '%N' or '%T') or do these changes: http://www.4homepages.de/forum/index.php?topic=13719.msg68084#msg68084
[/EDIT]
[/i]

New in v.1.1

•   Now you can customize both text and shadow colors and set alpha blending (text transparency) value for your annotation (thanks to V@no). Transparency using GD2 only!

Installation Level:    Easy
Installation Time:      10 Minutes

Files To Edit:       3

   /4images/member.php
/4images/admin/settings.php
   /4images/lang/english/admin.php

Before installing this MOD! (only if you going to use it in "text annotation mode")
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.
1
2
3
4
5
6
7
8
9
<?php
header 
("Content-type: image/png");
$im imagecreate (18030);
$black imagecolorallocate ($im000);
$white imagecolorallocate ($im255255255);
imagettftext ($im1401021$white"/home/public_html/arial.ttf""GD Freetype test");
imagepng ($im);
imagedestroy ($im);
?>

download: http://www.4homepages.de/forum/index.php?action=dlattach;topic=13719.0;attach=4186


If you get error when run batch_annotate.php
Quote  [Expand]
Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in admin/plugins/batch_annotate.php on line 8
Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.') in admin/plugins/batch_annotate.php on line 8
Then open batch_annotate.php
Find:
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
Replace it with:
$root_path = "./../../";
The attached package already fixed.


Title: [Mod] Image Annotation (Watermark)
Post by: edwin on January 27, 2003, 04:37:57 PM
Where can i see a demo of this MOD


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on January 27, 2003, 05:54:25 PM
try here:
http://come.no-ip.com/categories.php?cat_id=78


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on January 27, 2003, 07:40:39 PM
Cyrillic users only:

To be able to write annotations in Russian, add this function at the beginning of annotate.php

1
2
3
4
5
6
7
8
9
function CyrText($aTxt) {
$isostring = convert_cyr_string($aTxt, "w", "i");
for ($i=0; $i < strlen($isostring); $i++){
$thischar=substr($isostring,$i,1);
$charcode=ord($thischar);
$uniline.=($charcode>175) ? "&#" . (1040+($charcode-176)). ";" : $thischar;
}
return $uniline;
}


and after both lines: $ann_text = $config['annotation_text'];
add:
1
$ann_text = CyrText($ann_text);


Title: [Mod] Image Annotation (Watermark)
Post by: wenzel-orf on January 31, 2003, 08:27:05 PM
Fatal error: imagecolorresolvealpha(): requires GD 2.0 or later in /homepages/7/d13364081/htdocs/4images/admin/plugins/batch_annotate.php on line 52

I can only use GD 1.62 - is there a way to use this script with 1.62?

Thx
Robert


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on January 31, 2003, 09:05:19 PM
Quote from: wenzel-orf   [Expand]
I can only use GD 1.62 - is there a way to use this script with 1.62?

I can't check myself, but I don't think it will work... there's at least 3 functions used, which are from GD2. Anyway, I wouldn't recommend using this MOD with GD1 due to the miserable quality of resulting images. It's probably acceptable with thumbnails, but not with fullsize images.


Title: [Mod] Image Annotation (Watermark)
Post by: FreDyz on February 14, 2003, 01:21:01 AM
I've got GD 2.0 with FreeType Support enabled (I can see this in phpinfo) but if I try test the server with the small code it doesn't work. I don't know if the problem is with font path: I've uploaded arial.ttf to the server and put the font path according this.... am I doing something bad?


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on February 14, 2003, 01:24:21 AM
make sure u did this:
http://www.4homepages.de/forum/viewtopic.php?t=4053&highlight=define+gd2


Title: [Mod] Image Annotation (Watermark)
Post by: FreDyz on February 14, 2003, 01:43:47 AM
But that is for use GD in order to make thumbails, I've use GD for thumbails and it works fine in the server but the small code doesn't work.  :?


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on February 14, 2003, 01:49:42 AM
but did u do that?  :roll:
this mod REQUERED GD2.
making thubnails does not requered GD2, and if u dont do that changes, 4images wont use fully features of GD2


Title: [Mod] Image Annotation (Watermark)
Post by: FreDyz on February 14, 2003, 01:59:19 AM
Yes I do that.

But I don't try to install the mod yet, I want to be sure that it will work, and for this reason I used the small test code to test the server, but this doesn't work. Will work the MOD?


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on February 14, 2003, 02:07:11 AM
ah now I understud what do u mean by "small code".
well, it might be because your GD doesnt support Freetype. did u check the links SLL provided?


Title: [Mod] Image Annotation (Watermark)
Post by: FreDyz on February 14, 2003, 02:20:53 AM
Hmmm.... I thought that only GD2 with FreeType support was necessary but checking the links I see that a patch for GD is necessary too :(

Sorry for my questions without read well before  :oops:


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on February 14, 2003, 08:34:03 AM
Quote from: FreDyz   [Expand]
Hmmm.... I thought that only GD2 with FreeType support was necessary but checking the links I see that a patch for GD is necessary too :(
This patch is not a "must", but with patched GD image quality is much better


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on February 20, 2003, 04:06:14 AM
I think the code that inserts in /member.php should be inserted BEFORE
1
    if (!$uploaderror) {
not after
1
2
 if (create_thumbnail($src, $dest, $quality, $dimension, $resize_type)) {
     $new_thumb_name = $new_name;

because Annotation wont work if auto thumbnail not enabled in the settings.


Title: [Mod] Image Annotation (Watermark)
Post by: uny 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


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on February 20, 2003, 07:02:20 AM
Quote from: uny   [Expand]
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
1
2
3
<?php
phpinfo
&#40;&#41;;
?>
look for GD information.


Title: [Mod] Image Annotation (Watermark)
Post by: SLL 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.


Title: [Mod] Image Annotation (Watermark)
Post by: uny 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


Title: [Mod] Image Annotation (Watermark)
Post by: SLL 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


Title: Re: [Mod] Image Annotation (Watermark)
Post by: feri 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


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on February 25, 2003, 08:31:14 PM
Quote from: feri   [Expand]
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   [Expand]
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   [Expand]
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   [Expand]
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


Title: Re: [Mod] Image Annotation (Watermark)
Post by: feri 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.


Title: [Mod] Image Annotation (Watermark)
Post by: uny 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
1
$isz= @getimagesize($ann_src);


My 65 Lines looks like this:
1
$ann_font_path -fill $ann_fill_color -pointsize $ann_font_size -draw


Any help will be really appreciated, thanks!


Title: Keep getting Safe Mode Warnings
Post by: Hantta 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  [Expand]
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:


Title: Re: Keep getting Safe Mode Warnings
Post by: feri on February 26, 2003, 11:46:54 PM
Quote from: Hantta   [Expand]
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  [Expand]
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


Title: [Mod] Image Annotation (Watermark)
Post by: Hantta on February 27, 2003, 12:59:40 AM
..I don´t have root access to my server...  :roll:


Title: [Mod] Image Annotation (Watermark)
Post by: feri on February 27, 2003, 08:51:57 AM
Quote from: Hantta   [Expand]
..I don´t have root access to my server...  :roll:


... so ask your Hosting service!  8O


Title: [Mod] Image Annotation (Watermark)
Post by: SLL 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.


Title: [Mod] Image Annotation (Watermark)
Post by: Hantta on February 27, 2003, 12:35:59 PM
:cry: Well I guess I have to try with GD then. Thanks!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tradertt on February 27, 2003, 12:47:32 PM
Quote from: SLL   [Expand]
Quote  [Expand]
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.
1
2
3
4
5
6
7
8
9
<?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


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on February 27, 2003, 12:54:07 PM
you can use any ttf font, just set path and filename for it


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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.


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt on February 27, 2003, 01:26:14 PM
How can I find my font directory ...


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on February 27, 2003, 02:03:42 PM
copy font you want to use into your 4images root and set this path in config


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt on February 27, 2003, 02:06:35 PM
Quote from: SLL   [Expand]
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?


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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?


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on February 27, 2003, 02:10:50 PM
Quote from: tradertt   [Expand]
Quote from: SLL   [Expand]
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:


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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


Title: [Mod] Image Annotation (Watermark)
Post by: V@no 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 ;)


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt on February 27, 2003, 02:29:33 PM
Quote from: V@no   [Expand]
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


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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


Title: [Mod] Image Annotation (Watermark)
Post by: SLL 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:


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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.


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt on February 28, 2003, 12:57:10 PM
Quote from: SLL   [Expand]
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?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on February 28, 2003, 03:07:23 PM
Quote from: tradertt   [Expand]
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


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 02, 2003, 06:19:02 AM
Quote from: tradertt   [Expand]
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?


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt on March 02, 2003, 06:27:04 AM
Quote from: V@no   [Expand]
Quote from: tradertt   [Expand]
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.


Title: [Mod] Image Annotation (Watermark)
Post by: uny on March 02, 2003, 05:57:33 PM
ok, now I fixed the first error I had, now this is the only error left

1
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]


Title: [Mod] Image Annotation (Watermark)
Post by: SLL 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:
1
2
3
4
5
6
7
8
 $unixrename = `mv $ann_dest $file_shd 2>&1`;
  if ( empty( $unixrename ) )
  {
   //ok
  }  else
  {
  //error
}

Sorry, can't check it myself  :cry:


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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


Title: [Mod] Image Annotation (Watermark)
Post by: uny on March 02, 2003, 07:41:49 PM
Quote  [Expand]
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:


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 02, 2003, 07:44:26 PM
Quote from: uny   [Expand]

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

in /includes/annotate.php
instead of
1
rename($ann_dest, $file_shd);


Title: [Mod] Image Annotation (Watermark)
Post by: uny on March 02, 2003, 08:45:59 PM
WORKING!!!!!!!!!!

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


Title: [Mod] Image Annotation (Watermark)
Post by: uny 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!


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 02, 2003, 09:12:18 PM
make sure u entered correct path to your .ttf font file in the settings.


Title: [Mod] Image Annotation (Watermark)
Post by: uny 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=


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt on March 02, 2003, 09:40:59 PM
Quote from: uny   [Expand]
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?


Title: [Mod] Image Annotation (Watermark)
Post by: uny on March 02, 2003, 09:43:51 PM
Yes, I'm using *nix server   linux redhat


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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


Title: [Mod] Image Annotation (Watermark)
Post by: uny on March 02, 2003, 09:59:02 PM
check your PM, good luck


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt on March 02, 2003, 10:01:55 PM
Quote from: uny   [Expand]
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 ..


Title: [Mod] Image Annotation (Watermark)
Post by: uny 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..


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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


Title: [Mod] Image Annotation (Watermark)
Post by: uny 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!


Title: [Mod] Image Annotation (Watermark)
Post by: V@no 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...


Title: [Mod] Image Annotation (Watermark)
Post by: V@no 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:
1
2
3
4
5
6
7
8
9
$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:
1
2
3
4
5
6
7
8
9
10
$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:
1
  case "middle"      : $h_offset = (($isz[0]/2) - ($ann_text_width/2)); break;

Replace with:
1
  case "center"      : $h_offset = (($isz[0]/2) - ($ann_text_width/2)); break;

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

after this:
1
  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:
1
2
3
4
5
6
7
8
9
10
11
12
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.


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt on March 02, 2003, 11:22:40 PM
Quote from: uny   [Expand]
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


Title: [Mod] Image Annotation (Watermark)
Post by: uny on March 03, 2003, 01:50:25 AM
all rite, check your e-mail.

Quote from: tradertt   [Expand]
Quote from: uny   [Expand]
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


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt 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 ... :(


Title: [Mod] Image Annotation (Watermark)
Post by: uny 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:


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on March 07, 2003, 08:01:49 AM
Quote from: V@no   [Expand]
there is missing an option for vertical align => middle

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


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 07, 2003, 11:37:55 AM
Quote from: SLL   [Expand]
Quote from: V@no   [Expand]
there is missing an option for vertical align => middle

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

yeah, I've seen some, where watermark symbol "(C)" with font size 120 in the middle of image....


Title: [Mod] Image Annotation (Watermark)
Post by: widgit1981 on March 08, 2003, 05:11:24 PM
Hi I installed this mod and then removed it. When a user tried to upload a image they get:


Fatal error: Call to undefined function: imagecreatefromgif() in /***/***/****/includes/image_utils.php on line 71


What is happening ?

Thanks

Steve


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 08, 2003, 05:30:07 PM
Quote from: widgit1981   [Expand]
Hi I installed this mod and then removed it. When a user tried to upload a image they get:


Fatal error: Call to undefined function: imagecreatefromgif() in /***/***/****/includes/image_utils.php on line 71


What is happening ?

Thanks

Steve

If u are using GD2, than that's the problem, because GD2 does not support .gif format


Title: [Mod] Image Annotation (Watermark)
Post by: Bodzio on March 09, 2003, 01:34:56 PM
1. Installed
2. Changes for Linux/unix users
3. Swtiched ON for Auto Thumbnail
4. Test works Perfect (http://bonjovi.pl/galeria/anno.php)
5. no chcnages made for aligment
6. NOT WORKING!
7. Checked all path etc.
8. When I go to betch, OSLT, and get a category, blablabla, and click OK i said that is OK, but nothing happened...
9. turned OF shadows, for security ;)
10. What can I do?


Title: [Mod] Image Annotation (Watermark)
Post by: tradertt on March 09, 2003, 02:44:06 PM
Quote from: Bodzio   [Expand]
1. Installed
2. Changes for Linux/unix users
3. Swtiched ON for Auto Thumbnail
4. Test works Perfect (http://bonjovi.pl/galeria/anno.php)
5. no chcnages made for aligment
6. NOT WORKING!
7. Checked all path etc.
8. When I go to betch, OSLT, and get a category, blablabla, and click OK i said that is OK, but nothing happened...
9. turned OF shadows, for security ;)
10. What can I do?


Can go suck thumb and stand at one side lor  :twisted:  hehe

I also cannot use :D nothing comes out too for me  :P


Title: [Mod] Image Annotation (Watermark)
Post by: Bodzio on March 10, 2003, 09:29:31 AM
LOL


Title: [Mod] Image Annotation (Watermark)
Post by: hoelzlmani on March 11, 2003, 11:02:52 AM
hello,

i have installed the mod, and i have a small problem:
1. i upload new picture
2. check new picture
3. batch annotate
this message i see
Processing image 29742P1 from category testmodule, image ID 3545 >> Processing image 29742P2 from category testmodule, image ID 3546 >> Processing image 29821P2 from category testmodule, image ID 3547 >>
finished
after this i check the pictures but i can´t see the watermark?

what is wrong?
Where can i change the text from the watermark?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on March 11, 2003, 11:44:47 AM
Quote from: hoelzlmani   [Expand]
after this i check the pictures but i can´t see the watermark?


does it work when you upload the image as a regular user?


Title: [Mod] Image Annotation (Watermark)
Post by: hoelzlmani on March 11, 2003, 11:50:02 AM
i always upload the pictures with ftp, is that not possible?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on March 11, 2003, 12:14:12 PM
Quote from: hoelzlmani   [Expand]
i always upload the pictures with ftp, is that not possible?


only with batch annotate then.. you're providing not enough information to understand what's wrong with your installation


Title: [Mod] Image Annotation (Watermark)
Post by: Bodzio on March 11, 2003, 05:32:00 PM
Workin'! HEHE. I am so stupid...  Wrogn category and picture ID selection...


Title: [Mod] Image Annotation (Watermark)
Post by: hoelzlmani on March 11, 2003, 05:40:08 PM
which more information you need?


Title: Works fine in LINUX
Post by: knuckles on March 12, 2003, 04:51:12 PM
Seems many people are having problems, but it worked right out of the box for me.  Just make sure that apache is the owner and group for the data directory so php can write files there - if you don't do this, you're screwed and no amount of hacking will get you anywhere.  Also make sure safe mode is off.

Seeing all the "I don't have root access" to the box *tells* me no of you guys have the ownership of the data directory set to apache.  So you're completely screwed for life until you call your provider and ask that they change it.


Title: Works fine in LINUX Part II
Post by: knuckles on March 12, 2003, 05:01:43 PM
Also, make sure the GD lib is compiled into PHP (ask your provider).  Then, AND THIS IS VERY VERY IMPORTANT, you need to have PC TTF fonts.  If you are a Mac user and simply copied true type fronts from your Mac (because they do end in ttf also) then NOTHING will happen.  You won't see squat.  I'm a Mac OSX user, so I know.

So, I got this working as a Mac user on a Linux box within a few hours.  I suspect that if no one else can, it's because JUST ONE of these factors not set properly will render a blank image.

So to recap:

1- apache must be owner of data directory (and chmod'd to 777 or 755)
2- safe mode OFF
3- GD lib MUST be installed, specifically, GD v2.0.1 with freetype linkage
4- PC TTF fonts.  NOTHING ELSE

Again, if just one of these things is not set up properly, the images will never get annotated.


Title: [Mod] Image Annotation (Watermark)
Post by: KSA on March 12, 2003, 09:36:49 PM
SLL



/home/virtual/site178/fst/var/www/html/4images/arial.ttf


arial.ttf  ASCII  or Binary

  copy font you want to use into your 4images root and set this path in config ????? in  config

1
2
3
4
5
6
7
8
9
10
11
12
13

<?
$db_servertype = "mysql";
$db_host = "localhost";
$db_name = "*****";
$db_user = "****";
$db_password = "*****";

$table_prefix = "4images_";

define('4IMAGES_ACTIVE', 1);

?>


whereabout ???   please


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 12, 2003, 09:59:43 PM
Quote from: KSA   [Expand]

/home/virtual/site178/fst/var/www/html/4images/arial.ttf

arial.ttf  ASCII  or Binary

 
Binary.

Quote from: KSA   [Expand]
copy font you want to use into your 4images root and set this path in config ?????

no, in AdminControlPanel -> Settings. U should find new options for Annotion at the bottom of the Settings.


Title: Re: Works fine in LINUX Part II
Post by: SLL on March 13, 2003, 09:00:16 AM
Quote from: knuckles   [Expand]
1- apache must be owner of data directory (and chmod'd to 777 or 755)

I believe, this is by default, otherwise 4images won't work at all?

And one more remark (from php.net):
Quote  [Expand]
fontfile: The name of the TrueType font file. (Can also be an URL.) Depending on which version of the GD library that PHP is using, it may attempt to search for files that do not begin with a leading '/' by appending '.ttf' to the filename and searching along a library-defined font path.


Title: [Mod] Image Annotation (Watermark)
Post by: KSA on March 13, 2003, 01:09:13 PM
No problem . with that Not Working ??  :cry:


Title: [Mod] Image Annotation (Watermark)
Post by: KSA on March 14, 2003, 11:30:04 PM
directory chmod 777

and

file  chmod 755


OR

Not chmod


Title: [Mod] Image Annotation (Watermark)
Post by: KSA on March 16, 2003, 04:40:46 PM
WORKING ............  8)

THANK YOU!!


Title: [Mod] Image Annotation (Watermark)
Post by: Yogen on March 25, 2003, 02:58:19 PM
hello,

i tried to run the MOD and all i have, are some problems, maybe you can help me??!!
i studied this 7 sites about 3 times, but i didn't found the solution for my special probs!! :-(

in control panel/settings i only can see the right columns of the annotation settings, the descriptions (left) are not visible -- i checked all code of the edited files, but i cant find the reason.
any tips for me ???

are there any files, of your sites, i can try to use ??
please send these files with email to this adress: yogen@gmx.de
maybe this could be the solution !!

thnx for your help !!!

Yogen


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on March 25, 2003, 03:08:39 PM
probably you've forgotten to run installer, so your database is not modifyed yet. also, if you're using lanuage files other than english, check if you've added all neccessary lines there


Title: [Mod] Image Annotation (Watermark)
Post by: Yogen on March 25, 2003, 03:31:14 PM
hmmm, no , i did all you wrote in the description ... but, i edited and uploaded all files BEFORE i run the installer ;-))
may, this is the problem ??

which new fields must i find in the DB, if all is correct installed ?

thx for help !!

Yogen


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 25, 2003, 10:59:57 PM
Quote from: Yogen   [Expand]
in control panel/settings i only can see the right columns of the annotation settings, the descriptions (left) are not visible --

did u do this step of installation?:
Quote  [Expand]
#
#-----[ OPEN ]----------------------------------------
#

/4images/lang/english/admin.php

#
#-----[ FIND ]----------------------------------------
#

$setting['display_whosonline'] = "Display \"Who's Online\". Only visible for admins when deactivated.";
$setting['highlight_admin'] = "Display admins bold in \"Who's online\" ";

#
#-----[ AFTER ADD ]------------------------------------
#

/*-- Setting-Group 8 --*/
$setting_group[8]="Images Annotation settings";
$setting['annotation_use'] = "Use auto images annotation on image upload";
$setting['annotation_font'] = "Annotation font<br /><span class=\"smalltext\">Specify full path and font filename</span>";
$setting['annotation_font_size'] = "Annotation font size";
$setting['annotation_use_shadow'] = "Use letter shadows";
$setting['annotation_shadow_offset'] = "Shadow offset (same right and down)";
$setting['annotation_image_quality'] = "Resulting image quality (in per cent)";
$setting['annotation_text'] = "Annotation message";
$setting['annotation_fill_color'] = "Annotation text fill color<br /><span class=\"smalltext\">Define HEX value, for example #FFFFFF. Have a look at <a target=\"_blank\" href=\"color.html\">color samples</a></span>";
$setting['annotation_shadow_color'] = "Annotation text shadow color<br /><span class=\"smalltext\">Define HEX value, for example #000000. Have a look at <a target=\"_blank\" href=\"color.html\">color samples</a></span>";
$setting['annotation_fill_alpha'] = "Fill color alpha blending (transparency)<br /><span class=\"smalltext\">Alpha blending value must be between 0.0 and 1.0&nbsp;&nbsp;&nbsp;&nbsp;0.0 = no transparency</span>";
$setting['annotation_shadow_alpha'] = "Shadow color alpha blending (transparency)<br /><span class=\"smalltext\">Alpha blending value must be between 0.0 and 1.0&nbsp;&nbsp;&nbsp;&nbsp;0.0 = no transparency</span>";
$setting['annotation_v_alignment'] = "Vertical annotation message alignment";
$setting['annotation_h_alignment'] = "Horizontal annotation message alignment";
$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"
);
$setting['annotation_top_offset'] = "Top annotation message offset";
$setting['annotation_bottom_offset'] = "Bottom annotation message offset";
$setting['annotation_left_offset'] = "Left annotation message offset";
$setting['annotation_right_offset'] = "Right annotation message offset";


Title: [Mod] Image Annotation (Watermark)
Post by: Yogen on March 26, 2003, 12:53:39 PM
yes, i did, but in:   /4images/lang/deutsch/admin.php
and the admin fields are there, but only the right side of them.

can it be possible that the installing after loading up the edited files is the reason ?
i uploaded the files many times to be sure that no error in accepting the changes is possible.

should i do the hole steps again ??
which DB-fields are new if it all is correct ?

thnx for help ....!!!!!

Yogen


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 26, 2003, 01:12:16 PM
Quote from: Yogen   [Expand]
yes, i did, but in:   /4images/lang/deutsch/admin.php

that's probably obvious, but to be sure:
is all your ACP shows in deutsch?

the installation file doesnt do more then just adding new fields into the database, it doesnt metter if u run it before or after.
Another question:
if u change something in those new options u got, and click save, do they actual save what u changed?


Title: [Mod] Image Annotation (Watermark)
Post by: Yogen on March 26, 2003, 01:23:54 PM
yes, all is in german, and the new fields (right side) of the annotation too!

i edited the annotate.TTF path, the TEXT wich should be placed in the pics, and all that can be saved.

and now ... ;-) ????

Yogen


Title: [Mod] Image Annotation (Watermark)
Post by: Yogen on March 26, 2003, 01:39:10 PM
i tried, after making a new DB-backup, a re-installation and got following error-messages:

1
2
3
4
5
6
7
8
9
10
DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_use', '0')
Duplicate entry 'annotation_use' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_font', '/home/4images/annotate.ttf')
Duplicate entry 'annotation_font' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_font_size', '10')
Duplicate entry 'annotation_font_size' for key 1

.......


this seems that the fields must be already there !!

i run the batch annotate and got the errors that GD is not 2.0 !!!
this, i knew before, and i said it to my provider, that he will upgrade this !! --->> i'm awaiting the upgrade

but, if GD is not 2.0 -- nevertheless the fields in the CP must be shown, or is this the reason for the missing descriptions ??

greetz

Yogen


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 26, 2003, 06:14:06 PM
the problem is somewhere in the installation...
ok, here is another question:
did u install any other mods?
also, in /lang/deutsch/admin.php make sure there is no duplucation for
Quote  [Expand]
/*-- Setting-Group 8 --*/

but actuly this is nothing to do with the problem...


Title: [Mod] Image Annotation (Watermark)
Post by: Yogen on March 26, 2003, 07:16:51 PM
hi V@no,

i installed another MOD, but this is only for the lightbox (quotation.php, ...) and has nothing to do with:

/*-- Setting-Group 8 --*/

my provider told me, that next week will be made an upgrade of PHP an GD on all servers. :-)

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

thnx for all help !! :-)

greetz

Yogen


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on March 26, 2003, 07:23:26 PM
Quote from: Yogen   [Expand]
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! ;)


Title: [Mod] Image Annotation (Watermark)
Post by: Yogen 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 ????

1
2
3
4
5
6
7
8
9
10
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


Title: [Mod] Image Annotation (Watermark)
Post by: V@no 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


Title: [Mod] Image Annotation (Watermark)
Post by: Yogen on March 26, 2003, 08:10:44 PM
YES !!! :-)
it works again !!

thank you very much !!!


Title: [Mod] Image Annotation (Watermark)
Post by: Asports 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.


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on April 05, 2003, 03:58:27 PM
Quote from: Asports   [Expand]
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.


Title: New Problem
Post by: bhafer 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!


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on April 07, 2003, 08:54:23 AM
http://www.4homepages.de/forum/viewtopic.php?t=3808&postdays=0&postorder=asc&start=60


Title: [Mod] Image Annotation (Watermark)
Post by: cwestcivic 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.
1
2
3
4
5
6
7
8
9
10

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


Title: [Mod] Image Annotation (Watermark)
Post by: V@no 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)


Title: [Mod] Image Annotation (Watermark)
Post by: cwestcivic 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?


Title: [Mod] Image Annotation (Watermark)
Post by: V@no 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


Title: [Mod] Image Annotation (Watermark)
Post by: cwestcivic on April 12, 2003, 09:48:52 AM
Coo.. Ill get started on the install then.  Thx again V@no


Title: [Mod] Image Annotation (Watermark)
Post by: cwestcivic 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:

1
2
3
4
5
6

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34


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.


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on April 12, 2003, 11:04:48 AM
where did u put .ttf file?
make sure u insert correct path to in the settings.


Title: [Mod] Image Annotation (Watermark)
Post by: cwestcivic on April 12, 2003, 11:06:27 AM
The settings to find the font are: /home/4images/annotate.ttf

The .ttf file is located within the 4images root.


Title: [Mod] Image Annotation (Watermark)
Post by: cwestcivic on April 12, 2003, 11:09:21 AM
Err ok there was a mistake, it shouldve looked like this : /home/lifestylz/4images/annotate.ttf   but this still didnt correct the errors.


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on April 12, 2003, 11:16:47 AM
try to put it in 4images/ folder or /4images/includes/
and use this path to it:
./annotate.ttf
or
annotate.ttf


Title: [Mod] Image Annotation (Watermark)
Post by: cwestcivic on April 12, 2003, 11:24:02 AM
Thx for the help V@no...  Im not used to having to write out the complete path even though I cant see it half the time.  I was missing part of the path again and after I corrected it from my last post.  I gotta see this is really a sweet mod.  I wish I was this skilled...

Now for any fonts I wanna be able to write in, I want to add the font to the same directory as the annotate.ttf is currently in ( the 4images root )?


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on April 12, 2003, 11:43:50 AM
u can have the .ttf font where ever u want at your server, even outside of web folder, just make sure u entered the FULL correct path to it.


Title: [Mod] Image Annotation (Watermark)
Post by: Silaz on April 12, 2003, 05:33:12 PM
Hallo,
ich hoffe mir kann jemand auf Deutsch helfen ich habe zwar irgendwann mal english gehabt aber leider nicht da gewesen ;)

Also bei mir funzt eigentlich ALLES Super ausser das in den Bilder nix angezeigt wird der GD Test war auch erfolgreich im ACP kann ich auch alles einstellen aber bis her leider ohne Anzeige.

Hab bisher alle Pfade geprüft und auch den font in binär hochgeladen und auch die chmod ausprobiert (777 sowie 755)

könnte mir jemand Tips geben wie ich es dennoch zum laufen bekomme ?

Danke für Antwort


Title: [Mod] Image Annotation (Watermark)
Post by: eXup on April 12, 2003, 07:01:36 PM
Hi,

aktiviere im Control-Panel die GD-Bibliothek. Hast warscheinlich ImageMagick aktiv, oder?


Title: [Mod] Image Annotation (Watermark)
Post by: Silaz on April 12, 2003, 07:12:56 PM
nee ich hab GD bin bei Puretec und hab die Gallery 1.7 und den Mod integration with IBF falls das hilft


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 17, 2003, 05:12:26 AM
here is the error im getting when running the "little script" before trying to install..

1
2
3
<br />
<b>Fatal error</b>:  Call to undefined function:  imagecreate() in <b>/home/mad/public_html/docs/test.php</b> on line <b>3</b><br />



How do I know where my ariail.ttf file is?


Title: [Mod] Image Annotation (Watermark)
Post by: bag53 on April 17, 2003, 08:56:40 AM
Ok, I don't understand this one.

When I run the test script to see if the MOD will work, I get this:

Quote  [Expand]

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site143/fst/var/www/html/gdtest.php:2) in /home/virtual/site143/fst/var/www/html/gdtest.php on line 3
‰PNG 


What I quoted isn't actually what iI see. There are about three lines of gibberish that the font of this forum can't display, but Arial can.

I'm on a Linux machine running PHP 4.3.0. Here is my GD info:

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[/code]


Title: [Mod] Image Annotation (Watermark)
Post by: Yogen on April 17, 2003, 12:00:46 PM
Quote from: Shap   [Expand]

How do I know where my ariail.ttf file is?


hi, your TTF-file can be where you want it to, you just have to define the correct path in the control panel.

expl:

arial.ttf in the root of your server the the past must look something like this:

/home/www/webxxx/html/ARIAL.TTF

in my case, the ARIAL.TTF must be written in capital letters, as you here can see!!
(i copied from windows fonts to server)

greetz

Yogen


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 17, 2003, 11:28:53 PM
Quote from: Yogen   [Expand]
Quote from: Shap   [Expand]

How do I know where my ariail.ttf file is?


hi, your TTF-file can be where you want it to, you just have to define the correct path in the control panel.

expl:

arial.ttf in the root of your server the the past must look something like this:

/home/www/webxxx/html/ARIAL.TTF

in my case, the ARIAL.TTF must be written in capital letters, as you here can see!!
(i copied from windows fonts to server)

greetz

Yogen


So where do we get an arial.ttf file, and are we suppost to upload it then try?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on April 17, 2003, 11:45:18 PM
Quote from: Shap   [Expand]
So where do we get an arial.ttf file, and are we suppost to upload it then try?

ppl, why don't you think a little bit, before asking such questions?  :roll:

you can use any windows true type font, not neccessarily arial.ttf

you can place it into any directory on your server, but you have to describe exact file location (full path), so script can find it

you do not have to type font filename in capitals, but since *nix systems are case sensitive, you have to specify font filename exactly the way it is on your server

and so on, and so..........


Title: [Mod] Image Annotation (Watermark)
Post by: Silaz on April 18, 2003, 08:56:29 AM
THX
läuft super :)

Danke eXup


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 19, 2003, 07:59:18 AM
ok so I'm still getting this error:

1
2
3
<br />
<b>Fatal error</b>:  Call to undefined function:  imagecreate() in <b>/home/mad/public_html/test.php</b> on line <b>3</b><br />



anyone know what this means?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on April 19, 2003, 08:57:11 AM
Quote from: Shap   [Expand]
anyone know what this means?


I'm afraid, that means your system doesn't have GD installed


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 19, 2003, 09:00:31 AM
wierd they told me it was installed, and that they just updated every part of it.?

I'll have to have a talk with them..


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 24, 2003, 01:58:24 AM
got it installed, when I go to admin controls I get this error

1
Parse error: parse error, unexpected T_STRING in /home/mad/public_html/lang/english/admin.php on line 565
\

here is what line 565 is:

1
$setting['annotation_right_offset'] = "Right annotation margin";


?


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 24, 2003, 05:19:07 AM
correction:

here is the error
1
Parse error: parse error, unexpected T_STRING in /home/mad/public_html/lang/english/admin.php on line 566


Here is my code, the first line is line 566
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class=\\"smalltext\\">You can use the following variables: <b>%N</b> - Site Name, <b>%H</b> - full Site URL, <b>%U</b> - short Site URL, <b>%S</b> - User Name, <b>%D</b> - date, <b>%T</b> - time, <b>%B</b> - line break</span>";\par
$setting['annotation_fill_color'] = "Annotation text fill color<br /><span class=\\"smalltext\\">Define HEX value, for example #FFFFFF. Have a look at <a target=\\"_blank\\" href=\\"color.html\\">color samples</a></span>";\par
$setting['annotation_shadow_color'] = "Annotation text shadow color<br /><span class=\\"smalltext\\">Define HEX value, for example #000000. Have a look at <a target=\\"_blank\\" href=\\"cM³
 {\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
\viewkind4\uc1\pard\lang1033\f0\fs20 /*-- Setting-Group 8 --*/\par
$setting_group[8]="Images Annotation settings";\par
$setting['annotation_use'] = "Use auto images annotation on image upload";\par
$setting['annotation_font'] = "Annotation font<br /><span class=\\"smalltext\\">Windows True Type Fonts only! Specify full path and font filename</span>";\par
$setting['annotation_font_size'] = "Annotation font size";\par
$setting['annotation_use_shadow'] = "Use letter shadows";\par
$setting['annotation_shadow_offset'] = "Shadow offset (same right and down)";\par
$setting['annotation_image_quality'] = "Resulting image quality (in per cent)";\par
$setting['annotation_text'] = "Annotation text<br /><span class=\\"smalltext\\">You can use the following variables: <b>%N</b> - Site Name, <b>%H</b> - full Site URL, <b>%U</b> - short Site URL, <b>%S</b> - User Name, <b>%D</b> - date, <b>%T</b> - time, <b>%B</b> - line break</span>";\par
$setting['annotation_fill_color'] = "Annotation text fill color<br /><span class=\\"smalltext\\">Define HEX value, for example #FFFFFF. Have a look at <a target=\\"_blank\\" href=\\"color.html\\">color samples</a></span>";\par
$setting['annotation_shadow_color'] = "Annotation text shadow color<br /><span class=\\"smalltext\\">Define HEX value, for example #000000. Have a look at <a target=\\"_blank\\" href=\\"color.html\\">color samples</a></span>";\par
$setting['annotation_fill_alpha'] = "Fill color alpha blend
?>


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on April 24, 2003, 08:23:07 AM
Quote from: Shap   [Expand]
Here is my code, the first line is line 566

you should use some other text editor. there's a lot of "garbage" in your code. please compare it with original


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 29, 2003, 08:01:56 AM
ok, used a plain text editor and a fresh lang/english/admin.php page from a new download and am still getting the same error?

could it have been caused by something when I "ran" the install file?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on April 29, 2003, 09:19:08 AM
Quote from: Shap   [Expand]
could it have been caused by something when I "ran" the install file?


no, this error has nothing to do with install file. just check and double check language file.


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 29, 2003, 07:04:00 PM
could I see someone elses lanuage file to compare to mine (someone with this mod)

anyone? thanks


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 30, 2003, 07:05:31 PM
*bumb*



(cant access my admin area)


Title: [Mod] Image Annotation (Watermark)
Post by: lakeside on April 30, 2003, 07:42:22 PM
Does this write the watermark directly to the image when uploaded, or only when displayed?  I like the idea of it, but if someone clicks on the download button, I'd really like it not to have the watermark on it.  Which way does this mod do this? Realtime when viewing the image or when the user actually uploads the image?


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on April 30, 2003, 07:59:11 PM
it writes watermark directly into the image when it uploaded.
the only way u can "give" users the images without watermark is copy original image into separate folder just before do the watermark. ( posted sometime ago a little addon that does it, not in this thread though)
then, u can combine it with another mod avalable on this forum, that let visitors download different sizes of images.


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on April 30, 2003, 10:16:04 PM
why would you not want the watermark on it? Just curious, but its a great advertising tool.

plzz if anyone with the working MOD can post there lang/admin code, it would be GREATTTLY appreciated.


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on April 30, 2003, 10:31:34 PM
Quote from: Shap   [Expand]
plzz if anyone with the working MOD can post there lang/admin code, it would be GREATTTLY appreciated.

If this is your fist MOD that requre changes in admin.php then just download 4images/language pack again and use NORMAL editor.


Title: [Mod] Image Annotation (Watermark)
Post by: lakeside on May 02, 2003, 06:16:15 PM
Okay, I've read through most of the pages of this thread and I came across one message that said that GD doesnt support gif, so if a user uploads a gif file, will it just not watermark it, or will it not allow the upload and error out?

I've tried this on my server already, but it seems that when I upload a file over 100k, the isp comes back with an dns error and it doesnt upload, so trying this alone is not working for me.

Anyone know?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 02, 2003, 10:06:23 PM
You'll get an error Call to undefined function: imagecreatefromgif(), but this has nothing to do with this MOD. Gif support just has been removed from GD lib one day... With ImageMagic gif images should be annotated exactly the same way, as with jpegs.


Title: I have a problem
Post by: lakeside on May 04, 2003, 05:57:18 PM
I just used the batch annotation on a gallery where the user who owns the photos is Lakeside, but in the watermark it shows
sitename - admin
site url

This only seems to happen during batch watermarking, when a user just uploaded two photos they both came out with his username instead of admin which is what I am when logged into my admins control panel.

Any suggestions?


Title: Re: I have a problem
Post by: SLL on May 04, 2003, 07:39:23 PM
Quote from: lakeside   [Expand]
Any suggestions?


 :lol:  guess, what it the username of the only user, who is able to run plugins?  i believe, it Admin... so what name you're expecting to see it the annotation?  :lol:  :lol:


Title: [Mod] Image Annotation (Watermark)
Post by: lakeside on May 04, 2003, 07:42:38 PM
Sorry, I assumed wrongly then.  I asssumed that the annotation would grab who the rightfull owner is and write that as the users name on the image.

Im glad I did it with my own gallery first.

Now I've just switched my watermark to
site name -site url to do all the batch annotation, then will switch it back to using the username so that new uploads will contain the users name in it.

Thanks for a great mod by the way.


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 04, 2003, 07:52:34 PM
Quote from: lakeside   [Expand]
I asssumed that the annotation would grab who the rightfull owner is and write that as the users name on the image.

mmm... i haven't even thought about such feature. and i don't thik it's really needed. batch plugin is just a small tool which helps you to annotate old images. multiple db queries could slow down this process. but if somebody need this, i can try to do this in the next version


Title: [Mod] Image Annotation (Watermark)
Post by: lakeside on May 04, 2003, 07:55:44 PM
Oh, by the way, if I choose a main category that has no images in it, but has multiple sub categories, will the batch annotate traverse down the categories, and annotate all the subcategory images as well, or must I pick each subcategory one by one?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 04, 2003, 08:07:01 PM
you have to select each category and sub-category one by one


Title: [Mod] Image Annotation (Watermark)
Post by: andersen on May 12, 2003, 10:41:10 AM
Quote from: V@no   [Expand]
but did u do that?  :roll:
this mod REQUERED GD2.
making thubnails does not requered GD2, and if u dont do that changes, 4images wont use fully features of GD2


PLease teach me how to check my server got GD2 or not?

P/s: I got ImageMagick, can it run without GD2? (Even I don't know do my server have GD2 or not.

* I had used "test.php" but the result is small error picture on my browser.
* I had done all process with install, but my site doesn't seen any different. ( control panel have additional function on plugin)

get the result as below

Annotating between image ID 0 and 5:
Processing image Rubish maker from category With PhotoGraphs, image ID 1 >> Skipped
Processing image Malaysia Schumacher no. 1 from category With PhotoGraphs, image ID 5 >> Skipped


Finished!

===========================

But when I goes to my picture nothing change.

Thanks


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 12, 2003, 02:17:05 PM
Quote from: andersen   [Expand]
* I had used "test.php" but the result is small error picture on my browser.

most likely you don't have gd2 library installed, which means you're not able to use this mod, even with image magic


Title: GD 2.0 not support gif
Post by: ksk on May 14, 2003, 01:32:14 AM
hello vano/ssl

since gd 2.0 is not support .gif

do u still use GD2.0?
is there another way to use gd2.0 and support the gif? or i must use lower version of gd?
because when ppl upload .gif file

undefined blala...

thanks :)


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on May 14, 2003, 02:03:13 AM
I use both IM for .gif and GD2 for the rest. Just did little correction in the 4images code...


Title: hm
Post by: ksk on May 14, 2003, 02:37:32 AM
i use netpbm before,
but, can u show ur little correction pls hehe :)  :o


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on May 14, 2003, 02:49:23 AM
in /includes/image_utils.php find two times:
1
 $resize_handle = "resize_image_".$convert_options['convert_tool'];

replace both with:
1
 $resize_handle = "resize_image_".(($image_info[2] == 1) ? "im" : $convert_options['convert_tool']);


Title: [Mod] Image Annotation (Watermark)
Post by: andersen on May 14, 2003, 09:01:17 AM
Quote from: SLL   [Expand]
Quote from: andersen   [Expand]
* I had used "test.php" but the result is small error picture on my browser.

most likely you don't have gd2 library installed, which means you're not able to use this mod, even with image magic


Quote from: ksk   [Expand]
hello vano/ssl

since gd 2.0 is not support .gif

do u still use GD2.0?
is there another way to use gd2.0 and support the gif? or i must use lower version of gd?
because when ppl upload .gif file

undefined blala...

thanks :)


Since above conversation, please guide me below version, which version I need to install?

* gd-1.8.4
* gd-2.0.12

If version gd-2.0.12, need to  patching PHP for gd 2.0.8 and up.

Please give a best comment...


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 14, 2003, 10:43:37 AM
Quote from: andersen   [Expand]
Since above conversation, please guide me below version, which version I need to install?

if you want to get gif support back and have enough rights on your server, i'd suggest to use patched version of gd library, which you can  find here (http://www.rime.com.au/gd/)


Title: [Mod] Image Annotation (Watermark)
Post by: andersen on May 14, 2003, 11:03:06 AM
Quote from: SLL   [Expand]
if you want to get gif support back and have enough rights on your server, i'd suggest to use patched version of gd library, which you can  find here (http://www.rime.com.au/gd/)


I am really dumb of GD languages!

I had search the website (http://www.rime.com.au/gd/ ) you had provided me. I found a lot of patches download. I really don't dare download which 1 I really need.

Ok. My server have ImageMagick, do not have GD.

So If I wish to run this annotation -water mark mod. I need GD right?

I had found some GD with different name as below

* Patch to add internal GIF support to the Base GD library Version 2.0.12
* A Patched Library with GIF support
* A Patch to add support for the patched GD library back into version 2.041 of Lincoln Stein's GD.pm Perl Module
* A Patched GD.pm V2.041 Perl Module with GIF support

almost every patches have GIF support, I just simply choose once?

Once again, I am dumb of GD.[list=][/list]


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 14, 2003, 11:34:07 AM
Quote from: andersen   [Expand]
Ok. My server have ImageMagick, do not have GD.
So If I wish to run this annotation -water mark mod. I need GD right?

gif support has nothing to do with annotation mod. just read mod installation instructions:
Quote  [Expand]
## Requirements:  GD2 Library compiled with Freetype support. Also works with ImageMagic,
##                but GD still needed for some functions, which ImageMagic is missing.


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on May 14, 2003, 12:43:54 PM
Quote from: SLL   [Expand]
if you want to get gif support back and have enough rights on your server, i'd suggest to use patched version of gd library, which you can  find here (http://www.rime.com.au/gd/)
u forgot add one more "and":
and u know how to do compiling, programming in whatever language the patch writen.... :? :(
if anyone succeed, and can create a patch for GD2 that comes with PHP4.2.3 for windows, I'd really appretiate it! ;)


Title: hello
Post by: ksk on May 14, 2003, 07:59:44 PM
how to instal GD 2.0 on LINUX SERVER?

btw, i saw in v@no gallery, http://come.no-ip.com
there is like a link in uploadform template html

[ ]Add watermark
The text will be embeded in the bottom-right corner of the image
v@no, tell us how u did this hehe :)


Title: Re: hello
Post by: V@no on May 14, 2003, 08:16:22 PM
Quote from: ksk   [Expand]
there is like a link in uploadform template html

[ ]Add watermark
The text will be embeded in the bottom-right corner of the image

where?
it was not supposed to be for "any" categoryes...only owners of "Member Personal Category" can chose add or not the watermark when uploading in their categories...
where did u see it? 8O u are not registered, are u? :?


Title: hey
Post by: ksk on May 15, 2003, 01:09:21 AM
hello, im vidan
hahaha lol :P

is that only for MPC? oh ic
its very good if its for any categories
btw, Again, can u tell me the code haha :)

arigato


Title: [Mod] Image Annotation (Watermark)
Post by: Shap on May 18, 2003, 05:47:32 AM
I've got the "Use auto images annotation on image upload" checked to yes, but everytime I upload an image its not working? Is this a bug or just a problem I'm having?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 18, 2003, 09:53:45 AM
Quote from: Shap   [Expand]
Is this a bug or just a problem I'm having?

I know 20+ galleries using this Mod... So, is it a bug or your problem?  :lol:  You're providing not enough information to help you...


Title: v.1.3
Post by: SLL on May 23, 2003, 11:45:44 AM
Version 1.3 available for download.

New in v.1.3

• You can choose the annotation method now: text annotation or embedded PNG image (logo, text, etc.). Image embedding (hopefully) works with ImageMagick even if GD library is not installed on your server.


I'd appreciate if this MOD users send to sll@dalnet.ru translation to your languages (including English/German text corrections, if any), so I could include it into MOD package.


Title: [Mod] Image Annotation (Watermark)
Post by: eurohp on May 27, 2003, 04:21:09 PM
Hi, the MOD is great, but I have one little problem, I'm using NetPBM for making thumbnails, because the quality with GD is too bad.
Now my question: Is it possible to use NetPBM for making thumbnails and GD for annotations?

Thanks for help


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 27, 2003, 04:26:32 PM
Quote from: eurohp   [Expand]
Now my question: Is it possible to use NetPBM for making thumbnails and GD for annotations?

No. Since this mod processing the whole image (not only thumb), then with GD your image gonna be the same poor quality, as thumbs.

If smbd teach me, how to run NetPBM on win machine - I could try to use it for annotation...


Title: [Mod] Image Annotation (Watermark)
Post by: popo on May 29, 2003, 03:58:27 PM
what a good mod! but I have tried many times, just nothing on the picture I upload.

the test.php scripts run susccesfully on my system, my system is: sun solaris8 + apache2.0.43 + gd2.0.12(with freetype support) + php4.3.1(complied with gd support & freetype support) + imagemagick5.5.7.

I have no idea now, can u help me pls ?


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on May 29, 2003, 04:03:47 PM
did u anable it in the settings?


Title: [Mod] Image Annotation (Watermark)
Post by: eurohp on May 29, 2003, 11:58:57 PM
Quote from: SLL   [Expand]

No. Since this mod processing the whole image (not only thumb), then with GD your image gonna be the same poor quality, as thumbs.


No, I've tested it. If I make thumbnails with GD they have poor quality, but if I only watermark the uploaded Image with GD, the quality is the same great quality as it is without watermark. Then I have to change manualy to NetPBM to make the thumbnails.
I upload all my Images with ftp. So I have to use every time the "Batch Annotate" to watermark my Pictures.
Now my question again: Is it possible to use NetPBM as standart setting in 4images and only change the options in the "Batch Annotate - Script" to use GD  :?:


Title: [Mod] Image Annotation (Watermark)
Post by: popo on May 30, 2003, 04:46:51 AM
Quote from: V@no   [Expand]
did u anable it in the settings?


yes, I set it enable.

I select  "embedding image" for Annotation, it seems good, a gd-png image appear on the picture I upload. but when I select "text" for Annotation, just nothing on the picture I upload. the system would have someting problem ?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 30, 2003, 08:33:53 AM
Quote from: eurohp   [Expand]
No, I've tested it. If I make thumbnails with GD they have poor quality, but if I only watermark the uploaded Image with GD, the quality is the same great quality as it is without watermark.

If you're satisfied with GD image quality, than you don't have to use NetPBM at all. Go /includes/constants.php and set:
1
2
3
// If you use GD higher 2.0.1 and PHP higher 4.0.6 set this to 1.
// Your thumbnails will be created with better quality
define('CONVERT_IS_GD2', 1);


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on May 30, 2003, 08:35:19 AM
Quote from: popo   [Expand]
I select  "embedding image" for Annotation, it seems good, a gd-png image appear on the picture I upload. but when I select "text" for Annotation, just nothing on the picture I upload. the system would have someting problem ?

Probably you've set the wrong font path or filename


Title: [Mod] Image Annotation (Watermark)
Post by: eurohp on May 30, 2003, 09:31:52 AM
@SLL:
Thanks, now the quality is fine.


Title: [Mod] Image Annotation (Watermark)
Post by: Lord Nite on June 02, 2003, 07:23:00 AM
One thing you forgot to add.

1
2
3
4
5
6
7
lang/english/admin.php

Find:
$lang['nav_general_settings'] = "Settings";

Directly Below:
$lang['nav_ann_settings'] = "Annotation Settings";

1
2
3
4
5
6
7
lang/deustch/admin.php

Find:
$lang['nav_general_settings'] = "Einstellungen";

Directly Below Add:
$lang['nav_ann_settings'] = "Annotation Einstellungen";


Seeing as how Russian text doesn't like to show up, do the same in russian/admin.php


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 02, 2003, 08:46:54 AM
Quote from: Lord Nite   [Expand]
One thing you forgot to add.

 :oops:  fixed, thanks...


Title: [Mod] Image Annotation (Watermark)
Post by: Lord Nite on June 03, 2003, 03:21:55 PM
Quote from: SLL   [Expand]
Quote from: Lord Nite   [Expand]
One thing you forgot to add.

 :oops:  fixed, thanks...


No problem.  Took me a sec to realize that when the link would only show up as a small block with no text.


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on June 03, 2003, 03:23:30 PM
Quote from: Lord Nite   [Expand]
Took me a sec to realize that when the link would only show up as a small block with no text.

Lucky u...took me whole lot longer, because there didnt show up anything...:lol:


Title: [Mod] Image Annotation (Watermark)
Post by: Lord Nite on June 03, 2003, 05:33:48 PM
Quote from: V@no   [Expand]

Lucky u...took me whole lot longer, because there didnt show up anything...:lol:


Well, when I saw a white space between Settings and Templates, and the cursor changed to a hand......I was like...(http://www.gamers-forums.com/smilies/cwm/3dlil/eek13.gif).

Then I realized that the link in settings didn't work, so it just clicked after that.

Otherwise, an awesome mod if I can ever figure out the path to ImageMagick  :mrgreen:


Title: [Mod] Image Annotation (Watermark)
Post by: HamedF on June 03, 2003, 05:45:29 PM
Hello,


i am trying to install your script but i got one problem :
everything works on my server, even if i click on Batch Annotate it does something :

Annotating between image ID 0 and 2:
Processing image fgh from category gfh, image ID 1 >> Skipped
Processing image cv from category gfh, image ID 2 >> Skipped


Finished!

[Back]  


BUT *g* : if i click in the german version on einstellungen, there is the point Bild Annotation Einstellungen]  
 but if i click on it, nothing comes up.
then i scroll down to the end, but the last setting is : Administratoren im Modul "Wer ist online" fett dargestellt werden

i know that i put the code corectly in,...

can u help me ?


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 03, 2003, 06:28:43 PM
I just tried to install this plug in, and I failed miserably. Im not sure whats wrong though. I put up the GD test script that was posted, and I got this:
http://www.planetboredom.net/pix/gd_test.php

Does that mean GD2 isn't installed? I know that GD is installed ont he server, I just don't know which version.

Also, I used NETPBM to make thumbnails, and after I set up this plug in, NetPBM option dissapeared from the settings page. Does GD have to be selected in settings in order for this script to work?

ALso, whenever I upload an image, I get this error.

Warning: Missing argument 5 for create_thumbnail() in /home/yegor/public_html/pix/includes/image_utils.php on line 138

Fatal error: Call to undefined function: imagettfbbox() in /home/yegor/public_html/pix/includes/annotate.php on line 78

If I change it to image (annotation), the last line is replaced with

Fatal error: Call to undefined function: imagegif() in /home/yegor/public_html/pix/includes/image_utils.php on line 79

if I upload a Jpeg I get an XML error:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Only one top level element is allowed in an XML document. Line 2, Position 2
 

<b>Warning</b>:  Missing argument 5 for create_thumbnail() in <b>/home/yegor/public_html/pix/includes/image_utils.php</b> on line <b>138</b><br />
-^

What is going on?


Title: [Mod] Image Annotation (Watermark)
Post by: pietg on June 03, 2003, 09:50:07 PM
When install this plugin on my "normal" completely functioning server (w2k + 4images running ok) I get the following error.

Quote  [Expand]
Warning: main(./../admin/admin_global.php) [function.main]: failed to create stream: No such file or directory in D:\home\sites\onsite\web\gallery\admin\plugins\batch_annotate.php on line 8


Where did I go wrong? Doesn't the plug pickup the normal pathsetting or ...?

Piet


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on June 03, 2003, 09:53:00 PM
Quote from: pietg   [Expand]
When install this plugin on my "normal" completely functioning server (w2k + 4images running ok) I get the following error.

Quote  [Expand]
Warning: main(./../admin/admin_global.php) [function.main]: failed to create stream: No such file or directory in D:\home\sites\onsite\web\gallery\admin\plugins\batch_annotate.php on line 8


Where did I go wrong? Doesn't the plug pickup the normal pathsetting or ...?

Piet

maybe u need set righ permissions?


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 03, 2003, 10:17:27 PM
what about my problem? SOMEONE HELP!


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on June 03, 2003, 10:25:51 PM
Quote from: Yegor   [Expand]
what about my problem? SOMEONE HELP!

seems your host either didnt install GD2 or GD2 installed without True font  support.


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 03, 2003, 10:29:21 PM
Quote from: Yegor   [Expand]
what about my problem? SOMEONE HELP!

test script says
Quote  [Expand]
If you see black square with white text, than your system meets all neccessary requirements.

i'm pretty sure you haven't seen any text or box, so why you've installed this md?? i'd suggest you to restore 4images bakup files.


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 03, 2003, 11:28:49 PM
Ok I figured something out, im retarded and I accidently uplaoded the edited files from 1.6.1 instead of 1.7

I got the image watermark to work, but text still isn't working.

Fatal error: Call to undefined function: imagettfbbox() in /home/yegor/public_html/pix/includes/annotate.php on line 78

I presume that means that Free typeisn't installed.


No matter, as long as image works, Im happy! 1 more thing, in order for this to work, GD has to be selected in the control panel. 10% of the image I upload are gifs, and therefore won't upload since GD isn't compatible. NetPBM, which I use works with both. When I slect netpbm, the annotations controls dissapear, and it no longer adds a watermark. Is it possible to amke it so it works even though GD isn't selected in the control panel?


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 04, 2003, 12:16:17 AM
Also, when I try to do Batch annotations, it doesn't work.

Processing image Nose from category Tard Shots, image ID 492 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 178

Warning: imagesy(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 179

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 186

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 187

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 188
OK


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 04, 2003, 07:29:57 PM
come on... somebody help me fix batch annotations.


Title: [Mod] Image Annotation (Watermark)
Post by: pietg on June 04, 2003, 09:14:14 PM
Quote  [Expand]
Warning: main(./../admin/admin_global.php) [function.main]: failed to create stream: No such file or directory in D:\home\sites\onsite\web\gallery\admin\plugins\batch_annotate.php on line 8


I don't know what it means but I changed line 4 from:

1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";

to
1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../../";


And now it seems to work. But the settings don't show in the settingsmenu as part 8. The text [Images Annotation Settings] does but the options not :-(.
I can go directly to them but that can't be the idea.

Maybe the codechanging wasn't such as good idea.

Piet

Piet


Title: [Mod] Image Annotation (Watermark)
Post by: Pepeillo on June 05, 2003, 08:23:59 PM
I've installed the MOD without problem but when i click on Batch Annotate, it says:

Annotating between image ID 0 and 2:
Processing image nn from category nn, image ID 1 >> Skipped
Processing image nn from category nn, image ID 2 >> Skipped


Finished!

[Back]

and nothing happens. I tried the test program and i see the black box with the white text.

Any help?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 05, 2003, 08:34:26 PM
Quote from: Pepeillo   [Expand]
Processing image nn from category nn, image ID 1 >> Skipped

nothing strange  :wink:  "skipped" means than image was not processed for some reason. try upload images as a regular user and see some error messages.


Title: [Mod] Image Annotation (Watermark)
Post by: Pepeillo on June 05, 2003, 09:14:56 PM
Thanks SSL. I did it and I've found many errors :cry:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Annotating between image ID 20 and 29:
Processing image Cueva from category Varios, image ID 22 >>
Warning: imagecolorresolvealpha(): requires GD 2.0 or later in /***/host****/b****/admin/plugins/batch_annotate.php on line 52

Warning: imagecolorresolvealpha(): requires GD 2.0 or later in /***/host****/b****/admin/plugins/batch_annotate.php on line 52

Warning: imagesx(): supplied argument is not a valid Image resource in /***/host****/b****/admin/plugins/batch_annotate.php on line 178

Warning: imagesy(): supplied argument is not a valid Image resource in /***/host****/b****/admin/plugins/batch_annotate.php on line 179

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /***/host****/b****/admin/plugins/batch_annotate.php on line 186

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /***/host****/b****/admin/plugins/batch_annotate.php on line 187

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /***/host****/b****/admin/plugins/batch_annotate.php on line 188
OK



I'm still crying :cry:  :cry:

My host haven't GD2. More Crying :cry:  but thanks a lot :D


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 05, 2003, 11:19:39 PM
i have the same problem. I DO have GD2. when I upload it works, when I do batch, it doesn't.


Title: [Mod] Image Annotation (Watermark)
Post by: Slammer on June 12, 2003, 02:34:58 PM
just so i know if it is worth installing this MOD, it will ONLY work if the 'test code' worked out for you?
(this one:)
1
2
3
4
5
6
7
8
9
<?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;; 
?>


Title: [Mod] Image Annotation (Watermark)
Post by: Nca on June 12, 2003, 04:35:11 PM
Hello.

I just installed the mod, and "Image Annotation Setting" part on "Settings" not showing up. The link is up there but the "settings_group_8" part is not.

I am pretty sure did everything as it said on manual. Apologize if it have been asked before.

Please Help!

Nca.


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 12, 2003, 06:55:50 PM
Quote from: Nca   [Expand]
I just installed the mod, and "Image Annotation Setting" part on "Settings" not showing up. The link is up there but the "settings_group_8" part is not.

since the last mod version it's not a part of gallery "settings" anymore. you should see separate group right below "settings" it admin control panel


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 12, 2003, 06:57:37 PM
Quote from: Slammer   [Expand]
just so i know if it is worth installing this MOD, it will ONLY work if the 'test code' worked out for you?

the latest mod version should work without gd, but only in the "image embedding" mode


Title: [Mod] Image Annotation (Watermark)
Post by: Nca on June 12, 2003, 07:24:50 PM
Quote from: SLL   [Expand]
Quote from: Nca   [Expand]
I just installed the mod, and "Image Annotation Setting" part on "Settings" not showing up. The link is up there but the "settings_group_8" part is not.

since the last mod version it's not a part of gallery "settings" anymore. you should see separate group right below "settings" it admin control panel


sorry, i don't see anything new except "plugins: batch annotate" thing. it might be funny, but thas true.

Nca.


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 13, 2003, 01:00:19 AM
Quote from: Nca   [Expand]
sorry, i don't see anything new except "plugins: batch annotate" thing. it might be funny, but thas true.

either you're installing older mod version, or you've missed some installation steps... i'd suggest to start from the begining - dl mod again, restore your backup and apply this mod once again


Title: [Mod] Image Annotation (Watermark)
Post by: Nca on June 13, 2003, 10:16:16 AM
did everything reverse on manual, and applied my backed up database. everything suppose to be working as before now? but now my thumbnails coming up low quality!

please visit: www.chingis.com/ann_thumbs/

train1.jpg is what it have been before the mod. i am pretty sure backed up my database, however it was late night, i might have mistaked. had enough trouble with this mod. no offence. maybe will try later. all i need now, my thumbnails back.

please, what do i need to do to get my thumbnails back normal?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 13, 2003, 11:45:19 AM
hmm... actualy this mod doesn't touch thumbs at all... seems you're using GD, so go /includes/constants.php and check
Quote  [Expand]
// If you use GD higher 2.0.1 and PHP higher 4.0.6 set this to 1.
// Your thumbnails will be created with better quality
define('CONVERT_IS_GD2', 1);


Title: [Mod] Image Annotation (Watermark)
Post by: Nca on June 13, 2003, 02:05:30 PM
nu da, ya izmenil constants.php y zabil y pashol spit .  :D

udache vam s etoi modom.

vladagariu y spasibo vam bolishoye SLL.


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 14, 2003, 06:52:46 AM
SSL, pomogi mne s moei problemai. Vsio rabotaet, krome batch annotate. Kod odnakovi, ia ne mogu ponia pochemu ono rabotat v odnom meste, no ne rabotaet v drugom.


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 14, 2003, 10:26:23 AM
here we have some strange php bug, which doesn't work properly with files and directories (like rename function, for ex.)

unfortunatelly, you can see it on *nix systems only, but i'm running win server, so it's a problem for me to trace this bug in the mod. i will try to fix it next week on *nix machine


Title: standard path of ImageMagick
Post by: NeoNuss on June 16, 2003, 04:15:16 PM
edit: path-problem solved
new problem: ;)
I use ImageMagick and the skript works fine, the batchprocess runs and there are no error messages. I include a small logo as .png-file in the lower right corner of the image - but nothing happens! there is no logo! is there maybe a problem with the png-file?? i exported it with photoshop 7...

thx&gree,
NeoNuss


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 17, 2003, 03:09:37 AM
Quote from: SLL   [Expand]
here we have some strange php bug, which doesn't work properly with files and directories (like rename function, for ex.)

unfortunatelly, you can see it on *nix systems only, but i'm running win server, so it's a problem for me to trace this bug in the mod. i will try to fix it next week on *nix machine


ohh please do! I need to batch annotate like 400 images.


Title: [Mod] Image Annotation (Watermark)
Post by: NeoNuss on June 17, 2003, 09:51:59 AM
hi again!

i did some tests to find out what the problem could be  - imagemagick is working fine when resizing pictures and even when I use the demo-png there is no change in the pictures, even though there are no error-messages!

please help! :(

thx&gree,
NeoNuss
P.S.: Is there anybody using *nix server without GD2 but with ImageMagick who got this mod working (not with text, only a png-file)??


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 20, 2003, 11:31:20 AM
Quote from: Yegor   [Expand]
ohh please do! I need to batch annotate like 400 images.


it seems i've found out what was the reason... you have to specify the whole path to the embedded image, like /users/htdocs/4images/logo.png

at least, this is working on the freebsd system...


Title: [Mod] Image Annotation (Watermark)
Post by: popo on June 22, 2003, 02:55:15 AM
Quote from: SLL   [Expand]
Quote from: popo   [Expand]
I select  "embedding image" for Annotation, it seems good, a gd-png image appear on the picture I upload. but when I select "text" for Annotation, just nothing on the picture I upload. the system would have someting problem ?

Probably you've set the wrong font path or filename


ok ! I can use this great mod now, I recomplied my php-4.3.2 with the build-in gd support. my system is solaris8 + apache4.0.45 + php-4.3.2


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 24, 2003, 04:27:14 AM
Quote from: SLL   [Expand]
Quote from: Yegor   [Expand]
ohh please do! I need to batch annotate like 400 images.


it seems i've found out what was the reason... you have to specify the whole path to the embedded image, like /users/htdocs/4images/logo.png

at least, this is working on the freebsd system...


I will try this once DNS changes kick in.

*crosses fingers*


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 24, 2003, 05:01:53 AM
Quote from: V@no   [Expand]
in /includes/image_utils.php find two times:
1
 $resize_handle = "resize_image_".$convert_options['convert_tool'];

replace both with:
1
 $resize_handle = "resize_image_".(($image_info[2] == 1) ? "im" : $convert_options['convert_tool']);


Did anyone get this fix working without those annoying errors that pop up when you upload a gif? The fix works, and works well. Gifs are done with netpbm/IM and jpgs are annotated with GD. The only problem is these errors that pop up. I tried it with netpbm and IM and I always got these exact errors. Is theer a way to disable the annotate script when uploading a gif??:

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/includes/annotate.php on line 31

Warning: imagecolorresolvealpha(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/includes/annotate.php on line 32

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/includes/annotate.php on line 31

Warning: imagecolorresolvealpha(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/includes/annotate.php on line 32

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/includes/annotate.php on line 168

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/includes/annotate.php on line 169

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/includes/annotate.php on line 170


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 24, 2003, 07:53:42 AM
Quote from: Yegor   [Expand]
Did anyone get this fix working without those annoying errors that pop up when you upload a gif?

new mod version (with netpbm support) will be published in a few days, i'll include this "gif" fix into it


Title: not working...
Post by: nccsoft on June 24, 2003, 10:39:21 AM
I install this MOD. but not work.
My system is FreeBSD+PHP 4.3.2+Apache 1.3.27+ImageMagick 5.5.6

I try debug annotate.php.

find
1
2
3
4
if (!$use_shadow) {
$command = $convert_options['convert_path']." -quality ".$ann_image_quality." -antialias -density 90 -font $ann_font_path -fill $ann_fill_color -pointsize $ann_font_size -draw \"text $h_offset,$v_offset '$ann_text'\" \"$ann_src\" \"$ann_dest\"";
system($command);
}

replace
1
2
3
4
5
6
if (!$use_shadow) {
$command = $convert_options['convert_path']." -quality ".$ann_image_quality." -antialias -density 90 -font $ann_font_path -fill $ann_fill_color -pointsize $ann_font_size -draw \"text $h_offset,$v_offset '$ann_text'\" \"$ann_src\" \"$ann_dest\"";
system($command);
echo $command;
exit;
}

I try upload image. It show
1
/usr/local/bin/convert -quality 80 -antialias -density 90 -font /home/mychat/htdocs/4images/BGTR00BU.TTF -fill #BFBFBF -pointsize 10 -draw "text 5,16 'http://phpbb.mychat.to'" "./data/media/7/DSCN0628.JPG.bak" "./data/media/7/DSCN0628.JPG"

but I look not create ./data/media/7/DSCN0628.JPG

I look Apache error_log have error message.
1
/usr/local/bin/convert: Missing an image filename.


I telnet server in 4images root and command
1
/usr/local/bin/convert -quality 80 -antialias -density 90 -font /home/mychat/htdocs/4images/BGTR00BU.TTF -fill #BFBFBF -pointsize 10 -draw "text 5,16 'http://phpbb.mychat.to'" "./data/media/7/DSCN0628.JPG.bak" "./data/media/7/DSCN0628.JPG"

the DSCN0628.JPG is create.

please help me....
I try this MOD one week. but always not work..


Title: Re: not working...
Post by: SLL on June 24, 2003, 11:02:46 AM
Quote from: nccsoft   [Expand]
1
/usr/local/bin/convert -quality 80 -antialias -density 90 -font /home/mychat/htdocs/4images/BGTR00BU.TTF -fill #BFBFBF -pointsize 10 -draw "text 5,16 'http://phpbb.mychat.to'" "./data/media/7/DSCN0628.JPG.bak" "./data/media/7/DSCN0628.JPG"

at this step check if DSCN0628.JPG.bak was realy created


Title: [Mod] Image Annotation (Watermark)
Post by: nccsoft on June 24, 2003, 11:22:10 AM
Thx answer.
yes. DSCN0628.JPG.bak created.
so I telnet server in 4images root run
1
/usr/local/bin/convert -quality 80 -antialias -density 90 -font /home/mychat/htdocs/4images/BGTR00BU.TTF -fill #BFBFBF -pointsize 10 -draw "text 5,16 'http://phpbb.mychat.to'" "./data/media/7/DSCN0628.JPG.bak" "./data/media/7/DSCN0628.JPG"

is OK.
but use system() is not work.


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 24, 2003, 11:02:44 PM
Quote from: SLL   [Expand]
Quote from: Yegor   [Expand]
Did anyone get this fix working without those annoying errors that pop up when you upload a gif?

new mod version (with netpbm support) will be published in a few days, i'll include this "gif" fix into it

will there be an upgrade? or do u have to revert to "original files" before you install?


Title: [Mod] Image Annotation (Watermark)
Post by: nccsoft on June 25, 2003, 03:29:44 AM
I am working...

I try step to step.

1
2
$s ="/usr/local/bin/convert -quality 80 -antialias -density 90 -font /home/mychat/htdocs/4images/BGTR00BU.TTF -fill #BFBFBF -pointsize 14 -draw \"text 5,22 'http://phpbb.mychat.to'\" \"./data/media/7/DSCN0658.JPG.bak\" \"./data/media/7/DSCN0658.JPG\"";
system($s);


not work. so I try

1
2
$s ="/usr/local/bin/convert -quality 80 -antialias -density 90 -font /home/mychat/htdocs/4images/BGTR00BU.TTF \"./data/media/7/DSCN0658.JPG.bak\" \"./data/media/7/DSCN0658.JPG\"";
system($s);


It's work. so I try

1
2
$s ="/usr/local/bin/convert -quality 80 -antialias -density 90 -font /home/mychat/htdocs/4images/BGTR00BU.TTF -fill #BFBFBF \"./data/media/7/DSCN0658.JPG.bak\" \"./data/media/7/DSCN0658.JPG\"";
system($s);


It's no work. so I try

1
2
$s ="/usr/local/bin/convert -quality 80 -antialias -density 90 -font /home/mychat/htdocs/4images/BGTR00BU.TTF -fill \"#BFBFBF\"  \"./data/media/7/DSCN0658.JPG.bak\" \"./data/media/7/DSCN0658.JPG\"";
system($s);


It's work.. so I try

1
2
$s ="/usr/local/bin/convert -quality 80 -antialias -density 90 -font /home/mychat/htdocs/4images/BGTR00BU.TTF -fill \"#BFBFBF\" -pointsize 14 -draw \"text 5,22 'http://phpbb.mychat.to'\" \"./data/media/7/DSCN0658.JPG.bak\" \"./data/media/7/DSCN0658.JPG\"";
system($s);


It's ok. so I modify annotate.php and batch_annotate.php

find
1
-fill $ann_shadow_color

replace
1
-fill \"$ann_shadow_color\"


but I have new problem now.
My text is chinese charset. if I use Chinese text. not show Chinese.
only use english now.


Title: [Mod] Image Annotation (Watermark)
Post by: V@no on June 25, 2003, 04:31:02 AM
Quote from: nccsoft   [Expand]
but I have new problem now.
My text is chinese charset. if I use Chinese text. not show Chinese.
only use english now.

I belive for this u'll need upload your own font with Chinese support.


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 25, 2003, 10:58:20 AM
Quote from: V@no   [Expand]
I belive for this u'll need upload your own font with Chinese support.

i'm not sure this will help. this is the way image magick handles charsets... for example, i haven't managed writing cyrillic text with im too  :cry:


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 25, 2003, 10:59:48 AM
Quote from: Yegor   [Expand]
will there be an upgrade? or do u have to revert to "original files" before you install?

yes, you do.


Title: new version with netpbm support
Post by: SLL on June 25, 2003, 02:15:29 PM
so... any volunteers to test new mod version before publishing?  :wink:
mostly netpbm users on *nix machine needed...


Title: [Mod] Image Annotation (Watermark)
Post by: xtase on June 25, 2003, 06:46:25 PM
Hi !

hm i have a question ... is it necessary to test this program "in the web" ... i have only checked it on my localhost and i got "Could not find/open font" because i´m not sure where i have to put tahoma.ttf ...

my structure looks like this ...

http://localhost/gallery/admin ....

which place is important for the font ? ... an which path i write in the box in admin center ?

year and when i upload one image i geht this error "Warning: Could not find/open font in C:\wampp2039\htdocs\gallery\includes\annotate.php on line 78" ... this is clear the fontpart is wrong ... but what is wrong can you help me PLZ :)

sorry for my bad english  :roll:


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 25, 2003, 06:49:12 PM
Quote from: xtase   [Expand]
which place is important for the font ?

it doesn't matter where you put it, just specify full path and filename CP


Title: [Mod] Image Annotation (Watermark)
Post by: xtase on June 25, 2003, 06:52:18 PM
Quote from: SLL   [Expand]
Quote from: xtase   [Expand]
which place is important for the font ?

it doesn't matter where you put it, just specify full path and filename CP


but i get an error ... i have written "c:\wampp2039\htdocs\gallery\tahoma.tff" in my box ... i have already checked it without .tff ...

note i check this offline on my localhost is this the problem ?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 25, 2003, 07:11:56 PM
Quote from: xtase   [Expand]
but i get an error ... i have written "c:\wampp2039\htdocs\gallery\tahoma.tff" in my box ... i have already checked it without .tff ...

note i check this offline on my localhost is this the problem ?

maybe you'd try tahoma.ttf then?  :wink:

and for sure localhost is not a problem at all...


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 25, 2003, 07:14:09 PM
Version 1.4 just posted (look first message in this thread). Now with NetPBM support + some minor changes, corrections and code cleanup.


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 25, 2003, 09:52:12 PM
Ok, I just installed it.
V@no's fix stopped giving me any errors, so tahts good.

NetPBM isn't working, when I select it, and uplaod a JPG, all I get is a broken image. It creates a thumbnail, but the image appears broken.

Gifs are not annotated, but work.

If I leave it as GD2, everything works good, jpgs are annotated, and Gifs are thumbnailed using Netpbm (thanks to V@no's fix). No errors pop up.
Without the fix, it doesn't work, gifs cause it to display an error.

Something weird happened when I moved servers. The Embedded image opacity no longer works. No matter what I set it to, its all 100% here is the GD info.

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


Any ideas?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 25, 2003, 10:06:11 PM
Quote from: Yegor   [Expand]
NetPBM isn't working, when I select it, and uplaod a JPG, all I get is a broken image. It creates a thumbnail, but the image appears broken.

in order to run this mod with netpbm the whole package have to be installed, or at least the following parts have to be in the netpbm path:

jpegtopnm
pbmtext
pngtopnm
pnmcomp
pnmtojpeg
ppmchange
ppmcolormask


then, you need x-window bdf fonts (not true type!). and finally, you have to specify netpbm path like this: /usr/local/netpbm/  (just path, no binaries!), and finally, /4images/data/media/  should be set "write all" if not set yet


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 25, 2003, 11:01:54 PM
I have all those parts installed.
I don't use text annotation, I use image.


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 25, 2003, 11:13:25 PM
Quote from: Yegor   [Expand]
I don't use text annotation, I use image.

it doesn't matter, they're all still used (except pbmtext)

try the following: temporarily remove all "-quiet" from comman lines, just to see if some error message genereted. if it will not help - put echo $command; after each system($command); line and check


Title: [Mod] Image Annotation (Watermark)
Post by: Yegor on June 25, 2003, 11:22:20 PM
Correction, I just asked my ISP, some components ARE missing:
pnmcomp
pnmtojpeg
ppmchange
ppmcolormask

They are gonn set that up ASAP. Ill leave feedback once they do.
Everything else seems to work flawlessly! Good job!

A weird problem that I noticed before I even upgraded (after I moved servers) is that Embedded image opacity no longer worked. This is not related to the new version, its something on the server. ANy ideas?


Title: [Mod] Image Annotation (Watermark)
Post by: xtase on June 25, 2003, 11:26:49 PM
First of all THX SLL ... year i was so crazy to write tff +g+ ...

but i still geht this error

"Warning: Could not find/open font in C:\wampp2039\htdocs\gallery\includes\annotate.php on line 78"

i put in in tahoma.ttf then i put in tahoma with out ttf but i always get the same error as below ... :roll: :( +g+


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 25, 2003, 11:41:44 PM
try
1
/wampp2039/htdocs/gallery/tahoma.tff
(without drive letter)


Title: [Mod] Image Annotation (Watermark)
Post by: xtase on June 25, 2003, 11:58:28 PM
nono :D

i checked this examples ...
/wampp2039/htdocs/gallery/tahoma.tff
/wampp2039/htdocs/gallery/tahoma.ttf
/wampp2039/htdocs/gallery/tahoma

\wampp2039\htdocs\gallery\tahoma.tff
\wampp2039\htdocs\gallery\tahoma.ttf
\wampp2039\htdocs\gallery\tahoma

and nothing of this were ok ... so now it´s time to go to bed +g+ ... tomorow i will check this mod online =)


Title: [Mod] Image Annotation (Watermark)
Post by: xtase on June 26, 2003, 06:19:29 PM
so i checked it online. when i want to batch the image with an font i get this error at each image :)

Quote  [Expand]
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /www/htdocs/hmhmhm/admin/plugins/batch_annotate.php on line 51

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /www/htdocs/hmhmhm/admin/plugins/batch_annotate.php on line 51

Warning: imagettftext(): supplied argument is not a valid Image resource in /www/htdocs/hmhmhm/admin/plugins/batch_annotate.php on line 195

Warning: imagejpeg(): supplied argument is not a valid Image resource in /www/htdocs/hmhmhm/admin/plugins/batch_annotate.php on line 196

Warning: imagedestroy(): supplied argument is not a valid Image resource in /www/htdocs/hmhmhm/admin/plugins/batch_annotate.php on line 197


and i also get errormessages when i want to batch it with an image =)

online i didn´t get the errormessage with the font error :)


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 26, 2003, 11:58:28 PM
most probably your php was compiled without freetype support


Title: [Mod] Image Annotation (Watermark)
Post by: xtase on June 28, 2003, 06:23:39 PM
Quote from: SLL   [Expand]
most probably your php was compiled without freetype support


so i have to talk to the hoster ?  :roll:


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 28, 2003, 08:00:47 PM
first of all run this file on your server and read output (gd module capabilities)
1
2
3
4
<?php
phpinfo
&#40;&#41;;
phpinfo&#40;INFO_MODULES&#41;;
?>



Title: [Mod] Image Annotation (Watermark)
Post by: xtase on June 29, 2003, 11:29:18 PM
look -> http://gallery.xtase.net/phpinfo.php

GD features are ...

Quote  [Expand]
GD Support -enabled
GD Version - bundled (2.0 compatible)
FreeType Support - enabled
FreeType Linkage - with freetype
T1Lib Support - enabled
GIF Read Support -  enabled
JPG Support - enabled
PNG Support - enabled
WBMP Support - enabled


 :roll:


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on June 30, 2003, 12:21:55 PM
Quote from: xtase   [Expand]
FreeType Support - enabled
FreeType Linkage - with freetype

then it's just a matter of settings. check again.. check path, check name, check case, check if this is windows ttf font.....


Title: [Mod] Image Annotation (Watermark)
Post by: lutz on July 04, 2003, 02:49:53 PM
hi all,
Quote from: NeoNuss   [Expand]
I use ImageMagick and the skript works fine, the batchprocess runs and there are no error messages. I include a small logo as .png-file in the lower right corner of the image - but nothing happens! there is no logo! ...

the same with me...
all i want is to annotate with an image.
there is no gd2, but i understood this mod to be working only with imagemagick in this case (using linux-server)...?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on July 04, 2003, 02:57:57 PM
Quote from: lutz   [Expand]
there is no gd2, but i understood this mod to be working only with imagemagick in this case (using linux-server)...?

yes, it works this way.... at least on my system  :lol:

the problem is that here, in this forum, we can see only problems. if mod is running fine, nobody cares writing positive reply   :wink:
for the moment this mod has been downloaded more by than 500 users. even if just one third of them had installed it, do you believe that all of them didn't work?


Title: [Mod] Image Annotation (Watermark)
Post by: lutz on July 04, 2003, 03:37:47 PM
Quote from: SLL   [Expand]
...do you believe that all of them didn't work?

why should i assume this??
maybe there is a misunderstanding. i was not really sure whether it should work (-> only using an image to annotate) without gd or not.
the good news: it should work :lol:
the bad news: it doesn´t work :cry: (on my linux system with two versions of IM in the repertory: 4.2.9 and 5.4.7)

Quote  [Expand]
if mod is running fine, nobody cares writing positive reply

any such replys are very welcome :wink:

@ Neonuss: have you solved your problem in the meantime?


Title: [Mod] Image Annotation (Watermark)
Post by: SLL on July 04, 2003, 03:46:46 PM
Quote from: lutz   [Expand]
the bad news: it doesn´t work :cry: (on my linux system with two versions of IM in the repertory: 4.2.9 and 5.4.7)

the best and easiest way to debug such problems (when no error message generated but script just doesn't work) is to put echo $comand; before or after system($command); then try to run exactly the same command line as you see from unix shell, from the same directory where php script is located.


Title: [Mod] Image Annotation (Watermark)
Post by: lutz on July 04, 2003, 03:58:21 PM
many thanx for your express answer!  :wink:

unfortunately, i´m not able to do this by myself, because i´m only a photographer...
but i will find someone to check this for me.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ascanio on March 11, 2005, 05:34:38 PM
Hi I use a Mod for check new images made by V@no call check for new images(i guess) and I get an error when y check the option of the wattermark I get this error

1
2
3
4
5
6
7
8
9
10
11
12
13
Warning: imagesx(): supplied argument is not a valid Image resource in /home/ascanio/domains/chicas-msn.tk/public_html/girls/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/ascanio/domains/chicas-msn.tk/public_html/girls/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/ascanio/domains/chicas-msn.tk/public_html/girls/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/ascanio/domains/chicas-msn.tk/public_html/girls/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/ascanio/domains/chicas-msn.tk/public_html/girls/includes/annotate.php on line 186
Working on data/media/49/cathy.jpg file:
Added annotation in data/media/49/cathy.jpg file.
Created thumbnail.
Imagen agregada: cathy



Title: Re: [Mod] Image Annotation (Watermark)
Post by: megalomania on March 27, 2005, 05:45:34 PM
Hi there,

the Image Annotation Mod is working fine with Text-Annotation for me (no errors occur).
However, after switching to Watermark-Annotation I get this error code when I want to "Batch Annotate":

1
2
3
4
5
6
7
8
9
Annotating between image ID 0 and 5:
Processing image Motto from category Bilder, image ID 1 >>
Warning: imagesx(): supplied argument is not a valid Image resource in \4images\includes\annotate.php on line 176
Warning: imagesy(): supplied argument is not a valid Image resource in \4images\includes\annotate.php on line 177
Warning: imagecolorallocate(): supplied argument is not a valid Image resource in \4images\includes\annotate.php on line 184
Warning: imagecolortransparent(): supplied argument is not a valid Image resource in \4images\includes\annotate.php on line 185
Warning: imagecopymerge(): supplied argument is not a valid Image resource in \4images\includes\annotate.php on line 186
OK
...

The .png files have been copied in the correct root-folder of "4images".
And now I am not quite sure what my problem is. And I didn't find any helpfull lines in here according to the mentioned line numbers, except the last post from "ascanio".  :oops:

Maybee someone else knows what the problem is?  :)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: soasuk on March 31, 2005, 05:45:58 PM
Hi I use a Mod for check new images made by V@no call check for new images(i guess) and I get an error when y check the option of the wattermark I get this error

Hi all, i am also trying to use V@no's new image check and am getting the same errors, i noticed in the features for the image check annotate v2 was supported, after looking around the site i can find no other referance to v2. can anyone help?
thanks, soasuk


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nasser on April 01, 2005, 06:07:46 AM
is there is any way to get it work with the old images in galleries ? which were added before I install this mod ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: that Dude on April 02, 2005, 01:18:07 AM
Does anyone know where can I find the "v2 of the annotation mod". I can't seem to find it anywhere in this message board as well google cache but people are using referaces of that mod in many posting. Thanks.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: GAGA on April 02, 2005, 11:40:14 PM
Nice piece of code. Thx for sharing!  :)

Here are some nice fonts for this plugin - http://www.webpagepublicity.com/free-fonts-s.html#FreeFonts


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Vincent on April 03, 2005, 02:26:29 PM
is it working with

ImageMagick-5.5.7-Q8

sincerly
vincent


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ascanio on April 04, 2005, 04:38:06 PM
I get this erro just when I select the watermark option  :?

(http://members.cox.net/jaime/check.jpg)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: abda53bd on April 12, 2005, 08:31:14 PM
can this be done on the fly, just for images in details? and only for unregistered users?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on April 13, 2005, 12:32:16 AM
yes it can be done, but your server administrator might not like it ;) (will hit on server perfomance)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Vincent on April 13, 2005, 10:41:27 AM
is it working with

ImageMagick-5.5.7-Q8

sincerly
vincent


Title: Re: [Mod] Image Annotation (Watermark)
Post by: benediktlangmantl on May 03, 2005, 02:13:34 PM
hallo, habe mal ne Frage, habe das Watermark Mod eingebaut http://www.4homepages.de/forum/index.php?topic=3808.0
Habe nur ein kleines Problem damit, es funktioniert nur, wenn registrierte User ein Bild uploaden. Wenn ich aber als Admin über das Controllpanel ein Bild uploade, wird leider kein Watermark gesetzt. Ist es irgendwie möglich das zu ändern, müsste den Mod nämlich so haben, dass egal wer uploaded generell das Watermark gesetzt wird.

Meine zweite frage:
Warum wird wenn ich bei den Einstellungen einstelle, dass automatisch Tumbnails erzeugt werden sollen, das ebenfalls nur bei Reg Users gemact und nicht bei Admins, über das Adminpanel.

Bitte schnelle Hilfe


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SantaZ on May 03, 2005, 05:30:48 PM
hallo,

zumn ersten Problem würde ich diese änderung emnpfehlen.
http://www.4homepages.de/forum/index.php?topic=4754.0

Da kannst du beim Bilderchecken gleich angeben ob ein Watermark hinzugefügt werden soll doer nicht


Title: Re: [Mod] Image Annotation (Watermark)
Post by: benediktlangmantl on May 03, 2005, 06:01:32 PM
hallo,

zumn ersten Problem würde ich diese änderung emnpfehlen.
http://www.4homepages.de/forum/index.php?topic=4754.0

Da kannst du beim Bilderchecken gleich angeben ob ein Watermark hinzugefügt werden soll doer nicht

Das ist aber nicht das was ich möchte. mit diesem zusätzlichen Einbau kann ich bilder meiner User überprüfen und das Watermark setzen, dass ist richtig, aber wenn ich selbst über die Adminebene Bilder uploade, funktioniert das nicht. mein Problem ist, dass ich bei dem Wasserzeichen ohnehin so eingestellt bin, das User beim Upload automatisch ein Wasserzeichen hinzugefügt bekommen, aber wie schaffe ich es, wenn ich als Admin selbst Bilder über die Adminpanel hinzufüge, dort ebenfalls ein Wasserzeichen zu setzen.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: universal on May 04, 2005, 09:05:27 AM
Hi.
A little problem, okay... big problem :)
This is my gd info:
==========================
GD Support  enabled 
GD Version  bundled (2.0.28 compatible) 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XBM Support  enabled 
==========================


Quote  [Expand]
Annotating between image ID 2560 and 2569:
Processing image BaseBall from category Sportas, image ID 2560 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Geras pasas? from category Sportas, image ID 2562 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Trumpas stalas from category Sportas, image ID 2563 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Sumo from category Sportas, image ID 2564 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Lengvoji? atletika from category Sportas, image ID 2565 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image ledo teisejai protingas? from category Sportas, image ID 2566 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Dar pakelt koja? from category Sportas, image ID 2567 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image kulverstis from category Sportas, image ID 2568 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK


Why I get these errors when I`m using "Batch Annotate". Annotation works perfect when I uploading image...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on May 04, 2005, 02:35:43 PM
try adding this code in the very begining of batch_annotate.php
1
2
3
4
<?php // PLUGIN_TITLE: Batch Annotate
import_request_variables("GPC");
extract($_SERVER);



Title: Re: [Mod] Image Annotation (Watermark)
Post by: universal on May 04, 2005, 08:06:56 PM
same problem...  :?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: max.cady on May 07, 2005, 11:18:36 AM
Great mod, thanks ... FINALLY it works with me too  :mrgreen:

My problem was finding the "full path" to the font. The penny dropped when I got an error message when I tried to open one of the test php-files suggested here. I got the message couldn't open  /homepages/46/d13438658/htdocs/test3.php on line 3

So I tried this path and it worked  :D.
Before this I just put the link to the font www.domain.de/4images/arial.tff in the settings and had no luck.

Just thought I would post this just in case some other more inexperienced like me are trying this mod and do not see the annotation mark although anything else works fine. The problem most likely lies with the full path. Though I don't know where to find the full path unless you get an error message ...  :?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: soerenschulz on May 07, 2005, 06:29:48 PM
Hallo,

das script funktioniert eigentlich prima, ausser wenn ich bilder über ftp hochlade und "Batch Annotate" starte kommt ständig

"Processing image 1 from category PSD-Templates, image ID 1220 >> Skipped"


Title: Re: [Mod] Image Annotation (Watermark)
Post by: benediktlangmantl on May 08, 2005, 07:28:12 PM
Hallo, meine Frage ist immer noch nicht beantwortet worden.

Wenn ich als Admin über das Adminpanel Bilder hinzufüge, warum fügt er dann das Wasserzeichen nicht hinzu? oder wie muss ich es ändern?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: universal on May 10, 2005, 12:55:56 PM
So can someone help me...? Or just say what the problem is?

Quote  [Expand]
Processing image Paskutinė vakarienė... from category Nuotraukos, image ID 80 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on May 12, 2005, 03:32:18 AM
habe ähnliches Problem wie benediktlangmantl (Seite zuvor).
mein system Win XP prof SP2 mit diesem Watermark MOD  http://www.4homepages.de/forum/index.php?topic=3808.0

habe mod vollständig und korrekt installiert (bin mir zumindest keiner fehler bewußt und habe noch keine fehlermeldung erhalten!).
dennoch erhalte ich keine wasserzeichen, ob als text oder png bild (habe testbilder aus MOD verwendet). bin als admin eingeloggt und lade per ftp bilder hoch. Uploadfunktion für User wird nicht zwingend benötigt.
alles aktiviert gd2 auch vorhanden und eingestellt.
da ich schon einige bilder aufgespielt habe, würde ich gerne die batch funktion nutzen und ein Watermarkbild einbetten.
bei batch annotate befehl tut sich gar nichts. erhalte aber auch keine fehlermeldung. Browser lädt kurz und dann fertig.

für hilfe wäre ich sehr dankbar. falls nötig könnte ich den gallerielink nachreichen. danke



Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on May 12, 2005, 09:55:11 PM
Hallo?

SSL kannst Du mir vielleicht helfen? Bin echt am verzweifeln. Bin Newbie und habe alles versucht. :(

Hier meinephpinfo Auszug bezgl. GD :
gd
GD Support  enabled 
GD Version  bundled (2.0.28 compatible) 
FreeType Support  enabled 
FreeType Linkage  with freetype 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XBM Support  enabled 




Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on May 16, 2005, 01:37:28 AM
hello together!

i have installed the mod.
i have just installed nearly 200 pics and now i want to batch annotate.
but in acp i get only a white screen and no error messages.
it is loading just a second and after that it shows ready in status bar.
what have i done wrong?
please help me.  :(

i don´t get any annotations. i want to implement a watermark pic.
i use 4images 1.7.1 and gd2 (u can see in the posting before)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: graficalicus on May 18, 2005, 02:19:41 AM
first off - I'm running 1.7.1, linux, GD 2.0.12, using IM to create thumbs, etc. etc - -

this works great for text annotation, but I can't get image annotation to work - - -  no worries, though -

I can actually help a bit for a few of the reoccuring problems (I printed out this thread - 67 pages! - and read it while sitting on the deck this afternoon!)


Quote  [Expand]
but in acp i get only a white screen and no error messages.

this is from V@no from another thread:
Quote from: V@no   [Expand]
blank page? want to see the error messages?
uncomment this line in global.php:
Code:
//error_reporting(E_ALL);(assuming u are using v1.7.1)
in v1.7 insert below the existing error_reporting line this:
Code:
error_reporting(E_ALL);


Quote  [Expand]
So can someone help me...? Or just say what the problem is?

did you create & run the test php file from the instructions?  if not, download it from this post (see below for link) - I made it a php for you -

You'll need to edit this file a bit - here's how:
find
1
/home/public_html/arial.ttf

and change it to be the exact path and font name where your font - (the *.ttf file you want to write on your images with) - is stored. If you want to use Tahoma.ttf, for example, open Windows/FONTS on your system. locate tahoma.ttf and upload it to the root of your site - or wherever you want to store your fonts. This could be another folder called "fonts", for example. If you choose to use the default Arial.ttf, make sure it's uploaded to the folder you designate.

Open your site's control panel - you probably have one somewhere (I use cPanel) - and hunt around in all the menus and such for something that says "WWW directory" and/or "root directory" - this will show you what the path in this file (and in the ACP areas that need a path) should be. Mine, for example, is "/home/graf/public_html" - yours will be similar.  If you can't find it there in your site's control panel, use the FTP address where you upload your files. If you can't find it there, ask your host what it is - even if you don't know what you're talking about, they'll know, so just copy down exactly what they tell you.

Once you have the root directory path (or "WWW directory" path - whatever your host calls it - ) paste it into the script above - and upload to your site's root. Run it -  type into your browser "http://www.my_big_dotcom.com/image_tester.php" - - substitute your site URL for what I put in there (hopefully I didn't HAVE to type that last bit, but....)

Did you see something like this: graffi's font test for watermarking (http://digiart.graficalicus.com/font__test.php) ? I'm using a retro-style font set at 9 pts - white on a black BG in a 240px wide box.

If you did, the script works, your site works, everything is OK - you just have to debug what you did wrong in typing one of the paths in the annotation settings panel.

If you CAN'T see anything, or get an error message of some sort, you're probably out of luck with this MOD, assuming you got your paths right in the tester script - -

If you're testing this MOD in batch mode, be sure to be editing more than one image (trying it out on just one image at a time won't work, for some weird reason) and that uploading is turned ON - - otherwise, you'll get nothing.

If you'd like to change the transparency of TEXT annotation, I'll have a fix for that later -

hope this helps - - (http://www.graficalicus.com/images/graffiman/graffidude-mini.gif)



 


Title: Re: [Mod] Image Annotation (Watermark)
Post by: graficalicus on May 18, 2005, 04:45:36 AM
and another question - -

Quote from: V@no   [Expand]
Quote from: ksk
there is like a link in uploadform template html

[ ]Add watermark
The text will be embeded in the bottom-right corner of the image

where?
it was not supposed to be for "any" categoryes...only owners of "Member Personal Category" can chose add or not the watermark when uploading in their categories...


so how would this be added as an upload option?   :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: graficalicus on May 18, 2005, 04:49:56 AM
Ooops - - -

also 2 other small things:
  • I can't find where to change the opacity of the text - image, yes, text, no - -
  • the text annotation options (%N, %B, %S, etc.) don't seem to work - they actually print the code - %B  %S  %T.... instead of username, date, line break, etc. - -  :?:

thanks one thousand times :!:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on May 18, 2005, 11:11:59 PM
@graficalicus

thanks for the "new" test.
i ve made the image_tester.php test and it showed a black square with white "this is a test" text on it.
so i think everything has to work. doesn`t it?
after configuring the annotation settings in acp and logging in as admin i tried to direct upload an image.
and what a wonder. there is an text watermark implemented automatically. great :)
but if i adjust in the settings to implement an watermark image (logo-gd.png in root directory), so i cannot see anything after direct uploading :(
WHY???
And also the batch annotate function doesn´t work for me. what i´m doing wrong???
please help me i´m trying to find out for several days.  cause i have already 200 pics online before installing the mod.

hope anyone could help me.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: graficalicus on May 19, 2005, 01:38:32 AM
Quote  [Expand]
i ve made the image_tester.php test and it showed a black square with white "this is a test" text on it.
so i think everything has to work. doesn`t it?

 :D  it works!

Quote  [Expand]
but if i adjust in the settings to implement an watermark image (logo-gd.png in root directory), so i cannot see anything after direct uploading
WHY???

are you using IM for images in your ACP?  I am, too, and I'm having the same problem - - something with the path I haven't figured out yet....

For now, if you need to annotate many images, text annotation is the way to go  (at least until IM patch gets worked out - - I'm working on it, too....  :?)

Quote  [Expand]
And also the batch annotate function doesn´t work for me. what i´m doing wrong???

Batch was kind of weird to figure out, but here's what I did:
  • in your ACP, under "Annotation Settings" - "Use auto images annotation on image upload" - turn ON
  • Annotation mode:  text
  • Annotation text:  type in what you want to appear (Shortcuts - "%D", "%S", etc. - aren't working yet with IM)
  • the font path must be just like the test php file (copy & paste directly from that)
  • make your other text settings, as well as positioning
  • Click "Save changes" at the bottom

Next, go to Batch Annotations in the ACP -
  • select the category you want to annotate first (you can only do one category at a time)
  • Select how many images to do at a time (you MUST do more than 1 image at a time or nothing happens... :?)
  • Input the image ID# to start with
  • automatically continue to the next ones, or wait for a click from you? Choose Yes or No
  • Click "Submit" at the bottom, and it should take off and watermark the images you told it to do

I'm still messing with some of the IM settings - I'll post more solutions as soon as I get something working, but it may be a few days.... :(   hold tight....

Good Luck!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Vincent on May 19, 2005, 08:11:16 AM
Quote  [Expand]
Requirements:     

To use in text annotation mode: GD2+ Library compiled with Freetype support. Also works with ImageMagic, but GD still needed for some functions, which ImageMagic is missing.
For "image embedding" mode you don't need anything.
Hello
What is the meaning of "For "image embedding" mode you don't need anything"?
the Problem i have is - i don't have GD only ImageMagic

thanks for feedback
Vincent


Title: Re: [Mod] Image Annotation (Watermark)
Post by: graficalicus on May 19, 2005, 02:20:58 PM
there's a path problem somewhere when using IM -I'm having the same problem, too -

I haven't been into the code yet, but take a look & noodle about with the path here (save a backup first!!):

includes/annotation.php:

1
2
3
4
5
if ($ann_tool == "im") {

if ($use_image) {
   $command = $convert_options['convert_path']." -quality ".$ann_image_quality." -draw \"image CopyOpacity $h_offset,$v_offset 0,0 $ann_embed_image\" \"$ann_src\" \"$ann_dest\"";
   system($command);

look at the "$ann_src\"  - instead of making it a variable ($ann_src), try making it an absolute link (assuming your watermark image won't change - if your watermark image changes, you'll have to change this code again as well - - )

Just an idea -- it's what I'll try next......


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on May 23, 2005, 08:51:52 PM
as you can see in my postings above:
i use GD2. i think i installed the MOD correctly. All Admin control panels are working.
text embedding in user upload form works great!

BUT BATCH ANNOTATE is not working with GD2 for me!  WHY????!!!!!

i have tried several times with different settings. Nothing happened.

Please gimme some advice.  I'm getting frustrated.
 :cry:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: farhan on May 24, 2005, 07:30:40 AM
what error are u getting bibabobu ?



Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on May 24, 2005, 08:14:09 AM
i get no errors or i can't see them.
but i know that there is an opportunity to change something in the code to see errors.

Definitely there is no watermark embedded to my images by executing batch innotate with GD2 on WinXP.
I modified text annotation without shadow and opacity and in Arial.ttf.

In the direct upload form it is working! Why not in batch annotate???  :cry:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Vincent on May 24, 2005, 08:19:37 AM
Quote  [Expand]
Requirements:     

To use in text annotation mode: GD2+ Library compiled with Freetype support. Also works with ImageMagic, but GD still needed for some functions, which ImageMagic is missing.
For "image embedding" mode you don't need anything.
Hello
What is the meaning of "For "image embedding" mode you don't need anything"?
the Problem i have is - i don't have GD only ImageMagic

thanks for feedback
Vincent


Title: Re: [Mod] Image Annotation (Watermark)
Post by: graficalicus on May 24, 2005, 05:50:11 PM
Quote from: bibabobu   [Expand]
i get no errors or i can't see them.
but i know that there is an opportunity to change something in the code to see errors.



try -
1
2
3
4
5
6
7
uncomment this line in global.php:
Code:
//error_reporting(E_ALL);(assuming u are using v1.7.1)

in v1.7 insert below the existing error_reporting line this:
Code:
error_reporting(E_ALL);


Title: Re: [Mod] Image Annotation (Watermark)
Post by: RamEEz on May 30, 2005, 11:32:41 AM
1
2
Processing image Faraz Anwar from category Mizraab At Indus Music Awards, image ID 47 >>
Warning: imagettfbbox(): Could not find/open font in /home/mizraabi/public_html/gallery/includes/annotate.php on line 95

getting this error how to fix it.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on May 30, 2005, 11:36:17 AM
Processing image Faraz Anwar from category Mizraab At Indus Music Awards, image ID 47 >>
Warning: imagettfbbox(): Could not find/open font in /home/mizraabi/public_html/gallery/includes/annotate.php on line 95
wrong path to the font file


Title: Re: [Mod] Image Annotation (Watermark)
Post by: RamEEz on May 30, 2005, 11:46:00 AM
anyways i have fixed it myself :) thanks for the reply.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Leitha on May 31, 2005, 05:52:54 PM
I've search thru the boards for a solution to this but couldn't find anything.

I've installed the mod and everything works apart from the variables :

%N - Site Name, %H - full Site URL, %U - short Site URL, %S - User Name, %D - date, %T - time, %B - line break

Whenever I try to use these I literally just get %N %D (for example) instead of the variable. Anyone have any idea what the problem could be?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on May 31, 2005, 07:25:38 PM
my prob is solved!

it was the path to the font.

with path:   /arial.ttf for example it works only for the direct upload to watermark the image.

with path: /home/mydomain.xy/4images/arial.ttf it works for both. direct upload and batch annotation.

Now I'm very happy. :D :D :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: graficalicus on May 31, 2005, 07:52:44 PM
Quote  [Expand]
Whenever I try to use these I literally just get %N %D (for example) instead of the variable.

me too - are you using IM?  i think the variables aren't being parsed quite right, but I'm still messing with it.

The way IM is working, I might just post a complete MOD to this MOD with some different variations....


Title: Re: [Mod] Image Annotation (Watermark)
Post by: RamEEz on June 02, 2005, 10:16:40 AM
I am using this mod and its working fine. But i have a question

I have disabled "Use auto images annotation on image upload" but now when i click on "Batch Annotate" it doesnt show any watermark on the images.

is it possible that i can keep "Use auto images annotation on image upload" Disabled and i can still use the feature "Batch Annotate"?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kief24 on June 03, 2005, 08:09:03 PM
I installed the mod.

No problem.

I can enter everything in Cpanel.
The test php script works fine.

But

The mod doesn't do a thing.

There is no text on new pictures
no image on new pictures

an an error when using the batch annotate

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Annotating between image ID 20 and 24:
Processing image test watermerk from category Huidige projecten, image ID 20 >>
Warning: chdir(): No such file or directory (errno 2) in /home/belgapix/public_html/includes/annotate.php on line 11

Warning: rename(zomer14.jpg,zomer14.jpg.bak): No such file or directory in /home/belgapix/public_html/includes/annotate.php on line 12
Skipped
Processing image test watermark from category Huidige projecten, image ID 21 >>
Warning: chdir(): No such file or directory (errno 2) in /home/belgapix/public_html/includes/annotate.php on line 11

Warning: rename(zomer01.jpg,zomer01.jpg.bak): No such file or directory in /home/belgapix/public_html/includes/annotate.php on line 12
Skipped
Processing image watermerk test2 from category Huidige projecten, image ID 22 >>
Warning: chdir(): No such file or directory (errno 2) in /home/belgapix/public_html/includes/annotate.php on line 11

Warning: rename(zomer02.jpg,zomer02.jpg.bak): No such file or directory in /home/belgapix/public_html/includes/annotate.php on line 12
Skipped
Processing image test watermark 4 from category Huidige projecten, image ID 23 >>
Warning: chdir(): No such file or directory (errno 2) in /home/belgapix/public_html/includes/annotate.php on line 11

Warning: rename(zomer08.jpg,zomer08.jpg.bak): No such file or directory in /home/belgapix/public_html/includes/annotate.php on line 12
Skipped
Processing image test 5 from category Huidige projecten, image ID 24 >>
Warning: chdir(): No such file or directory (errno 2) in /home/belgapix/public_html/includes/annotate.php on line 11

Warning: rename(zomer11.jpg,zomer11.jpg.bak): No such file or directory in /home/belgapix/public_html/includes/annotate.php on line 12
Skipped


Finished!



all my settings are correct i think

full path to font :
/public_html/fonts/arial.ttf

annotation text
Copyright D de Kievith

i work with GD 2.0 installed on the server, and the path is correct.

So why is nothing happening ??  :? :?










Title: Re: [Mod] Image Annotation (Watermark)
Post by: kief24 on June 03, 2005, 08:15:29 PM
some more info :

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

PHP Version 4.3.11


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kief24 on June 04, 2005, 01:00:14 PM
batch annotate error is solved.

Because of an earlier MOD from "pic security", i changed the name of the folder where the pics are stored ( media ).

So the Watermark Mod couldn't find them.

Solved now.

But the watermark still doesn't appear during upload.

Must be some minor problem i think, but can't find it...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kief24 on June 05, 2005, 08:55:36 PM
all works fine.
No errors, batch annotate works well.

But i can't get the watermark on the pic during upload.
I searched everything, but can't find the problem.

Anyone who is using this script who had the same problem or has an idea what the problem could be ?

thx !


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on June 05, 2005, 09:21:52 PM
perhaps u added code in member.php in the wrong place?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kief24 on June 06, 2005, 01:13:33 PM
i checked twice, and the code is inserted correct.

But i can do the annotation with annotate function, so i'll have to do it like that.
 ----------------------------------------

What is very strange :
if i use "check for new images", i can use the auto resizer as an option ( there i can add annotation ), and the auto thumbnailer.

This works fine, but the size of the picture get bigger !

example :
i upload a picture with ftp.
and than i do "check for new images" : it finds that new picture.

I use the resize function - but i don't change the size - i use it to add the annotation.
and i use the auto thumbnailer.

All works fine, thumbnail is made, annotation is added,but the pic was 52 kb before, and now 151 kb !!

is this because of the annotation ? because of the adding of the text ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on June 06, 2005, 02:14:45 PM
All works fine, thumbnail is made, annotation is added,but the pic was 52 kb before, and now 151 kb !!

is this because of the annotation ? because of the adding of the text ?
sounds to me like u set quality to 100% in the settings...IMO 85% is the most optimal regarding quality+filesize


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kief24 on June 06, 2005, 07:19:48 PM
yes, i've put it to 100 %
i'll lower it.
thx for the tip !


Title: Re: [Mod] Image Annotation (Watermark)
Post by: djkamp on June 08, 2005, 01:31:54 PM
skript doesn't work....

i installed the mod, and i get no errors, but there is nothing on the images. not via the admin bathc, either the normal uploadskript


PLEASE HELP!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: lapinkulta on June 09, 2005, 06:07:37 PM
will the watermark option work also on animated gifs?

greetings,
lapinkulta


Title: Re: [Mod] Image Annotation (Watermark)
Post by: graficalicus on June 09, 2005, 06:16:13 PM
Quote  [Expand]
will the watermark option work also on animated gifs?

try it!

Quote  [Expand]
i installed the mod, and i get no errors, but there is nothing on the images. not via the admin bathc, either the normal uploadskript

do this:
Quote  [Expand]
uncomment this line in global.php:
Code:
//error_reporting(E_ALL);(assuming u are using v1.7.1)

in v1.7 insert below the existing error_reporting line this:
Code:
error_reporting(E_ALL);


and it will list the errors


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on June 09, 2005, 09:08:14 PM
After ISP change i got these errors:
1
2
3
Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /is/htdocs/wp1015398_0TDZ7CIHLH/www/galerie/admin/plugins/batch_annotate.php on line 8

Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='./:/usr/share/pear/php5/') in /is/htdocs/wp1015398_0TDZ7CIHLH/www/galerie/admin/plugins/batch_annotate.php on line 8

What is wrong? I just have changed the ttf font path to the current directory.

Annotation works for direct upload.
but batch annotate does not work. i cannot go to the batch annotate menu in the acp.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on June 09, 2005, 11:54:16 PM
change ROOT_PATH to "../../"


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on June 10, 2005, 01:22:21 PM
Great! v@no :D

Now it is working again. Thanks a lot. You re great


Title: Re: [Mod] Image Annotation (Watermark)
Post by: hadron on June 13, 2005, 03:57:43 PM
Is it somehow possible to get the Watermark into the Thumbnails too?

I tried to find out how to change/add some code but couldn't get it work. This would be a great help to me!

I rellay appreciate this great mod. It should get a part of the core!!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: hadron on June 14, 2005, 06:08:57 PM
Is it somehow possible to get the Watermark into the Thumbnails too?

I tried to find out how to change/add some code but couldn't get it work. This would be a great help to me!

I rellay appreciate this great mod. It should get a part of the core!!

I already found a solution i can deal with. I installed the Mod 'Rebuild Thumbnails' and after I uploaded a pic I run Rebuild Thmumbsnails and all is ok :)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rocofella on June 16, 2005, 01:31:04 AM
hallo,

habe folgendes problem.

wenn ich "Automatische Annotation-Funktion beim Upload" anmache dann habe ich bei bild und text jeweils fehler.

wenn ich bild auswähle und dann ein bild hochladen möchte passiert folgendes. nachdem ich auf abschicken geklickt habe geht es nach kurzer zeit zur member.php weiter (die seite ist weiß) und das wars, nichts tut sich. bild nicht oben.

wenn ich text auswähle dann habe ich folgende fehlermeldung stehen:
Warning: imagettfbbox(): Could not find/open font in /home/www/web1/html/mybbc/pics/includes/annotate.php on line 95
Warning: imagettftext(): Could not find/open font in /home/www/web1/html/mybbc/pics/includes/annotate.php on line 192
Warning: imagettftext(): Could not find/open font in /home/www/web1/html/mybbc/pics/includes/annotate.php on line 193

bild ist oben aber ohne den text.

bin für hilfe dankbar!
-----------------------------------------------------
hello,

my english is bad.

if i acctivate the annotation i have probs.

if i choose picture by annotation i have this problem:
after click on "send" the browser goes to the "member.php" and nothing do. the picture is not uploaded.

if i choose text the picture can upload but without the text. i have warnings:
Warning: imagettfbbox(): Could not find/open font in /home/www/web1/html/mybbc/pics/includes/annotate.php on line 95
Warning: imagettftext(): Could not find/open font in /home/www/web1/html/mybbc/pics/includes/annotate.php on line 192
Warning: imagettftext(): Could not find/open font in /home/www/web1/html/mybbc/pics/includes/annotate.php on line 193

thx 4 help!!


server infos (gd):
GD Support    enabled
GD Version    2.0 or higher
FreeType Support    enabled
FreeType Linkage    with freetype
T1Lib Support    enabled
JPG Support    enabled
WBMP Support    enabled


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on June 16, 2005, 02:47:30 AM
Warning: imagettfbbox(): Could not find/open font in /home/www/web1/html/mybbc/pics/includes/annotate.php on line 95


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rocofella on June 16, 2005, 12:19:17 PM
das problem mit der textanzeige ist gelöst.

allerdings funtzt das mit dem bild noch nicht. nach klick auf "abschicken" kommt im browser die "member.php" seite und nichts tut sich.

-----------------------------------------------------------------------------

problem with text is solved.

the problem with picture exists.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nasser on June 17, 2005, 03:21:03 AM
this mod is fantastic !
is there is any way to use it with the old pictures in the gallery that were published before installing the mod ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rocofella on June 20, 2005, 11:49:15 AM
kann mir niemand helfen?

can´t nobody help me?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Marquis2000 on June 21, 2005, 12:55:15 PM
Also die Annote-Batch Funktion funktionier bei mir auch nicht, wurde schon eine Lösung gefunden???

Gruß Marquis


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tikle on June 24, 2005, 03:42:52 AM
hallo

ich spräche Deutsch und Russisch---

ich habe eine frage zu den Läuten die diesen MOD gut kennen:

ist das möglich so zu machen das der User selber bei Upload entscheidet, ob er diese Wassezeichen haben will oder nicht?

ich werde auch danbar für eure Tips wie das geht oder ein Link were auch genügend ;)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Vincent on June 24, 2005, 02:56:21 PM
Guten Tag

was genau bedeutet
For "image embedding" mode you don't need anything.

gruss
vincent


Title: Re: [Mod] Image Annotation (Watermark)
Post by: TheMachine on June 29, 2005, 10:43:14 PM
I had the mod working fine just a few moments ago. I've not changed any config yet now it's skipping all files when I try to batch annotate!!
Any idea why this is happening, and more to the point how I can stop it


Title: Re: [Mod] Image Annotation (Watermark)
Post by: maikew on June 30, 2005, 03:36:00 PM
ich habe imagemagick installiert und dieser mod funktioniert nur wenn ich das wasserzeichen mit einem bild einfüge.
text-wasserzeichen funktioniert nicht.was mache ich falsch? :cry:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: TheMachine on June 30, 2005, 05:29:54 PM
Is there any support in here? :?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: TheMachine on July 01, 2005, 05:43:06 PM
I've reainstalled the mod, checked the config and setting are correct, however it's still skipping all images in every collection.
Can somebody please tell me why this is happening and offer a possible solution. I cannot use this system unless the images are watermarked... Back to Coppermine perhaps?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: iraklis on July 06, 2005, 03:56:41 PM
Solution for one of the problems :mrgreen:

Processing image Nose from category Tard Shots, image ID 492 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 178

Warning: imagesy(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 179

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 186

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 187

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/yegor/public_html/pix/admin/plugins/batch_annotate.php on line 188
OK



Change the path of the logo-gd.png in the ACP ==> "Annotation Settings", from "logo-gd.png" to "../logo-gd.png" than it should work, if you've the logo-gd.png file in the root directory.


Greez


Title: Re: [Mod] Image Annotation (Watermark)
Post by: WhiteRabbit on July 25, 2005, 02:05:39 AM
Hello.

It works, only in part. It doesn't work automatically when uploading images. I have to do it manually, via Batch Annotate. The other problem (worse) is that I can't use the variables %S and %N . Instead of inserting the data (user name and site name), it just prints the string exactly like that... %S and %N. I enabled the detailed error messages of PHP (I'm just trying on my computer), and it says as "notice": $user_info isn't declared on line 72 file: /includes/annotate.php .
No error for line 71,
1
($ann_site_name = $config['site_name'];)
wich is the definition of the other variable that I'm using.

Anybody with the same problem?.

Best regards.
WR.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: WhiteRabbit on July 25, 2005, 06:11:22 AM
Well, I did try it again, and It works when uploading images, but still cannot make the variables work...

Any idea?.

Best regards.
WR.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Vincent on July 25, 2005, 06:41:00 PM
Hello V@no
which path i have to add on my WindowsServer?

Quote  [Expand]
imagettftext ($im, 14, 0, 10, 21, $white, "/home/public_html/arial.ttf", "GD Freetype test");


the path www.foto-kocher.com/fonts/arial.ttf
or the windows path d:/ ......../ fonts/arial.ttf?

sincerly
vincent


Title: Re: [Mod] Image Annotation (Watermark)
Post by: WhiteRabbit on July 27, 2005, 08:19:07 AM
Hello again people:

I did find my error (or may be script error?).

Look at the file includes/annotate.php of the mod, line 74...

1
$ann_vars = array ("'%D'", "'%T'", "'%N'", "'%H'", "'%U'", "'%S'", "'%B'");

Do you see something strange?. Yep... double AND simple quotes. So the array was being filled with the '%X' string (all the text between the double quotes) instead of being filled with the expected string (or at least what I was expecting).
So you have two options: using the variables inside the simple quotes on the options page of the annotate (in case that you will use %<any of the posible letters used> just as srting), or simply editing this line and remove the simple quotes, so it looks like this:

1
$ann_vars = array ("%D", "%T", "%N", "%H", "%U", "%S", "%B");

Thanks for this excellent mod, it is just what I need.

Best regards.
WR.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Matthias70 on August 21, 2005, 08:31:48 PM
I want small watermark on my image on detail.html so I use font-size 10
I also want a watermark on my images in the 'big' folder. But there font-size 10 is so small that you nearly can not see it.

Is it possible to define a different font-size for the images in the 'big' folder?


Ich habe eine Wasserzeichen auf dem Bild der Detailseite in Schriftgröße 10. Das Wasserzeichen soll ja nicht zu groß sein  :wink:
Bei Schriftgröße 10 wird das Wasserzeichen auf dem großen Bild im big Ordner bzw. Download-Ordern so klein, dass man es fast nicht sehen kann.

Gibt es die Möglichkeit das Ganze so zu programmieren, dass man die Schriftgröße für das Größe Bild extra angeben kann?

Matthias


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bibabobu on August 22, 2005, 02:35:09 PM
Hello!
Perhaps somebody could help me.
I want to put a transparent watermark on my pics.
If i take the example pic of the mod installation directory (logo-gd =>File with the black background) everything works perfect for me.
I want to make my own PNG watermark. But it does not work for me.
I tried for hours to make a png watermark file which is working like the example file (with transparent background).
I am frustrated.

What i am doing wrong?
Which programs do you have used to create own watermark?
Is there something special to do?

i can´t get it.

Please help.

P.S. yes, i put black color for transparent in annotation setting and it is working with the example file but not for my own file.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Matthias70 on August 22, 2005, 03:48:44 PM
Hallo bibabobu,
bei den Einstellungen im ACP und Annotation Einstellungen kannst du den Grad der Bildtransparenz bestimmen. Nennt sich dort "Eingebettete Bildnis Undurchsichtigkeit"  :wink:
Wähle 100 wenn die Hintergrundfarbe verschwinden soll.
Natürlich musst du die Hintergrundfarbe ebenfalls angeben: weiß = #FFFFFF

viele Grüße
Matthias


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Matthias70 on August 22, 2005, 03:51:32 PM
Quote  [Expand]
I want small watermark on my image on detail.html so I use font-size 10
I also want a watermark on my images in the 'big' folder. But there font-size 10 is so small that you nearly can not see it.

Is it possible to define a different font-size for the images in the 'big' folder?

Is it possible only to watermark the image in the big/download folder and leave the resized image on detail.html blank?

Matthias


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on August 23, 2005, 05:31:33 PM
I tried for hours to make a png watermark file which is working like the example file (with transparent background).

As it's written in the installation note, GD can't handle "true" transparency. Instead you should use any solid color and then specify this color in the mod settings to be transparent. It can be black, white or whatever else. Just chose the right color  :wink:

I was using Photoshop to create example images, but you can use any other software, I'm pretty sure that PNG are always the same.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on August 23, 2005, 05:33:36 PM
Is it possible only to watermark the image in the big/download folder and leave the resized image on detail.html blank?

Theoretically - yes. But I've never seen this mod (big/small images), so I have no idea how to do it :wink:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Matthias70 on August 23, 2005, 05:53:51 PM
Theoretically - yes. But I've never seen this mod (big/small images), so I have no idea how to do it :wink:

Hi SSL
its a combination of two mods:
1. [Mod] Show original image in new window by clicking on image
http://www.4homepages.de/forum/index.php?topic=3236.0

2. "Alternate directory for download files"
http://www.4homepages.de/forum/index.php?topic=7499.0

V@nos mod "Check new images in ALL categories v2.10.4" supports the big/small folder mod above.
http://www.4homepages.de/forum/index.php?topic=4754.0

I just need the option to watermark the big image an not watermark the resized image

Matthias


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on August 24, 2005, 08:08:01 PM
I guess you are using different directories then... Chose the path for the "big" images here:
1
2
3
  if ($direct_upload) { $ann_src = MEDIA_PATH."/".$cat_id."/".$new_name; }
  else { $ann_src = MEDIA_TEMP_PATH."/".$new_name; }
  annotate_image($ann_src);


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Matthias70 on August 24, 2005, 08:30:03 PM
Hi SLL
the annotation of the big images works fine. So it's not a path problem.
At the moment both (big images and images on detail.html) are watermarked, when I check the box "watermark images"??

I just need one more checkbox in ACP where I can watermark the big images in the download-folder, but not the images in the category-folder.
Something like "Watermark only images in big folder"
I hope you understand my problem?

Matthias


Title: Re: [Mod] Image Annotation (Watermark)
Post by: martin150 on September 04, 2005, 12:30:16 PM
Hi !
First of all I am absolutly newbie in things like php.
Until now i did install some mod´s and the work great.
But with this mod i´ve a little problem:
I do have all the menu entries in the control panel. But when i click on "Batch annotate" i got following errors:

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /var/www/html/4images/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/4images/admin/plugins/batch_annotate.php on line 8

and here the "line 8" of "batch_annotate.php"

require(ROOT_PATH.'admin/admin_global.php');

Sorry for this newbie question, but i dont know what is to do now ??



lg
Martin


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Maniac on September 12, 2005, 07:33:15 PM
I've gone throught the whole thread and can't seem to find my issue.

I went thorugh the installation process and followed all instructions verbatim.

I am on Unix (php 4.39 and GD 2.028 - GD has png and jpg support enabled) and I want to annotate my images with the .png file.

In my annotation settings I have selected image as the mode and set the full path to my .png image "/home/userName/public_html/photos/image.png"

When I run the batch process I get no errors (Annotating between image ID 1070 and 1071: Finished!) But when I check the images there is not change.

When I do a direct upload I also get no change in my images. Auto Thumbnail is set to ON.

Any ideas what's going on?

Thanks in advance
 





Title: Re: [Mod] Image Annotation (Watermark)
Post by: martin150 on September 16, 2005, 07:59:53 AM
Hi !

Annotation funktioniert bei mir wunderbar. Aber ich habe ein Problem das mit diesem Mod zusammenhängen dürfte.
Ich lade meine Bilder per FTP hoch und übernehme sie dann mit dem Mod "Neue Bilder checken".

Wenn ich nicht resize und kein Wasserzeichen hinzufüge werden die EXIF und IPTC Daten übernommen.
Wenn ich aber ein Wasserzeichen hinzufüge, sind keine Exif Daten mehr vorhanden.

Any ideas ???

Danke im Voraus !

mfG
Martin


Title: Re: [Mod] Image Annotation (Watermark)
Post by: graficalicus on September 16, 2005, 07:44:55 PM
Quote  [Expand]
When I do a direct upload I also get no change in my images. Auto Thumbnail is set to ON.

Any ideas what's going on?

make sure, in ACP under Annotation Settings,  "Use auto images annotation on image upload" is set to "Yes" before batching - that should do it.  It needs to be set to Yes even for batch annotation.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Momo on September 18, 2005, 09:27:51 PM
Ich habe stundenlang hier gesucht, alles gelesen, keine Lösung gefunden. Was will mir das sagen?

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /home/htdocs/web11/html/galerie/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /home/htdocs/web11/html/galerie/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/share/php') in /home/htdocs/web11/html/galerie/admin/plugins/batch_annotate.php on line 8


batch annotate funktioniert also ni8cht und ein Wasserzeichen bekomme ich auch überhaupt nicht hin. Schade. Vielleicht kann mir jemand helfen.  Danke Momo


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Amosnet on September 19, 2005, 11:07:15 AM
I got the same errors, do anyone found a solution? :?: :?: :?:




Hi !
First of all I am absolutly newbie in things like php.
Until now i did install some mod´s and the work great.
But with this mod i´ve a little problem:
I do have all the menu entries in the control panel. But when i click on "Batch annotate" i got following errors:

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /var/www/html/4images/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/4images/admin/plugins/batch_annotate.php on line 8

and here the "line 8" of "batch_annotate.php"

require(ROOT_PATH.'admin/admin_global.php');

Sorry for this newbie question, but i dont know what is to do now ??



lg
Martin


Title: Re: [Mod] Image Annotation (Watermark)
Post by: eshpro on September 25, 2005, 02:27:21 AM
I have Multiupload MOD also but since i install this i cannot get annotation on my imapges when i upload them through Multi Upload. is there way i could make it work so it also add anotation with Multi Upload MOD

now it gives me error
"Cannot redeclare ann_rename() (previously declared in ..../annotate.php:9) in ..../annotate.php on line 9"


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Momo on September 26, 2005, 11:40:42 AM
In the Multiuploadmod you need to change all the added

require() -commands
to
require_once()

...and
include()
to
include_once()

Thats it


Title: Re: [Mod] Image Annotation (Watermark)
Post by: eshpro on September 26, 2005, 03:38:26 PM
In the Multiuploadmod you need to change all the added

require() -commands
to
require_once()

...and
include()
to
include_once()

Thats it

Hey thanks.. but mm i tried members.php, annnotate.php, categories.php.. and didn't find that like :/
can you plz tell me in which file i should change them?
thank you


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Momo on September 26, 2005, 04:13:09 PM
in the member.php


Title: Re: [Mod] Image Annotation (Watermark)
Post by: sharangan on September 29, 2005, 09:13:20 PM
Hi
i keep getting this error
Quote  [Expand]
Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /usr/home/levikay/public_html/gallery/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /usr/home/levikay/public_html/gallery/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/levikay/public_html/gallery/admin/plugins/batch_annotate.php on line 8

can some one help me
also none of my PlugIns r working such as
 Batch Annotate
Batch ZIP Import
Clear Cache
Postcard Viewer

i keep getting the same error

thanks guys


Title: Re: [Mod] Image Annotation (Watermark)
Post by: khansahib on October 05, 2005, 01:03:11 PM
Quote  [Expand]
Annotating between image ID 196 and 196:
Processing image cartoon from category Cartoons, image ID 196 >>
Warning: imagettfbbox() expects parameter 1 to be double, string given in /home/msn/public_html/display-pictures/includes/annotate.php on line 95

Warning: imagettftext() expects parameter 2 to be double, string given in /home/msn/public_html/display-pictures/includes/annotate.php on line 192

Warning: imagettftext() expects parameter 2 to be double, string given in /home/msn/public_html/display-pictures/includes/annotate.php on line 193

I m getting this error while i m trying to setup a annotation mod...
Help me out...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Viscum on October 06, 2005, 11:22:21 PM
1.st
great Mod from SSL!!!
everything is working fine with my installation, but there is a question for additional variables like "filename" or "imagename". I tried it for a while, but my php knowledge is too bad to fix this.

so any help is welcome!

best regards
viscum


Title: Re: [Mod] Image Annotation (Watermark)
Post by: db-freaks on October 10, 2005, 05:13:48 PM
Hi.. ich bräuchtee mal Hilfe... Hab den Mod installiert aber im Admin CP lassen sich unter den Annotation Einstellungen die änderungen nicht speichern.... wenn ich gespeichert hab und noch einmal darauf geh sind die einstellungen wieder weg... woran kann das liegen


Help.... if I do any changes for annotation, they will not be saved....
Can somebody help me....


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Acidgod on October 10, 2005, 06:46:25 PM
Also ich habe mal den dummen Fehler gemacht und habe Netscape das Formular speichern lassen und wenn ich dann die Einstellungen aufgerufen habe war alles wieder wie vorher weil Netscape den Text der Textfelder einfach überschrieben hat. (o:

Ist dir das vielleicht auch passiert?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: db-freaks on October 12, 2005, 09:36:21 PM
I,ve got a new problem...

if want to batch the pics it says the following error

Annotating between image ID 8 and 4963:

Processing image mini-CIMG3792 from category Meu's Geburtstag 10.10.2005, image ID 4963 >>
Warning: imagettfbbox(): Could not find/open font in /srv/www/htdocs/web36/html/promille/4images/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /srv/www/htdocs/web36/html/promille/4images/includes/annotate.php on line 192

Warning: imagettftext(): Could not find/open font in /srv/www/htdocs/web36/html/promille/4images/includes/annotate.php on line 193
OK

Finished!



If a User uploads a pic, theres no error and you can see the watermark...
Why not in Admin CP?



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Lunique on October 22, 2005, 11:26:42 AM
Hi !

Annotation funktioniert bei mir wunderbar. Aber ich habe ein Problem das mit diesem Mod zusammenhängen dürfte.
Ich lade meine Bilder per FTP hoch und übernehme sie dann mit dem Mod "Neue Bilder checken".

Wenn ich nicht resize und kein Wasserzeichen hinzufüge werden die EXIF und IPTC Daten übernommen.
Wenn ich aber ein Wasserzeichen hinzufüge, sind keine Exif Daten mehr vorhanden.

Any ideas ???

Danke im Voraus !

mfG
Martin

Ich hab das gleiche Problem kann jemand helfen?

I have the same problem as martin. If I use image annotation it deletes all exif and iptc data. Can someone help???

hugs Luna


Title: Re: [Mod] Image Annotation (Watermark)
Post by: aerodolphin on October 23, 2005, 12:17:11 AM
Hi. I've read every pages of this topic and tried every possible soluccions, but I have the same problem.

When I upload pictures nothing happens, pictures are uploaded but without text watermark. But when I try to "Batch Annotate" i get these error's:

Quote  [Expand]
Processing image TESTE from category Abstracto, image ID 15 >>
Warning: imagettfbbox(): Could not find/open font in /home/aerotek/public_html/photos/includes/annotate.php on line 96

Warning: imagettftext(): Could not find/open font in /home/aerotek/public_html/photos/includes/annotate.php on line 193

Warning: imagettftext(): Could not find/open font in /home/aerotek/public_html/photos/includes/annotate.php on line 194
OK

I have tested the test.php file and all works fine.

It must be a problem with my verdana.ttf path.

I have this file here: http://www.aerotek.org/photos/verdana.php
Where http://www.aerotek.org/photos/ is the 4images gallery root.

In the annotate setup I have this full path and font filename: /home/public_html/photos/verdana.ttf

Please. Can anyone help me? I passed the last 4 hours trying to solve this problem without success.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: sujithfem on October 27, 2005, 01:49:08 AM
i used to installeb by your commentas,but watermark [text] ,was not work ,please send me correct comment ,reason ,awaiting for youe valuable coment with tender heart

thank you

regards

sujith


Title: Re: [Mod] Image Annotation (Watermark)
Post by: sav on November 05, 2005, 02:21:07 AM
1
Fatal error: Call to undefined function: imagettfbbox() in /home/sav2003/public_html/bambas/includes/annotate.php on line 95

I get this error when trying to upload images with text annotation mode...
Anyone can help??


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on November 05, 2005, 02:25:40 AM
your server did not meet the minimum requirements for this mod. You can try use "image" type instead of "text" type.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: sav on November 05, 2005, 02:53:17 PM
Ok... It works with "image annotation" when I upload new pics...

Batch Annotate it doesn't work and it show errors like this
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Processing image Desert from category Visit to JERUSALEM !!, image ID 497 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 186
OK
Processing image Patriarxiki Sxoli Ierosolimon from category Visit to JERUSALEM !!, image ID 498 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 186
OK
Processing image Eisodos Naou Bithleem from category Visit to JERUSALEM !!, image ID 499 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/sav2003/public_html/bambas/includes/annotate.php on line 186
OK


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nasser on November 05, 2005, 06:17:14 PM
this mod is fantastic !
is there is any way to use it with the old pictures in the gallery that were published before installing the mod ?

the secend time I am asking about the upper question ..

+

what does the link in the admin panel which says (( Batch Annotate )) do ?

is there is a way to remove the annotate ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: egyptsons on November 07, 2005, 01:22:41 PM
I install the MOD from along time
and everyting is working good
but nowdays
I got this error when I try to use Batch Annotate

1
2
3
Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /home/egyptson/public_html/gallery/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/egyptson/public_html/gallery/admin/plugins/batch_annotate.php on line 8


I don't know why :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nasser on November 09, 2005, 07:22:23 PM
help me  :roll:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on November 10, 2005, 12:13:20 AM
this mod is fantastic !
is there is any way to use it with the old pictures in the gallery that were published before installing the mod ?

the secend time I am asking about the upper question ..

+

what does the link in the admin panel which says (( Batch Annotate )) do ?
Your second question is the answer to your first question ;)

is there is a way to remove the annotate ?
No, not really, unless you manage to make copy of each image before you add annotation.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nasser on November 10, 2005, 01:24:06 AM
got it ...

thank you !  :)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: sav on November 11, 2005, 02:50:09 PM
PLz someone help me about my previous topic . ..  V@no  :lol: :lol:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on November 11, 2005, 02:56:13 PM
Looking at the error message I only could guess that the images are corrupted, or for some reason (such as they have spaces in the filenames) system can not located them properly (especialy if you are using ImageMagick)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ganeshcp on November 19, 2005, 04:27:28 PM
am gettng this error

Processing image cele from category , image ID 4 >>
Fatal error: Call to undefined function: imagettfbbox() in /public_html/includes/annotate.php on line 95

does this mean server is not capable of watermarking?
i tried the script in the 2nd page of this site on my unix servers, it gives a parse error!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Acidgod on November 19, 2005, 04:31:53 PM
your server did not meet the minimum requirements for this mod. You can try use "image" type instead of "text" type.

Hope thats the right answer... (o:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ganeshcp on November 19, 2005, 05:03:49 PM
tried that...still getting a bunch of errors


Processing image aish look from category Rai, image ID 3 >>
Warning: rename(aish23P.jpg,aish23P.jpg.bak): No such file or directory in /public_html/includes/annotate.php on line 12
Skipped

Processing image aish close from category Rai, image ID 9 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 186
OK
Finished!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Acidgod on November 19, 2005, 06:32:56 PM
the url to the gallery and a admin user (send by pn) where fine... (o:

auto thumbnailer works fine at your gallery?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: GooSe_1977 on November 29, 2005, 01:21:41 PM
ok, ich hab das jetzt alles gemacht, mit dem standart logo für GD klappt das auch, mein eigenes will nicht :( aber das ist bestimmt mein fehler....
aber wenn ich Test eifügen will tut sich da garnichts ??


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on December 06, 2005, 12:59:16 PM
Processing image aish close from category Rai, image ID 9 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /public_html/includes/annotate.php on line 186


I have the same problem:

Quote  [Expand]
With image annotation (logo-gd.png)
Warning: imagesx(): supplied argument is not a valid Image resource in /home/www/web72/html/home/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/www/web72/html/home/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/www/web72/html/home/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/www/web72/html/home/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/www/web72/html/home/includes/annotate.php on line 186

With text annotation-->
Warning: imagettfbbox(): Could not find/open font in /home/www/web72/html/home/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/www/web72/html/home/includes/annotate.php on line 193

There's no difference between normal upload and batch_annotation....  always the same errors...
You see my problem! What can I do???

Circumstances: 
GD Support  enabled 
GD Version  2.0 or higher 
FreeType Support  enabled 
FreeType Linkage  with freetype 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
GetText Support  enabled
System  Linux tux43 2.4.21-291-athlon #1 Tue May 24 11:59:34 UTC 2005 i686 

The path I've insert is: /home/fonts/TAHOMA.TTF for the text and /logo-gd.png for the image which is in the root of 4images....
Please help me, step by step  :?

PS: I've read the whole thread and there are a few others with the same error, but i'ver nowhere found a clear solution. It can be the *nix-system or the path....  :?: :?: :?:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on December 06, 2005, 02:12:31 PM
Warning: imagettftext(): Could not find/open font in /home/www/web72/html/home/includes/annotate.php on line 193
...
The path I've insert is: /home/fonts/TAHOMA.TTF for the text ...

Your full path to your font should be : /home/www/web72/html/home/fonts/TAHOMA.TTF
and similar to your image ( logo-gd.png ) ...

mawenzi


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on December 06, 2005, 02:36:56 PM

Your full path to your font should be : /home/www/web72/html/home/fonts/TAHOMA.TTF



Thanks! With the logo-gd.png no problem, but with the text I receive the errors again:

Quote  [Expand]
Warning: imagettfbbox(): Could not find/open font in /home/www/web72/html/home/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/www/web72/html/home/includes/annotate.php on line 193

I have inserted your path...

Any suggestions?

Thank you very much for your help....


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on December 06, 2005, 03:06:29 PM
@ Olphi,

... is the way of writing with large letters correct ... the font-file-name in the font-folder ... ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on December 06, 2005, 03:07:55 PM
Check permissions


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on December 06, 2005, 04:22:10 PM
... is the way of writing with large letters correct ... the font-file-name in the font-folder ... ?

Everything should be OK, I have tried the tahoma.ttf in the root folder of 4images to start, but always the same errors (with large and small letters!)...  @ Va@no: The permissions are CHMOD 777...
It should work, but it doesn't  :?: :?: :?:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: CJSNACKS16 on December 07, 2005, 10:14:27 PM
Is it possible to only display the watermark on images for certain user groups? Like say some member groups will  see watermarked images, some will see unmarked images. Or maybe even for some groups just the full size image is watermarked but everything else is unmarked? Let me know :)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: egyptsons on December 11, 2005, 01:03:47 PM
... is the way of writing with large letters correct ... the font-file-name in the font-folder ... ?

Everything should be OK, I have tried the tahoma.ttf in the root folder of 4images to start, but always the same errors (with large and small letters!)...  @ Va@no: The permissions are CHMOD 777...
It should work, but it doesn't  :?: :?: :?:

I think the Path not right
Quote  [Expand]
/home/www/web72/html/home/includes/
how you have got to "Home" directory


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on December 11, 2005, 04:03:33 PM
I've got it, don't know how...

I've changed the folder name to annotate and then --> no more problems! (the permissions were the same...)

 :roll:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: vietdragon on December 12, 2005, 07:48:41 AM
What about this error


Fatal error: Call to undefined function: imagettfbbox() in /home/muzic/domains/vietnamphotos.net/public_html/includes/annotate.php on line 95


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on December 12, 2005, 07:50:57 AM
your server didnt pass the minimum requirement by this mod. You only can use image type of annotination, no text type.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: vietdragon on December 12, 2005, 08:05:01 AM
Thank sir ,

it working fine : http://vietnamphotos.net/img5.htm


Title: Re: [Mod] Image Annotation (Watermark)
Post by: izone on December 18, 2005, 12:45:32 PM
Thanks for another great mod  :D

I have installed this mod and it works fine. But I have some categories that I do not want to be auto watermarked. Is there anyway to configure it to not adding watermark to picutres on these categories?

Best Regards.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on December 18, 2005, 01:25:36 PM
Sali  :wink:

You can switch off the auto annotation and from time to time use the batch annotation for those categories which you want to have a watermark...

I know its a bit more work than normal, but I don't think there's a simple solution :!:          But if someone knows where and how... :mrgreen:


Cheers


Title: Re: [Mod] Image Annotation (Watermark)
Post by: 72dpi on December 22, 2005, 01:13:17 AM
I really like this Mod.
is there any chance you can do it on a "Per Image" basis?

Someone did this for their version of Subdreamer:
http://www.subdreamer.org/forum/index.php?showtopic=449&pid=2563&st=0&#entry2563

I was hoping to do this for 4images, since MANY photographers will be uploading, and many would want the opportunity to watermark, whereas some don't care & would like to share their images.

Thanks!



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on December 22, 2005, 01:33:31 PM
I really like this Mod.
is there any chance you can do it on a "Per Image" basis?

Someone did this for their version of Subdreamer:
http://www.subdreamer.org/forum/index.php?showtopic=449&pid=2563&st=0&#entry2563

I was hoping to do this for 4images, since MANY photographers will be uploading, and many would want the opportunity to watermark, whereas some don't care & would like to share their images.

Thanks!




I think everything is possible! It depends on your php knowledge....   :wink:
But if you are so good than I am, forget it!   :mrgreen: :mrgreen: :mrgreen:


Cheers


Title: Re: [Mod] Image Annotation (Watermark)
Post by: izone on December 22, 2005, 06:22:28 PM
@ Olphi

I know that I can do it like that. But it wasn't what I was asking for, was it??

I think it is better to not answering if you don't have a real answer. What you do is called SPAMMING :x

thanks


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on December 22, 2005, 09:42:36 PM
@ Olphi

I know that I can do it like that. But it wasn't what I was asking for, was it??

I think it is better to not answering if you don't have a real answer. What you do is called SPAMMING :x

thanks

Please stay calm....  :wink:

What I want to say is: I have also looking for such a possibility and I had nothing found. There is no solution for this problem here or I haven't found it....
The only way is the one I've postet!

Cheers @izone


Title: Re: [Mod] Image Annotation (Watermark)
Post by: artpics on January 14, 2006, 01:02:23 PM
hello i am trying to use annotate in image mode all files uploaded, no error messages, but when i hit submit on batch annotate i get this message after 4 secs

No category selected, nothing to annotate...

Finished!

any idea what this is
thanks
RT



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Darkness2001 on January 16, 2006, 12:05:39 AM
Hello,

great MOD he work's fine

Greez Darkness  :mrgreen:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tomasznycz on January 19, 2006, 10:40:43 AM
There is an problem with EXIF metadata preserving with Image Annotation MOD.

If image is watermarked it lost's EXIF marks...

Can some one help with this problem ??


Title: Re: [Mod] Image Annotation (Watermark)
Post by: skOOby on January 25, 2006, 11:11:56 AM
Hello :!:

I have problem with this mod :(  I have installed it and everything looks fine (no errors), but there is no any annotation on my pictures :|
And I don't know why :?: I try this small code (from 1. post) and it's working :!: I use GD library 2.0.28, and have no any annotation :(

Pls help me.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on January 25, 2006, 02:16:46 PM
did you enable it in the settings?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: artpics on January 25, 2006, 03:46:18 PM
@ V@no,
hello when i demoed this mod on your site, i grabbed an image, and all i could get was the image named nonono. the annotstion is working, but when i grab (steal a pic from the my site ) i get the whole picture,can you please tel me how this works,i want to float the nononono picture on top of the original images does this mod do this or is this another mod i need to install

thankyou
RT  :)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on January 25, 2006, 04:11:38 PM
@ artpic

http://www.4homepages.de/forum/index.php?topic=6997.0
http://www.4homepages.de/forum/index.php?topic=4906
http://www.4homepages.de/forum/index.php?topic=4236.msg17507#msg17507


Title: Re: [Mod] Image Annotation (Watermark)
Post by: artpics on January 25, 2006, 04:27:51 PM
@mawenzie, thanks for the threads  :D and it worked in 5 minutes great stuff   :D

RT


Title: Re: [Mod] Image Annotation (Watermark)
Post by: skOOby on January 25, 2006, 08:42:37 PM
did you enable it in the settings?

enable :?: Could u tell me where I can do this :?:

1
define('CONVERT_IS_GD2', 1);
I've set it too... but still nothing...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: TheOracle on January 25, 2006, 08:44:32 PM

enable :?: Could u tell me where I can do this :?:


That would be in your ACP's configuration page. ;)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on January 26, 2006, 12:27:44 AM
There is a new menu should apper on left side, in "General" section, under the link to the settings.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: skOOby on January 26, 2006, 02:43:01 PM
V@no, yes I know about this new menu... but... there is no option to enable annotation function there :| I'm from Poland and i translated this menu to Polish language. Maybe something with this is not correct :?:
Moreover, I try to batch annotate option in my gallery and on every picture is -> OK, but there areno any annotate on my pictures :(

And I don't need to set font file ( :?: ), this mod everytime is OK :!: No errors :!: And no annotate on my pictures :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on January 26, 2006, 03:05:19 PM
After installing a mod, follow the instructions exactly, then after confirming that its working properly do your own modifications.

In the settings, the very first option Use auto images annotation on image upload must be enabled.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on January 31, 2006, 11:22:56 AM
hallo zusammen

ich habe jetzt alle 27 seiten durchgelesen und verstejhe immer nochnicht wie ich das instalieren kann.

bitte helft mir


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Matthias70 on January 31, 2006, 03:46:24 PM
Hallo galadrium,
einfach vorne anfangen und je nachdem was du alles von dem Mod übernehmen möchtest einbauen.
Das Wichtigste steht auf der ersten Seite und im Download auf der ersten Seite.

Zugegeben das Mod ist nicht das Leichteste und du solltest bereits etwas Mod-Erfahrung mitbringen.

viel Erfolg
Matthias


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 01, 2006, 07:57:16 AM
danke für deine hilfe.

aber leider ist das mein erstes mod. deswegen hab cih da etwas mühe. und leider spreche icha uch kein englisch :o(

gibts da noch ne anleitung auf deutsch?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Fragezeichen on February 04, 2006, 05:00:09 PM
now im just finish to read 28 pages about this mod,install all corect.
problem is the batch mode, i want set watermark by older pictures but it dont works.
i have more than 800 pictures inmy galery so dont want set a watermark manualy.

is there no solution for the batch mode??

using image1.7.1,gd are installed,all other okay.
 :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: izone on February 07, 2006, 12:27:44 PM
@FOTZENCLUB

I had the same problem as you. I solved this by removing all my thumbnail files manually by ftp and then run batch mod and after that recreat all thubmnails.

Unfortunatly, the thumbnails got a watermark too.

what I could to do (if I was samrter  :mrgreen: ) was that insted of removing thumbnail saving them somwhere on my pc and after recreation upload theme to my site again and replace the new one.

You can test it! But on your own risk. :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 13, 2006, 01:33:23 PM
kann mir den niemand auf deutsch helfen?
 :roll:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sir Sky-Walker on February 13, 2006, 03:54:18 PM
mal eine dumme Frage. Wie bekomme ich in bereits hochgeladenen Bildern den Watermark?

Hab über 4000 in knapp 80 Kategorien!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on February 13, 2006, 07:54:24 PM
Durch die "Batch Annotate"-Funktion! Dort kannst Du die Kategorie anwählen, etc...    :mrgreen:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sir Sky-Walker on February 13, 2006, 09:35:34 PM
hab ich schon gemacht, hab eine kategorie mit 10 bildern genommen, und dann arbeitet er bild id bis 4000 ab! Und zu sehen ist trotzdem ncihts


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on February 13, 2006, 09:54:21 PM
Ok, hast Du vielleicht vergessen auf Auto-Annotate zu stellen, denn dies muss "on" sein, beim batchen...  :?:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 14, 2006, 08:23:50 AM
ah hier leben ja noch welche :o)

habe noch ne frage befor ich versuche (obwohl ich noch nie ein mod instaliert habe) das mod zu instalieren.

kann man das wasserzeichen später wieder entvernen oder löschen?

mfg

galadrium


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on February 14, 2006, 08:49:41 AM
Nein, denn einmal Wasserzeichen, immer Wasserzeichen! Das .jpg wird verändert!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 14, 2006, 09:37:43 AM
ah gut zu wissen.

äm kannst du mir mal dein bild zeigen mit einem solchen wasserzeichen, nicht dass ich den ganzen aufwand umsonst machen muss  :D



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on February 14, 2006, 10:18:20 AM
Du kannst statt einem bild auch Text als Wasserzeichen nehmen! Meine Page ist gerade offline ;-) aber schau doch mal auf mawenzis page ;-)

www.detlev-kostka.de (http://www.detlev-kostka.de)

Er hat Text...



Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 14, 2006, 10:22:10 AM
oh vielen dank.

kannst du mir noch sagen wie das mit dem ftp upload funzt? muss ich dan die wasserzeichen manuell einfühgen, also so wie bilder checken oder sind die dan schon drauf?

mfg

galadrium

ps; vielen dank das du mir hilfst :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on February 14, 2006, 10:49:14 AM
Ich hab si immer manuell nach dem ftp-upload eingefügt!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 14, 2006, 10:56:33 AM
ak vieln dank

werde es mir heute abend instalieren. das wird mein erstes mod sein *zittert*

kannst mir noch ein paar tips geben? oder soll ich einfach mal date runterladen und dan install?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Olphi on February 14, 2006, 10:59:08 AM
Lies alle postings zum Thema! Ich kann nur sagen, dieser Mod ist nicht ganz so einfach wie andere, aber eben Übung macht den Meister! Musst ihn ja nicht programmieren, ist schon alles da! Also eigentlich nur vorsichtig copy - paste...
TIP: Mach ein backup...
Viel Spass  :mrgreen:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 14, 2006, 11:01:50 AM
ja ich würde es gerne lesen, aber kann leider kein englisch.

muss ich den nur das allererste poost lesen?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sir Sky-Walker on February 19, 2006, 04:43:50 PM
Ok, hast Du vielleicht vergessen auf Auto-Annotate zu stellen, denn dies muss "on" sein, beim batchen...  :?:

ist auf "on" gestellt. Aber das bringt mir ja ncihts beim ftp upload!
Wie mache ich denn nu die manuellen Wasserzeichen? was mus ich wie einstellen wenn ich von einer bestimmen Kategorie die Bilder mit einem Wasserzeichen versehen möchte?

Schonmal Danke


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sir Sky-Walker on February 19, 2006, 04:49:31 PM
hab es eben nochmal versucht ab dem Bild mit der ID 5713. Die habe ich kurz zuvor hochgeladen (per FTP)
Es komtm folgende Fehlermeldung:

Quote  [Expand]
Annotating between image ID 5713 and 5718:
Processing image xxx from category Vorglühen bei xxx, image ID 5713 >>
Warning: imagettfbbox(): Could not find/open font in /usr/export/www/vhosts/funnetwork/hosting/olpi/4images/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /usr/export/www/vhosts/funnetwork/hosting/olpi/4images/includes/annotate.php on line 193
OK

Woran liegt das? wenn ich direkt von der Seite uploade geht das und das Wasserzeichen kommt auch automatisch!

PS.: Benutze kein BIld-Wasserzeichen, einfach nur ein Text!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Trendworkshop on February 20, 2006, 11:58:16 AM
Hallo / Hello

Habe den MOD annotation installiert. Funktioniert super gut! Das einzige Problem ist nur, dass wenn ich Wasserzeichen hinzufüge dei EXIF und IPTC Infos gelöscht werden.
Was kann man dagegen machen??

I have installed the annotation MOD. It works fine. The actual problem is only that it's delete the EXIF and IPTC entries from the images, when i run this MOD. What can i do??

Thx und Danke Philippe


Title: Re: [Mod] Image Annotation (Watermark)
Post by: IcEcReaM on February 20, 2006, 12:28:59 PM
dagegen kann man meines Wissens nicht viel machen,
da durch die bearbeitung mit GDLib (also der Grafik Engine),
die ja durch diesen Mod benutzt wird,
leider immer die exif Infos geklöscht wird.

Bei ImageMagic ist das glaub ich nicht der Fall,
falls dein Hoster das installiert hat,
kannst du ja evtl. damit mal dein Glück versuchen (in den Settings im CP dann umstellen).


Title: Re: [Mod] Image Annotation (Watermark)
Post by: megalomania on February 20, 2006, 10:27:09 PM
Hallo zusammen,

ich habe eine etwas dümmliche Frage glaube ich:

Wenn ich hier dieses Mod installiert habe und danach deinstallieren möchte, reicht es dann die Änderungen an den Dateien rückgänging zu machen, bzw. die Rettung einzuspielen? Oder muss man auch an einer der 4iamges - Tabellen etwas rückgängig machen?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Flatermann on February 21, 2006, 07:48:47 PM
HI .   Ich hab das problem das ich all admin upload und  alles ist ok.  wen ein normal user upload sind kein wasserzeichen drin.  Ich glaub es hat damit was zu tun das ich all admin die bilder erst freischallte, oder hat jemand ein andere idee weiso das so ist ?? :


Title: Re: [Mod] Image Annotation (Watermark)
Post by: live@ct on February 22, 2006, 03:39:59 AM
I review all the topic but nothing about to correct the next errors:
this happend before install, before change the database...

Quote  [Expand]
DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_use', '0')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_mode', 'text')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_embed_image', 'logo-gd.png')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_embed_image_opacity', '100')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_embed_image_bg', '#000000')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_font', 'annotate.ttf')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_font_size', '10')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_use_shadow', '1')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_shadow_offset', '1')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_image_quality', '80')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_text', 'My Fantastic Gallery at http://www.mydomain.com')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_fill_color', '#BFBFBF')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_shadow_color', '#000000')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_fill_alpha', '0.7')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_shadow_alpha', '0.6')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_v_alignment', 'top')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_h_alignment', 'left')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_top_offset', '5')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_bottom_offset', '5')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_left_offset', '5')
Column count doesn't match value count at row 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_right_offset', '5')
Column count doesn't match value count at row 1

How can i Correct this


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on February 22, 2006, 04:20:05 AM
You did not install the mod properly. Check all steps.
My bet would be the step for constants.php file


Title: Re: [Mod] Image Annotation (Watermark)
Post by: live@ct on February 22, 2006, 04:59:40 AM
I review the instructions to install again and I din't see a step to talk about constant.php :S


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on February 22, 2006, 05:45:36 AM
oh...its a bug in the installer...
Replace
1
$sql = "INSERT INTO ".SETTINGS_TABLE." (".get_user_table_field("", "setting_name").get_user_table_field(", ", "setting_value").")
With:
1
$sql = "INSERT INTO ".SETTINGS_TABLE." (setting_name, setting_value)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: live@ct on February 22, 2006, 06:01:32 AM
Yeah it installed sucsessfully but now it givme a error

Quote  [Expand]
No category selected, nothing to annotate...

Finished!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Flatermann on February 22, 2006, 05:11:06 PM
Hmm i will try it in englisch :))

My problem is . if i upload a pic as admin the picture has the watermark, but wenn a normal user reg. uploads  the picuture doesnt.  Is is maybe becaus i dont let reg user direkt upload, i look at the pic first if its ok or not.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Stryker on February 22, 2006, 07:43:54 PM
All works good, but these variables: %N - Site Name, %H - full Site URL, %U - short Site URL, %S - User Name, %D - date, %T - time, %B - don't work. On pictures display like "%D" not "some date".
And one more question: how to make black line under watermark as like V@no's gallery?

Thanks!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 23, 2006, 04:29:31 PM
also ich habe jetzt alles installiert.


jetzt habe ich aber eine frage ist es richtig wen ich die TTF datei direkt in den 4images ordner lade?

oder wass könnte das problem sien das es nicht geht?
hier die fehlermeldung:

Processing image 1414-009 from category test für wasserzeichen, image ID 362 >>
Warning: imagettfbbox(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 192

Warning: imagettftext(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 193
OK
Processing image 1414-010 from category test für wasserzeichen, image ID 363 >>
Warning: imagettfbbox(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 192

Warning: imagettftext(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 193
OK
Processing image asfsefwad from category test für wasserzeichen, image ID 364 >>
Warning: imagettfbbox(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 192

Warning: imagettftext(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 193
OK
Processing image yscfrom category test für wasserzeichen, image ID 365 >>
Warning: imagettfbbox(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 192

Warning: imagettftext(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 193
OK

Finished!

und was genau ist die image ID


mfg

galadrium


Title: Re: [Mod] Image Annotation (Watermark)
Post by: trez on February 23, 2006, 04:38:49 PM
wurde in diesem thread x-mal beantwortet!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 23, 2006, 04:49:22 PM
habs aber nirgens gefunden, kann kein englisch


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 23, 2006, 04:56:51 PM
und wen ich es mit nem bild machen will kommt

Annotating between image ID 362 and 365:

Processing image 1414-009 from category test für wasserzeichen, image ID 362 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 186
OK
Processing image 1414-010 from category test für wasserzeichen, image ID 363 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 186
OK
Processing image asfsefwad from category test für wasserzeichen, image ID 364 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 186
OK
Processing image yscfrom category test für wasserzeichen, image ID 365 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/www/web8/html/4images/includes/annotate.php on line 186
OK

Finished!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on February 23, 2006, 05:08:31 PM
hallo also trez hat mir grad im ICQ geholfen.

das problem wahr das der pfad vom ttf nicht korekt wahr.


mfg

galadrium


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on February 24, 2006, 01:22:51 AM
Warning: imagettfbbox(): Could not find/open font in /home/www/web8/html/4images/includes/annotate.php on line 95


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Swallow on March 08, 2006, 11:10:17 PM
Hallo,

I hope you can help me:

My SafeMode is ON and I have no chanche to change it (I've asked my Server-Admin but it's not possible - because of the security rules...).

Is there any chanche to use this mod with "SAFE MODE" on?

Because of it, I get these messages:
Warning: imagejpeg(): Unable to access ./data/media/8/Reifenroller_klein.jpg in /home/www/..../4images/includes/annotate.php on line 187

Warning: imagejpeg(): Invalid filename './data/media/8/Reifenroller_klein.jpg' in /home/www/..../4images/includes/annotate.php on line 187


thank's for your help!

CU Swallow


Title: Re: [Mod] Image Annotation (Watermark)
Post by: himu on March 15, 2006, 07:09:54 PM
Hey SLL / V@no

I just went through the whole 30 page of the thread.. but no one seem to ask the following question...  8O :roll:
How can we Batch Annotate all images in all category at once like the following mod?
[MOD] Check new images in ALL categories v2.10.5 (http://www.4homepages.de/forum/index.php?topic=4754.0)
?? :?:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: galadrium on March 22, 2006, 12:49:34 PM
hallo ich ahbe nochmals eine frage.

bei den einstellungen kann man ja bei "Annotation Text" auch variablen eingeben z.b den usernamen usw. kann mir einer erklären wie das geht? bei mir fünzt das nicht. würde es gerne so machen.    "username" © www.GEILI-SITA.ch

danke shcon mal für eure hilfe


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Optimum on March 24, 2006, 08:55:24 AM
Hi,

I've started to install this mod, but I thought I should first check with the code provided, if it'll work.
Quote  [Expand]
<?php
header ("Content-type: image/png");
$im = imagecreate (180, 30);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
imagettftext ($im, 14, 0, 10, 21, $white, "/home/public_html/arial.ttf", "GD Freetype test");
imagepng ($im);
imagedestroy ($im);
?>
Well, the little code, doesn't work. I get a black box, but no white text.
I used both absolute and relative link to the font, but still nothing..

This is the server report:

gd
GD Support    enabled
GD Version    2.0 or higher
FreeType Support    enabled
FreeType Linkage    with freetype
T1Lib Support    enabled
GIF Read Support    enabled
GIF Create Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled

Do I require anything else to make this work?

TIA!
Mat

EDIT: Problem fixed. It was in the path. I wish it would be explained better. You need a FULL server path, like /home/www/users/quantas/domain/www/multimedija/font.ttf.. not just ../font/font.ttf or www.domain.com/fonts/font.ttf.
I got the test script working now, now for the whole mod.. fingers crossed..


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Fastian on March 25, 2006, 02:41:47 AM
A little trouble with this mod.

When I try the small code in first post, It works fine.
The mod itself is working without problem when using Image watermark. But when I try to use font that I used before for test code it give the following error message

1
2
3
Warning: imagettfbbox(): Could not find/open font in /home/***/public_html/wallpapers/includes/annotate.php on line 95
Warning: imagettftext(): Could not find/open font in /home/***/public_html/wallpapers/includes/annotate.php on line 192
Warning: imagettftext(): Could not find/open font in /home/***/public_html/wallpapers/includes/annotate.php on line 193

Is it not able to find the font??

In Mod setting I tried giving relative url as well as full path. But the result is same.

Where to start digging???


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on March 25, 2006, 02:45:23 AM
permissions issue?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Fastian on March 25, 2006, 02:50:32 AM
The font file is in  www.domain.com/fonts/a.ttf

fonts is chmod to 777
a.tff  is chmod to 666

What would be the correct permission?

What would be the correct path in this case. (to write in ACP)
"./fonts/a.ttf" or "http://www.domain.com/fonts/a.ttf"


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on March 25, 2006, 03:51:24 AM
and did you try 777 on the files?
the first path would be correct, but the second is not "full" path as you mentioned above, its internet path. Full path is a local server path like /home/users/some/path/fonts/a.ttf


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Fastian on March 25, 2006, 04:37:16 AM
and did you try 777 on the files?
the first path would be correct, but the second is not "full" path as you mentioned above, its internet path. Full path is a local server path like /home/users/some/path/fonts/a.ttf

That internet path was my "third" option. First I tried with full path.
I assume by "files" you mean Images. (I was uploading as guest & I really dont know how could I use chmod 777 for upload)

The Good thing is it works now. I just try chmod 777 with font file.  :D

There is one thing with text annotation. With Quality set to 90 %. It increases the file size by around 50 kb
While with Image Annotation using Quality 95 % the image size increase only around 15kb (tried with a 1024*768 wallpaper of 120kb)

I wonder why?  :?:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on March 25, 2006, 04:46:51 AM
its normal, try open any jpeg files in any image editor tool and save it with quality 95%, you'll see the difference ;)
IMO 80-85 is the most optimal quality/filesize


Title: [Mod] Watermark make nothing No error
Post by: mohab on March 28, 2006, 02:21:23 PM
I read all the forum over and over and dont find a solution

Runing the Mod with no error and nothing hapens.
No watermark in the Pictures.
Trayed batch anonotaion as TExt and with the Png  but no result .
all files are modived like described , all test done GD is ok .
After the batch it returns with a OK after each pic.
Yes and pathes also set corectly to the fonts permission is 777
any suggestion wher to look for a error

Thank you very much i hang now for quite a long time


Title: Re: [Mod] Image Annotation (Watermark)
Post by: webslingers on March 31, 2006, 03:19:46 AM
User uploading gets the annotation great. It's when I try in admin that I still get this error when I try to use the batch annotate. Also, when I upload via admin, there is no annotation...? Thanks in advance for any help with this.

1
Warning: imagettfbbox(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 95

P.S. I had this error on the user side and have fixed that.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: webslingers on April 02, 2006, 03:56:20 AM
Ok, after more reading elsewhere, I know why the images don't get the annotation when uploaded in admin... it wasn't put in the code and it makes sense. Now my only question is... Why do I get that error when trying to use batch annotate in admin?

Thanks

EDIT:

I have since installed
[MOD] Check new images in ALL categories v2.10.3
and
[MOD] Batch Copy/Move/Edit Images v3.6

and now the error I get when trying to use the batch annotate is
1
2
3
No category selected, nothing to annotate...

Finished!

And it is looking in a folder with images. Help  :?:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tohave on April 05, 2006, 02:50:05 AM
Hi

I have recently installed this MOD, it seems OK and I do not get any error message. I am not sure if it is been discussed befor or not! so my problem is that when I do batch annotation, it counts all the files, gives OK prompt but there is not any watermark on images!!!

the last message I get is:

Annotating between image ID 2131 and 2139:

Finished!




any suggestions? pls


Title: Re: [Mod] Image Annotation (Watermark)
Post by: puremuzikarmy on April 10, 2006, 06:36:07 PM
I have searched every page on this forum trying to figure out why I don't have a setting option for the water mark.  Like other i only have

Batch Annotate


I followed every step 3 times and still that is all i have.  I manually went to ann_settings.php to change the settings, and got it to work.  I can now watermark my images, but would still like it to work properly.  Why do i not have a setting option for the watermark mod? :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on April 11, 2006, 03:14:03 AM
perpahs because your are looking for the settings in the wrong place? this mod adds a link "Annotation settings" on left panel (under "Settings" link)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: puremuzikarmy on April 11, 2006, 03:23:21 AM
I made checked,checked and rechecked just to make sure i wasnt wating peoples time.  the only new link i have is under plugins. and that is (batch annotate)

I rechecked step by step my install of this mod and cant seem to find what happened.  Like i said before it works, i just don't have a way to control it.  I have to make all my changes through mysql database.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on April 11, 2006, 05:31:43 AM
Then there are only two possible reasons:
1) you failed when modifying admin/index.php
2) you failed when modifying lang/<your language>/admin.php

there are no other possible reasons could possible cause what you have.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: webslingers on April 12, 2006, 02:55:50 AM
Hi

I have recently installed this MOD, it seems OK and I do not get any error message. I am not sure if it is been discussed befor or not! so my problem is that when I do batch annotation, it counts all the files, gives OK prompt but there is not any watermark on images!!!

the last message I get is:

Annotating between image ID 2131 and 2139:

Finished!




any suggestions? pls

I now have no more errors but have this same thing. It says finished... but it hasn't started. :o) I'm sure it's a missed "something somewhere" I just don't know what or where. Any hints on where to start looking for this?

Thanks! :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: fitterashes on April 14, 2006, 07:24:33 PM
Is there a way to annotate images in all subcategories ?
I have more than 700 categories I don't really want to Batch Annotate each ones.  :lol:

thanks


Title: Re: [Mod] Image Annotation (Watermark)
Post by: webslingers on April 15, 2006, 02:12:49 AM
I'm still trying to figure out why this is happening. Anyone know?  Thanks!  :oops:

It happens when trying to use the batch annotate button in the admin section.

1
2
3
No category selected, nothing to annotate...

Finished!

And it is looking in a folder with images. Help  :?:
Quote  [Expand]


Title: Re: [Mod] Image Annotation (Watermark)
Post by: littleteam on April 17, 2006, 07:21:40 PM
ok, 31 pages later i still don't know how to solve my problem  :(. i have a question with the textvariables of watermark. if i understand the whole thing correct, than i have to type for example %N for the name of the galery, %H for the site url and so on. my problem is, that it doesn't work correctly. if i use the variable %N, that is what in the end stood on my picture: %N (or some other letter ...)

und falls mich jemand auf deutsch versteht: wie funktioniert das mit den variablen für den watermark-text? wenn ich z. b. %N als variable eingebe, steht anschliessend genau das auch auf meinem bild: nämlich "%N". irgenwie werden die variablen nicht umgesetzt und ich hab absolut keinen schimmer warum. 31 seiten durchlesen hat mich irgendwie auch nicht schlauer gemacht ....

 :?:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ch€ri{Bi}² on April 23, 2006, 09:04:46 PM
hi all,

for all people which still have problems with the (not working) variables %D %T %N %H %U %S %B,
here is the solution!

 :arrow: open annotate.php and find :
Quote  [Expand]
$ann_vars = array ("'%D'", "'%T'", "'%N'", "'%H'", "'%U'", "'%S'", "'%B'");

and replace by:
1
$ann_vars = array ('%D', '%T', '%N', '%H', '%U', '%S', '%B');

 :idea: delete all single quote (and keep double quotes)  OR   delete all double quotes (and keep single quote) from the original code
and it should work!

... and this solution had perhaps not been rather clear but it had been already posted here (http://www.4homepages.de/forum/index.php?topic=3808.msg42236#msg42236)  :wink:

Thanks to the authors of this good mod!



Title: Re: [Mod] Image Annotation (Watermark)
Post by: littleteam on April 23, 2006, 10:31:06 PM
thanks a lot   :)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: live@ct on April 24, 2006, 04:31:02 AM
im having the same problem

No category selected, nothing to annotate...

Finished!

what I need to do to correct that problem?!?!?!

thanks


Title: Re: [Mod] Image Annotation (Watermark)
Post by: xix17_ryan on May 04, 2006, 07:05:15 AM
User uploading gets the annotation great. It's when I try in admin that I still get this error when I try to use the batch annotate. Also, when I upload via admin, there is no annotation...? Thanks in advance for any help with this.

1
Warning: imagettfbbox(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 95

P.S. I had this error on the user side and have fixed that.


hi everyone, I also have the same problem when i trying to do the batch annotate in admin.

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in C:\Domains\creativebugs.com.my\wwwroot\gallery_area2\includes\annotate.php on line 95

what is the problem


Title: Re: [Mod] Image Annotation (Watermark)
Post by: live@ct on May 04, 2006, 09:37:49 PM
and how to annotate like the anotate of vano site that ads a black section at the bottom?!?!

thanks

and for the error that I posted anyone?" can help?"!?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: webslingers on May 11, 2006, 12:09:19 AM
I finally got an error out of the batch annotate.

1
2
3
4
5
6
7
Processing image 19 from category Cats, image ID 1793 >>
Warning: imagettfbbox(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 192

Warning: imagettftext(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 193
OK

and my font setting in the annotation settings admin is (and it works like this on the user side)
1
./fonts/arial.ttf


Can someone tell me where I went wrong?

Thanks


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on May 11, 2006, 09:36:45 PM
set full font path (as readme says, btw), like /home/digital/public_html/fonts/arial.ttf. the reason is that paths from user and admin pages are different


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mx5gr on May 12, 2006, 12:07:56 AM
1
2
3
4
5
[12-May-2006 00:57:44] PHP Warning:  imagesx(): supplied argument is not a valid Image resource in E:\gallery\includes\annotate.php on line 176
[12-May-2006 00:57:44] PHP Warning:  imagesy(): supplied argument is not a valid Image resource in E:\gallery\includes\annotate.php on line 177
[12-May-2006 00:57:44] PHP Warning:  imagecolorallocate(): supplied argument is not a valid Image resource in E:\gallery\includes\annotate.php on line 184
[12-May-2006 00:57:44] PHP Warning:  imagecolortransparent(): supplied argument is not a valid Image resource in E:\gallery\includes\annotate.php on line 185
[12-May-2006 00:57:44] PHP Warning:  imagecopymerge(): supplied argument is not a valid Image resource in E:\gallery\includes\annotate.php on line 186

GD2 support is available, server is IIS6.0 (Win2K3), the test PHP function shows OK. Permission on all files is 777.

Any ideas?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: webslingers on May 15, 2006, 10:48:36 PM
set full font path (as readme says, btw), like /home/digital/public_html/fonts/arial.ttf. the reason is that paths from user and admin pages are different

Thank you so much, it works!!!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: White Code on May 16, 2006, 05:06:43 PM
Hi every one ,

i think i'm too late ..
i liked this MOD and was trying to install it . And i followed all the instractions But still not able to get the result ( No output)  :( ..

my GD information is :

GD Support  enabled 
GD Version  bundled (2.0.28 compatible) 
FreeType Support  enabled 
FreeType Linkage  with freetype 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XBM Support  enabled 


The test page is :
http://www.btlat.net/1/2.php  ( the is OK ) 

BUT the result on the gallery it NOT Ok :(

Every thing is fine , my path is : /home/----/public_html/font/TAHOMA.TTF

may you help me please ???? is it the right path or not ?
do i need to chmod 777 for my font Dir ?


Thank you in advance ..

..


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on May 17, 2006, 12:46:23 AM
Check error logs on the server (ask your host administrator if you dont know)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Baschtler on May 20, 2006, 11:25:29 PM
Hello folks,

after installing this MOD I get this error message when clicking on the "Batch Annotate" button in the admin pannel.

Quote  [Expand]
Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /home/httpd/vhosts/****.com/httpdocs/****/4images/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /home/httpd/vhosts/****.com/httpdocs/****/4images/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:') in /home/httpd/vhosts/****.com/httpdocs/****/4images/admin/plugins/batch_annotate.php on line 8

I reinstalled 2 times from the scratch. I can easily alter the annotate settings in the admin pannel. I chmodded every file of this mod to 777. The server runs all requiered software (GD2+ with freetype support). The testcode from the first post runs smoothe.

Plz Help !  :?: :( :? :oops:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: alt3ds on May 24, 2006, 04:17:58 PM
Guys the Mod is working,
Watermark is directly adding when uploaded, but i am getting these error:what is the problem here?

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /home/content/i/r/g/irgealtinbek/html/foto/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/local/lib/php') in /home/content/i/r/g/irgealtinbek/html/foto/admin/plugins/batch_annotate.php on line 8


Title: Re: [Mod] Image Annotation (Watermark)
Post by: x1x on May 25, 2006, 01:08:50 AM
Hi, i've using this mod a long time yet and I'm very happy.
But i decided to use no longer a text annotation, so i created a graphic (png)  in photoshop...
The problem is that my background colour is visable. I've found out that's a software problem. If i save the example "logo-gd.png" by photoshop, it doesn't work...
So the question is, which software will produce a *.png file which is working with gd...!?

Please help, i need an invisable background!!!

Thanks, x1x


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on May 25, 2006, 01:15:20 AM
@ x1x

First-Class-Freeware : Image Editor - Ultimate Paint ; Download : http://www.ultimatepaint.com (http://www.ultimatepaint.com)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: x1x on May 25, 2006, 01:43:48 AM
Nice software, but the problem still exists...it must be a png-file with special specifications, for example only 8 colors or no dithering...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on May 25, 2006, 01:47:37 AM
There are two versions of png PS can save: PNG-8 and PNG-24
The 24bit PNG worked just fine in my tests.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: x1x on May 25, 2006, 02:18:44 AM
Thanks, 24-PNG works!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Stoleti on May 29, 2006, 08:24:41 PM
This works with images uploaded by url ??? if not, how can i make it work  :?:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Fragezeichen on June 11, 2006, 02:07:46 AM
dear com,

i just install new version of 4homepages and try the annotation mod.
sad to say,but i cant see any watermark on pictures-no errors.
so my question,

... did that mod working with version 1.7.2?
???

pls,thx


Title: Re: [Mod] Image Annotation (Watermark)
Post by: idijotaz on June 16, 2006, 10:51:24 AM
Warning: main(): Unable to access ./../admin/admin_global.php in /var/www/vhosts/laisvalaikis.yours.lt/httpdocs/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /var/www/vhosts/laisvalaikis.yours.lt/httpdocs/admin/plugins/batch_annotate.php on line 8

Warning: main(): Unable to access ./../admin/admin_global.php in /var/www/vhosts/laisvalaikis.yours.lt/httpdocs/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /var/www/vhosts/laisvalaikis.yours.lt/httpdocs/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/laisvalaikis.yours.lt/httpdocs/admin/plugins/batch_annotate.php on line 8


whats bad?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LJL_Houben on June 20, 2006, 02:37:29 PM
Hi I did all the steps, but if I try to save the setting it doesn't do it. What am I doing wrong, or what do I have to check in the software?

Hallo ich habe alle schritte absolviert, aber wenn ich meine einstellungen speichere dann behaelt er die daten nicht. Was mache ich falsch bzw. was soll ich in der software checken.

Gruss

Ludo


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on June 20, 2006, 03:03:02 PM
You didnt run the installer?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Fragezeichen on June 20, 2006, 04:57:04 PM
hatte sehr lange zeit das selbe problem weil der font im falschen(?) verzeichnis lag.
die pfadangabe bzw deren erkennung ist manchmal etwas sonderbar bei 4images...

mach deinen font am besten dorthin wo dein 4images hauptordner liegt,also wo steht html/4images.
aber am besten NICHT in den 4images folder sondern im selben hauptordner.
den ordner fonts brauchste nicht.
dann bei den annotation einstellungen einfach diesen pfat angeben: /home/deinfont.ttf


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Fragezeichen on June 20, 2006, 08:08:19 PM
after long time tryin to running batch annotate i found the problem.
this mod works realy great,just make sure your path is okay.
for example, try this in your annotate prefences:

/home/www/your account or username/html/logo-gd.png
just try - it realy works  :wink:

(also with version 1.7.2)
 :lol:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LJL_Houben on June 20, 2006, 09:23:01 PM
Danke der schnelle antwort, hatte denn installer nicht laufen lassen  :oops: aber das geht jetzt soweit. Wann wird allerdings die Schrift dazu geschrieben (oder die Abbildung) Irgendwie kriege ich das nicht hin. Das Pfad zur Abbildung was muss mann da genau einfüllen? Ein relatiever pfad mit dem Bild im 4Images ordner drin, oder darf es auch ein absoluter pfad sein und muss ich dann denn Server internen nehmen oder dem aus dem Browser? Danke für eure anregungen ;)

Thanks for the quick reply, I forgot to run the installer :oops: but I got that running now. When is the annotation written in the Image (text and image) Somehow I don't get anything. Which path do I have to fill in exactly? A relative path, with the image in my 4Images directory or can I take an absolute path and does is have to be the path in the server inside or the one you view in a browser. Well thanx for any help ;)

Ludo


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LJL_Houben on June 21, 2006, 01:02:03 AM
Got another question

Batch annotation, wat does suppost to happen if I press this, because I can't see nothing. I do not have GD installed on my server, but Image Magick. I would like to use an image file for annotation. Which types of files does it support? Why don't I see nothing if I push batch annotation?

Greetings

Ludo

PS the test file doesn't show anything on my system, if nessesary where can I find GD and how do I install this?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: www.mehsus.com on June 22, 2006, 07:59:22 AM
Hi i installed it and i dont see the text and i get this error in the plugins thing

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /home/desitrac/public_html/mehsus/images/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/desitrac/public_html/mehsus/images/admin/plugins/batch_annotate.php on line 8


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LJL_Houben on June 22, 2006, 09:23:11 PM
Got another question

Batch annotation, wat does suppost to happen if I press this, because I can't see nothing. I do not have GD installed on my server, but Image Magick. I would like to use an image file for annotation. Which types of files does it support? Why don't I see nothing if I push batch annotation?

Greetings

Ludo

PS the test file doesn't show anything on my system, if nessesary where can I find GD and how do I install this?

OK looked at the file and compared it with the clear cache function and discovererd next difference:

1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
Original line

if changed it for

1
$root_path = (!eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../" : "./../../";


Now I can see something when I click the button. I don't know if someone already mentioned it, but I was lazy and I didn't wanted to read all 33 pages  :oops: I will now check if it funcions.......

Greetings

Ludo



Title: Re: [Mod] Image Annotation (Watermark)
Post by: LJL_Houben on June 22, 2006, 09:33:21 PM
OK I did something this time.....only still no annotation :(
I got next message:
Processing image Anno_Test from category 3SB Penken at Mayrhofen Zillertal, Austria, image ID 18 >> Skipped
Processing image test2 from category 3SB Penken at Mayrhofen Zillertal, Austria, image ID 19 >> Skipped


Finished!


I try to annotate with the IM image provided. Is this because my link to the image is not ok, or is there another problem?
here are my settings:
(http://seilbahn.homaris.nl/Photowettbewerb/voorbeeld.jpg)
Greeting

Ludo


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Ricsca on June 25, 2006, 12:42:54 AM
In the images. gif not writers come the copyirigt!  : ( 

Why?  : (

Bye


Title: Re: [Mod] Image Annotation (Watermark)
Post by: egyptsons on June 25, 2006, 12:27:03 PM
Hi i installed it and i dont see the text and i get this error in the plugins thing

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /home/desitrac/public_html/mehsus/images/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/desitrac/public_html/mehsus/images/admin/plugins/batch_annotate.php on line 8

I got same error when I try to use "Batch Annotate"

[qcode]Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/egyptson/public_html/gallery/admin/plugins/batch_annotate.php on line 8

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/egyptson/public_html/gallery/admin/plugins/batch_annotate.php on line 8[/qcode]


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Beautiful Body Castings on June 25, 2006, 10:43:55 PM
to all those getting errors when using the mod like the error that egyptsons and many others are getting

well its all about placement of your font file, you have to take the font you wish to use from your C:/windows/Fonts etc folder on your computer and upload it to the main root of your gallery or the plugins directory (im not entirely sure which as i have it in both lol) then just make sure the font is named xxxxx.ttf all lowercase where xxxxx is the name of the font and put that name into the annotate settings as xxxxx.ttf with no location or path etc just the font name and it should work fine

Im having problems with this mod on a different matter can anyone help

size of text, depending on if width of image or height of image is the smallest side depends on if the annotation works or not

lets saya i have an image thats only 300 wide and 400 high and another thats 400 wide and 300 high if i have the font size set as something nice that shows up good on the one thats 400 wide so it goes almost from one side right accross to the other with my watermark text it does not work for the images that are smaller in width

is there no way this mod can be modified to make it so it makes the size of the annotation text dependent on the size of the image as i dont want my text not showing up on small images coz it was too wide to fit and i dont want it set so small that it cant be read on larger images

really need help with this

something like making it be a percentage of the width of the image so if i center it at the top it is maybe 90% of the complete width of the image no matter if the image is 100px wide or 100000px wide

thanks

Mikey


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Ricsca on June 26, 2006, 03:43:06 PM
In the images. gif not writers come the copyirigt!  : ( 

Why?  : (

Bye


Help!:)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Beautiful Body Castings on June 26, 2006, 05:21:00 PM
yeah the script seems to have problems working with some gif files mainly ones containing transparency

anyone got any ideas on my other problem of making the font size be based on the image width so its smaller for smaller pics and bigger for bigger pics etc

Mikey


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Ricsca on June 26, 2006, 06:02:43 PM
Sorry but i have some problem to understand,as i don't speak english well....could you explain it in easier way?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Beautiful Body Castings on June 26, 2006, 06:15:04 PM
what language do you speak? i could translate it?

basically what i said was

this mod does not work well with .gif files if the .gif file is a transparent gif

other than that i do not know how to fix this problem



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Ricsca on June 26, 2006, 06:41:02 PM
I speak Italian!  :) 

Ok now I understood. 

Hello and thanks


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on June 28, 2006, 12:53:03 AM
this mod does not work well with .gif files if the .gif file is a transparent gif

other than that i do not know how to fix this problem
Just want to clarify this: its not the mod's problem, its the graphic module you are using for thumbnail cretion.
Personaly I'm using GD 2 which comes with PHP v5.1.4 and never had problems with .gifs, well, only with animated gifs, but still it doesnt crash, or anything, it just leaves only first frame...

Also, I've experienced some issues with ImageMagic (v5 I belive) when it would destroy animated image with transparent colors.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Beautiful Body Castings on June 28, 2006, 12:55:38 AM
yeah my host only has GD php version 4.3 i think

anyway does anyone have any input about how to change this mod so that the image or text it places on an image is sized as a percentage of the actual image so that it appears the same on all images instead of huge on small images and small on huge images

Mikey


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LJL_Houben on June 28, 2006, 07:52:07 PM
Hi if I click batch anotate, I only see skipped....

I'm using Imagemagick, does anybody maybee know what the problem could be.

Thanks

Ludo


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Brainwrek on June 29, 2006, 02:21:25 PM
Just looking for clarification.

When using this mod along with V@no's Check New Images mod (http://www.4homepages.de/forum/index.php?topic=4754.0) and Show Original Image mod (http://www.4homepages.de/forum/index.php?topic=3236.0), I'm seeing that only the thumbs and the "detail" pictures are being watermarked.  The "BIG" pictures are not.  Is this the way it is supposed to work "out of the box"?  Is there any way to also watermark the "BIG" photos?  Thanks!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LeeWicKeD on July 05, 2006, 07:33:51 PM
Hi there,

i've used this mod now for some months without any issues. I've used the Text-Annotation only. Today i wanted to change it to the Image-Annotation.
I made a Logo, saved it as .png on my server and configured the mod.

When i upload a picture now, there is now annotation added. If I use the BatchAnnotate in Admin CP it say that the picture has successfully annotated, but i still can't see the logo...


What did I wrong?

Regards


Title: Wasserzeichen klappt nicht!!!!!
Post by: nova2004de on July 06, 2006, 07:21:47 PM
Brauche Hilfe
 Ich habe alles genau so gemacht wie es in install.doc es stand aber es klappt nicht mit den Wasserzeichen ich bekomme auch keine Fehler Meldung es klappt einfach nicht, das einzige was jetzt ist unten bei den PlugIns ist jetzt auch Batch Annotate aber da tut sich nichts wen ich es anklicke.
Vielleicht  habe ich ja was falsch gemacht weil mein englisch gar nicht gut ist und ich etwas falsch verstanden habe.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Brainwrek on July 08, 2006, 03:37:09 PM
Hi there,

i've used this mod now for some months without any issues. I've used the Text-Annotation only. Today i wanted to change it to the Image-Annotation.
I made a Logo, saved it as .png on my server and configured the mod.

When i upload a picture now, there is now annotation added. If I use the BatchAnnotate in Admin CP it say that the picture has successfully annotated, but i still can't see the logo...


What did I wrong?

Regards
Just out of curiosity, did you double-check your transparency settings?  If the image is too transparent, you might not be seeing it...  Just a thought. 

BTW... Anyone have an answer to my earlier question?
Quote  [Expand]
Just looking for clarification.

When using this mod along with V@no's Check New Images mod (http://www.4homepages.de/forum/index.php?topic=4754.0) and Show Original Image mod (http://www.4homepages.de/forum/index.php?topic=3236.0), I'm seeing that only the thumbs and the "detail" pictures are being watermarked.  The "BIG" pictures are not.  Is this the way it is supposed to work "out of the box"?  Is there any way to also watermark the "BIG" photos?  Thanks!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LeeWicKeD on July 10, 2006, 06:02:31 PM
@Brainwrek: Goddamned...i read "visibility" of the picture, not "invisibility" ;) Thx!

But unfortunately i can't solve your problem.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Brainwrek on July 11, 2006, 02:46:53 AM
LeeWicked... Glad that helped.   :D

V@no... PM me.  I have some paid work for you if you're interested.  Against a deadline and I need your expertise.


Title: "supplied argument is not a valid Image resource" in Annotation (watermark) MOD
Post by: alexishomer on July 17, 2006, 07:43:40 PM
Hello everyone,

I am using GD version 2, 4images 1.7.2 and I encounter this error when adding new images and annotation to them...

1
2
3
4
5
6
7
8
9
10
11
12
13
Warning: imagesx(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 186
Working on data/media/1/a32kya.jpg file:
Added annotation in data/media/1/a32kya.jpg file.
Created thumbnail.
Image added: a32kya.jpeg

Although it says that it had added the annotation, the picture remains unannotated.

a link to the annotation picture : Annotation.png (http://www.alexkhyuen.com/gallery/annotation.png)

can anyone give me any clue to what is happening? I am totally new to php


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Stinus on July 30, 2006, 11:59:56 PM
Hi
i get this errors when i hit the Batch Annotate in control panel


[qcode]Warning: main(): Unable to access ./../admin/admin_global.php in /customers/veteranbrannbiler.com/veteranbrannbiler.com/httpd.www/4images/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /customers/veteranbrannbiler.com/veteranbrannbiler.com/httpd.www/4images/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php') in /customers/veteranbrannbiler.com/veteranbrannbiler.com/httpd.www/4images/admin/plugins/batch_annotate.php on line 8[/qcode]

Someone who can help me? and tell me what to do?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on July 31, 2006, 12:06:03 AM
page 33


Title: Re: [Mod] Image Annotation (Watermark)
Post by: __G__ on July 31, 2006, 06:27:06 AM
hi its not working i think on top of my acp annonation thing it says

Annotation Settings   [ GD is set as an image conversion tool ]



and when i click on batch annonate than nothin happens it stays blannk


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Stinus on August 01, 2006, 11:35:14 PM
Thanks.
Now it's working  :D


Title: Re: "supplied argument is not a valid Image resource" in Annotation (watermark)
Post by: tdkpaul on August 03, 2006, 02:02:15 PM
Hello everyone,

I am using GD version 2, 4images 1.7.2 and I encounter this error when adding new images and annotation to them...

1
2
3
4
5
6
7
8
9
10
11
12
13
Warning: imagesx(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/alexkh5/public_html/gallery/includes/annotate.php on line 186
Working on data/media/1/a32kya.jpg file:
Added annotation in data/media/1/a32kya.jpg file.
Created thumbnail.
Image added: a32kya.jpeg

Although it says that it had added the annotation, the picture remains unannotated.

a link to the annotation picture : Annotation.png (http://www.alexkhyuen.com/gallery/annotation.png)

can anyone give me any clue to what is happening? I am totally new to php


Image added: a32kya.jpeg
you used JPEG
it only works wth jpg right now!

is it possible to get it work with jpeg?

Thx


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Lucifix on August 08, 2006, 11:38:02 PM
Becouse this topic is huge I would like to ask you if it's possible to add username text as watermark when uploading photo or image? If user wish so.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on August 09, 2006, 02:14:52 AM
Yes, it is, read the instructions, I belive its mentioned what kind of tags can be added in the watermark text.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tdkpaul on August 12, 2006, 12:10:08 PM
Becouse this topic is huge I would like to ask you if it's possible to add username text as watermark when uploading photo or image? If user wish so.

why you don't check the whole thread?

if everybody would ask if something is possible the Thread will even become longer


Title: Re: [Mod] Image Annotation (Watermark)
Post by: teabone on August 12, 2006, 07:26:01 PM
 :lol: why don´t you read through the whole internet?  :roll: sorry, but i must say, everything here (templates, mods and so on) is very difficult to find. I really like the idea of having a foum to discuss und bugfix and all but this here is total chaos. And I know what I´m talking about, believe me. :mrgreen:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tdkpaul on August 19, 2006, 12:53:04 AM
I finally got an error out of the batch annotate.

1
2
3
4
5
6
7
Processing image 19 from category Cats, image ID 1793 >>
Warning: imagettfbbox(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 192

Warning: imagettftext(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 193
OK

and my font setting in the annotation settings admin is (and it works like this on the user side)
1
./fonts/arial.ttf


Can someone tell me where I went wrong?

Thanks

i have the same error! it only works , if a user uploads an image

everyone says, that you have to set the full path

what does it mean?

like this?  http://www.mydomain.com/4images/font/ARIAL.TTF

doesn't work for me


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Jan-Lukas on August 19, 2006, 01:39:03 AM
wisst ihr eigendlich was es heisst 35 Seiten zu lesen wo zwar viel geschrieben steht, aber keiner so richtig was sagt ;)
Und dann 95 % in englisch  :cry:
OK, hab es am laufen
ABER  :wink:
wenn ich %S für Usernamen eingebe, steht im Bild auch %S und nicht Klaus-Bärbel  :(

Was muss ich den wo noch ändern, um jetzt überall die Usernamen ins Bild zubekommen ?

schickt mich aber bitte nicht wieder durch die 35 Bilder  :oops:

Danke für eure Hilfe

Harald


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tdkpaul on August 19, 2006, 04:17:13 PM
wisst ihr eigendlich was es heisst 35 Seiten zu lesen wo zwar viel geschrieben steht, aber keiner so richtig was sagt ;)
Und dann 95 % in englisch  :cry:
OK, hab es am laufen
ABER  :wink:
wenn ich %S für Usernamen eingebe, steht im Bild auch %S und nicht Klaus-Bärbel  :(

Was muss ich den wo noch ändern, um jetzt überall die Usernamen ins Bild zubekommen ?

schickt mich aber bitte nicht wieder durch die 35 Bilder  :oops:

Danke für eure Hilfe

Harald

ja ich weiß wie es ist 35 Seiten zu lesen! Ich habe mich mal an einem ganzen Tag durch das KOMPLETTE Mod Forum gewühlt - von vorne bis hinten-  und mir alle Mods so aufgeschrieben mit Link die ich haben will  :lol:

Das English sollte man doch hier verstehen! Es ist ja v.a. Denglisch!

Klaus-Bärbel? Are you killing me  :mrgreen:

ich hatte mal das gleiche Problem

hier die Lösung:

öffne annotate.php und suche
1
$ann_vars = array ("'%D'", "'%T'", "'%N'", "'%H'", "'%U'", "'%S'", "'%B'");

und ersetze mit
1
$ann_vars = array ('%D', '%T', '%N', '%H', '%U', '%S', '%B');


alles klar Klaus-Bärbel? nun können deine User wieder Ü-Ei Fotos hochladen und dann steht dort auch z.B. der Name "Horst"!


EDIT
ey jo, Jan-Lukas. ich habe mir mal deine U U Seite angesehen und festgestellt, dass du dort eine Shoutbox hast. Falls das diese Shoutbox hier ist  http://www.4homepages.de/forum/index.php?topic=10545.msg76633#msg76633
so lade sie mal bitte hier als Attachement hoch, da dort der DL-Link nicht mehr vorhanden ist. DANKE


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ocdotcom on August 20, 2006, 05:04:22 AM
I finally got an error out of the batch annotate.

1
2
3
4
5
6
7
Processing image 19 from category Cats, image ID 1793 >>
Warning: imagettfbbox(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 192

Warning: imagettftext(): Could not find/open font in /home/digital/public_html/includes/annotate.php on line 193
OK

and my font setting in the annotation settings admin is (and it works like this on the user side)
1
./fonts/arial.ttf


Can someone tell me where I went wrong?

Thanks

i have the same error! it only works , if a user uploads an image

everyone says, that you have to set the full path

what does it mean?

like this?  http://www.mydomain.com/4images/font/ARIAL.TTF

doesn't work for me


Same problem here - my annotation works but I get the line 95 error - I suppose its late and Im tired but Id like to resolve this. Still searching for an answer...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ocdotcom on August 20, 2006, 05:33:43 AM
finally got it - had to contact my hosting company - found out I needed a /www/www instead of /www  :roll:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Jan-Lukas on August 20, 2006, 08:39:48 AM

alles klar Klaus-Bärbel? nun können deine User wieder Ü-Ei Fotos hochladen und dann steht dort auch z.B. der Name "Horst"!


EDIT
ey jo, Jan-Lukas. ich habe mir mal deine U U Seite angesehen und festgestellt, dass du dort eine Shoutbox hast. Falls das diese Shoutbox hier ist  http://www.4homepages.de/forum/index.php?topic=10545.msg76633#msg76633
so lade sie mal bitte hier als Attachement hoch, da dort der DL-Link nicht mehr vorhanden ist. DANKE


Sag noch mal Klaus-Bärbel zu mir  :D das war nur eine Einlage um den Haufen hier etwas auf zulockern :wink:
Werde das dann probieren, obwohl ich da schon großes vertrauen in dir habe *g*
Danke dir
Harald

Ps. was die Shoutbox angeht versuche ich mein Möglichstes, hab mir mal eine neue Platte geleistet, und das ist mit 100% Sicherheit auf der alten (nicht meine alte).
Muss also erst mal wieder Umbauen und dann suchen, aber werden wir schon finden.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tdkpaul on August 20, 2006, 08:06:29 PM

alles klar Klaus-Bärbel? nun können deine User wieder Ü-Ei Fotos hochladen und dann steht dort auch z.B. der Name "Horst"!


EDIT
ey jo, Jan-Lukas. ich habe mir mal deine U U Seite angesehen und festgestellt, dass du dort eine Shoutbox hast. Falls das diese Shoutbox hier ist  http://www.4homepages.de/forum/index.php?topic=10545.msg76633#msg76633
so lade sie mal bitte hier als Attachement hoch, da dort der DL-Link nicht mehr vorhanden ist. DANKE


Sag noch mal Klaus-Bärbel zu mir  :D das war nur eine Einlage um den Haufen hier etwas auf zulockern :wink:
Werde das dann probieren, obwohl ich da schon großes vertrauen in dir habe *g*
Danke dir
Harald

Ps. was die Shoutbox angeht versuche ich mein Möglichstes, hab mir mal eine neue Platte geleistet, und das ist mit 100% Sicherheit auf der alten (nicht meine alte).
Muss also erst mal wieder Umbauen und dann suchen, aber werden wir schon finden.


nein danke, Klaus-Bärbel !

Ein Anderer hat sie im spezifischen Thread nochmal attached.

Und klappt es jetzt mit dem username?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Jan-Lukas on August 20, 2006, 09:58:58 PM
Na dann kann ich ja aufhören zu suchen ;)

Mit dem Usernamen klappt es bestens, hab es aber erst mal in einer von 3 Galerien eingebaut

Danke für deine Hilfe
gruss Harald


Title: Automatische Annotation-Funktion beim Upload
Post by: Lufine on August 24, 2006, 06:08:13 PM
Habe 4Images 1.7.3  installiert und heute das [Mod] Image Annotation aufgespielt.

Funzt fast alles einwandfrei - allerdings nur, wenn ich Batch-Annotate starte. Obwohl ich "Automatische Annotation-Funktion beim Upload" aktiviert habe wird Bilderupload kein Wasserzeichen "aufgestempelt". Fehlermeldungen gibt es keine...

Hat jemand eine Idee?
Lufine




I use 4Images 1.7.3 and today I installed [Mod] Image Annotation.

Works fine - but only in Batch-Annotate Mode. Although I activated "automatic annotation function at upload" I get no Watermark. There are no error messages...

Has anyone an Idea?
Lufine


Title: Re: Automatische Annotation-Funktion beim Upload
Post by: tdkpaul on August 25, 2006, 06:19:47 PM
Habe 4Images 1.7.3  installiert und heute das [Mod] Image Annotation aufgespielt.

Funzt fast alles einwandfrei - allerdings nur, wenn ich Batch-Annotate starte. Obwohl ich "Automatische Annotation-Funktion beim Upload" aktiviert habe wird Bilderupload kein Wasserzeichen "aufgestempelt". Fehlermeldungen gibt es keine...

Hat jemand eine Idee?
Lufine




I use 4Images 1.7.3 and today I installed [Mod] Image Annotation.

Works fine - but only in Batch-Annotate Mode. Although I activated "automatic annotation function at upload" I get no Watermark. There are no error messages...

Has anyone an Idea?
Lufine
http://www.4homepages.de/forum/index.php?topic=13719.msg76632#msg76632
versuche mal das hier, falls du nur die Variablen benutzt hast


Title: Re: [Mod] Image Annotation (Watermark)
Post by: faux on August 28, 2006, 08:35:15 PM
Vorschlag für neue Version:
In der 4images_images Tabelle ein zusätzliches Feld: image_annotated. Wenn Annotation gesetzt wurde, steht hier 1 drinnen, so dass man nicht versehentlich ein Bild zweimal mit ner Annotation versehen kann.

Grüße
Faux


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Stefanie on September 06, 2006, 09:13:13 AM
Hallo!

Der Mod funktioniert bei mir sehr gut, alle Bilder bekommen ein Wasserzeichen.
Was ist aber mit den Thumbnails? Die sollen eigentlich auch ein Wasserzeichen bekommen, bei denen funktioniert das aber nicht. Weiss jemand woran das liegt? Ist die Funktion noch nicht implementiert?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tdkpaul on September 06, 2006, 06:20:23 PM
da müsste man nochmal ne Menge am Code umschreiben und ich bezweifle, dass jemand dazu Lust hat, denn du bist wohlmöglich der (die ?) Einzige/r, der seine Thumbnails branden will.


Warum eigentlich?

Bitte mal erläutern, dnen ich stehe irgendwie auf`m Schlauch. Meine Vorstellungskraft ist ausgeschöpft und ich kann mir nicht zusammenreimen, warum man ein Watermark auf ca. 100 mal 100 px Thumbs benötigt.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Stoleti on September 11, 2006, 06:57:31 AM
this works fine but i've a problem , at instructions this said :

You can use the following variables: %N - Site Name, %H - full Site URL, %U - short Site URL, %S - User Name, %D - date, %T - time, %B - line break

but at photo this don't work , show "%N" and not the site name  :|


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on September 11, 2006, 07:24:12 AM
http://www.4homepages.de/forum/index.php?topic=13719.msg68084#msg68084

P.S. I also added a note regarding this issue to the original topic.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Stefanie on September 11, 2006, 11:20:12 AM
da müsste man nochmal ne Menge am Code umschreiben und ich bezweifle, dass jemand dazu Lust hat, denn du bist wohlmöglich der (die ?) Einzige/r, der seine Thumbnails branden will.


Warum eigentlich?

Bitte mal erläutern, dnen ich stehe irgendwie auf`m Schlauch. Meine Vorstellungskraft ist ausgeschöpft und ich kann mir nicht zusammenreimen, warum man ein Watermark auf ca. 100 mal 100 px Thumbs benötigt.

Die Thumbnails sind bei uns in der Gallerie 300x300 Pixel groß. Warum genau mein Auftraggeber das will weiss ich nicht...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on September 11, 2006, 12:51:17 PM
http://www.4homepages.de/forum/index.php?topic=13719.msg68084#msg68084

P.S. I also added a note regarding this issue to the original topic.

source file fixed  :wink:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tekir on October 05, 2006, 06:36:17 PM
I have installed this mod; however, it can not create the images. It only displays this image:

(http://www.amator-balikcilik.com/galeri/data/media/171/my_059_2.jpg)

Have you encontered a problem like that?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tdkpaul on October 05, 2006, 06:39:39 PM
da müsste man nochmal ne Menge am Code umschreiben und ich bezweifle, dass jemand dazu Lust hat, denn du bist wohlmöglich der (die ?) Einzige/r, der seine Thumbnails branden will.


Warum eigentlich?

Bitte mal erläutern, dnen ich stehe irgendwie auf`m Schlauch. Meine Vorstellungskraft ist ausgeschöpft und ich kann mir nicht zusammenreimen, warum man ein Watermark auf ca. 100 mal 100 px Thumbs benötigt.

Die Thumbnails sind bei uns in der Gallerie 300x300 Pixel groß. Warum genau mein Auftraggeber das will weiss ich nicht...

lol

dann sach ihn, dass es Schachsinn ist


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tekir on October 06, 2006, 09:01:42 PM
Mine saves a 0 byte enpty image, as I have described in my previous message.

What may have caused this problem?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tekir on October 06, 2006, 09:27:22 PM
I use NetPBM for thumbnail creation. I read, GD2+ is need for text annotation. Well I do not use text annotation, I use image annotation.

But it annotates nothing, on the contrary, it erases the complete image.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sukrams on October 14, 2006, 04:31:34 AM
hi,

i have a problem:

if i click on "batch annotate" in the admin cp the following text comes:

Warning: require() [function.require]: Unable to access ./../admin/admin_global.php in /var/www/******/html/galerie/admin/plugins/batch_annotate.php on line 8

Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /var/www/******/html/galerie/admin/plugins/batch_annotate.php on line 8

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.') in /var/www/***/html/galerie/admin/plugins/batch_annotate.php on line 8

what means that and what can i do?

Also wenn ich da auf das "Bacth Annotate" im Admin CP klicke kommt der obige Fehler. Was bedeutet er und wie kann ich ihn beheben? die dateien sind alle im Ordner.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sunshadow on October 19, 2006, 03:52:26 PM
Hi!

I have the same Problem with "batch annode".



Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on October 20, 2006, 01:45:54 PM
just set absolute full path in mod settings!!!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: nyssa on October 25, 2006, 11:20:19 PM
Habs alles durchgelesen  8O und auch alles so gemacht, so wie es in meiner English Sprachkenntnisse liegen. Trotz all dem kann ich kein Wasserzeichen setzen, obwohl keine Fehlermeldung angegeben wird. Ich bin am Verzweifeln.

Die Galerie unter http://www.dj-events24.de/kings-pub/galerie/index.php zu finden.

Hier hab ich mich bereits mit 37 Seiten durchgekämft und hab nix gefunden, wo noch der Hacken liegen könnte.

Hoffe mal hier auf deutschsprachige Hilfe, denn so perfekt ist mein English nun doch nicht.

Gruß Nyssa


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on October 26, 2006, 04:53:43 PM
@ nyssa 
... für 'ne Hilfe sind die Infos zu spärlich ...  :?
 


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Funix on October 26, 2006, 08:29:00 PM
hallo zusammen!

ich hatte die annotation schon eimal installiert, nun habe ich aber die gallerie auf einem anderen sever installiert und natürlich auch die annotation.
bei dieser kommt nun aber immer dieser fehler, wenn ich ein foto hochlade:

    
Warning: imagesx(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 186

Warning: imagesx(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/hockeypi/public_html/4images/includes/annotate.php on line 186
Working on data/media/1/OSI_9203.JPG file:
Copied original file into data/media/1/download/ folder.
Added annotation in data/media/1/download/OSI_9203.JPG file.
Image resized.
Added annotation in data/media/1/OSI_9203.JPG file.
Created thumbnail.
Bild erfolgreich hinzugefügt: OSI 9203



die datei wird dann zwar hinzugefügt, aber ohne watermark!
ein ahnung was da das problem ist?
danke, gruss
funix


Title: Re: [Mod] Image Annotation (Watermark)
Post by: nyssa on October 27, 2006, 02:10:23 PM
@ nyssa 
... für 'ne Hilfe sind die Infos zu spärlich ...  :?
 


Welche Infos sind zu spärlich. Einfach erklärt, ich habe dies Instaliert, alles eingerichtet, so wie es in der Install Beschreibung stand. Bei der ganzen Sache hatte es keinen einzigen Fehler angezeigt gehabt. Es zeigt auch in den Admin Bereich annotation an, auch die Einstellungen gehen, nur wenn ich dann ein Bild uploade, zeigt das Wasserzeichen im Bild nicht an. Das ist mein Hauptproblem.

Hier mal ein Screen im Anhang, das es vorhanden ist. Ich benutze 4Image 1.7.3

Ich weiss nicht, was ich da noch angeben soll, um um eure Hilfe zu bekommen.

Gruß Nyssa


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nicky on October 29, 2006, 02:04:49 AM
PERFECT

1st try.. working fine for me!

THX!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Momo on October 29, 2006, 07:20:27 PM

Ive tried this - because I have the samme problem. But there are new errors, like unexpected t_string.

What I have to do in detail. My batch_annotate, the first lines

Quote  [Expand]
<?php // PLUGIN_TITLE: Batch Annotate
$nozip = 1;
define('IN_CP', 1);
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
define('ROOT_PATH', $root_path);
define('MEDIA_DIR', 'data/media');
define('MEDIA_PATH', ROOT_PATH.MEDIA_DIR);
require(ROOT_PATH.'admin/admin_global.php');
require(ROOT_PATH.'includes/annotate.php');

my error:


Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /srv/www/.../.../.../admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /srv/www//.../.../.../admin/plugins/batch_annotate.php on line 8

Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:') in /srv/www//.../.../.../admin/plugins/batch_annotate.php on line 8



Could you help me please?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on October 29, 2006, 09:25:44 PM
@ nyssa 
 
... zumindest haben wir jetzt mehr Informationen ...
... und ich sehe aus deinem Bild vom ACP, dass der Pfad zu deinem einzubettenden Bild garantiert nicht stimmt ...
... "Einzubettendes Bild - Spezifizieren Sie das PGN-Bild mit dem vollen Pfad und Dateiname" ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: nyssa on October 29, 2006, 09:35:10 PM
@ nyssa 
 
... zumindest haben wir jetzt mehr Informationen ...
... und ich sehe aus deinem Bild vom ACP, dass der Pfad zu deinem einzubettenden Bild garantiert nicht stimmt ...
... "Einzubettendes Bild - Spezifizieren Sie das PGN-Bild mit dem vollen Pfad und Dateiname" ...


Spezifizieren Sie das PGN-Bild mit dem vollen Pfad und Dateiname = meint man damit, das ich das volle http://www....... usw. angeben soll, oder was wurde damit gemeint. Stehe im Moment auf dem Schlauch

Gruß Nyssa


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on October 29, 2006, 09:48:50 PM
... der volle Pfad auf dem Server ... siehe auch Posts auf den vorherigen Seiten ...
... sieht etwa so aus ... home/virtual/var/www/html/4images/.../logo_gd.pgn ...
... ist aber natürlich server- und websitespezifisch ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: anni63 on November 06, 2006, 05:05:14 PM
Hallo,
Danke, das Problem konnte gelöst werden.

batch_annonate.php
diese Zeile:
[qcode]define('ROOT_PATH', '§root_path');[/qcode]

durch

[qcode]define('ROOT_PATH', 'C:/Programme/xampp/htdocs3/anro/');[/qcode]

ersetzen.
Also anstatt '§root_path' den vollen Pfad eingeben!

Schöne Grüße
anni63


Title: Re: [Mod] Image Annotation (Watermark)
Post by: __G__ on November 12, 2006, 06:13:49 AM
Warning: imagettfbbox(): Could not find/open font in /home3/wowim/public_html/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home3/wowim/public_html/includes/annotate.php on line 192
OK

wat can i do :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: @rtur on November 12, 2006, 10:01:13 AM
What change font settings (bold, italic, underline, itp) in this plugin?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: __G__ on November 12, 2006, 10:26:26 AM
wat should i do wid font setting ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ivan on November 12, 2006, 03:11:23 PM
hy __G__
go to annotations settings and control your font pfad!!!!

must exactly pfad for font entry

see image > this is my pfad on my offline xampp system for winxp

greets ivan


Title: Re: [Mod] Image Annotation (Watermark)
Post by: __G__ on November 12, 2006, 06:05:23 PM
welll can i  put it like http://mysite/fonts.ttf ? like this or no cause i dont know what would be the server location :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ivan on November 12, 2006, 06:16:41 PM
hi g
the absolutly pfad

example
my pfad on my online host is
/var/www/vhosts/domain.com/httpdocs/arial.ttf

greets


Title: Re: [Mod] Image Annotation (Watermark)
Post by: __G__ on November 12, 2006, 07:32:09 PM
Now when i do this it says No category selected, nothing to annotate...

Finished!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: goldcoin on November 14, 2006, 09:33:26 PM
Ok now i'm really stuck.
I will PAY to anyone who could help me to run this mod.

Here is what i've done :

1) I've run the test.php file (with the pre-install code in it) and it works fine. i can see the black
background with the text inside it.

2) download the zip file contains the script files and opened the install.doc file.
it says :

Files To Edit:       
/4images/member.php
/4images/admin/index.php
/4images/lang/english/admin.php

but there is a setting.php file as well, anyway i've edited all the files exacly like the install file shows
and uploaded them all to the server.

i don't really need this mod to work for images that users upload to the system because i don't allow
users to upload their own images in my website, i only need it to watermark the images that i've already
uploaded.
so i press the "Batch Annotate" at the buttom of my admin page and i'm getting this error :

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/****/public_html/img/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/****/public_html/img/admin/plugins/batch_annotate.php on line 8

Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/****/public_html/img/admin/plugins/batch_annotate.php on line 8

here is line 8 : 
require(ROOT_PATH.'admin/admin_global.php');

this is the 3rd time i'm trying to install this mod.

Please help!!  :cry:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: goldcoin on November 15, 2006, 01:05:34 PM
Ok the problem is fixed now after i've changed something in batch_annotate.php
This MOD works great now, many thanks to the developer.

I have another question,
I've uploaded my own logo-gd.png and i would like to use an image watermark instead of text.
But how can i use the image file without any background?
In the script setting it ask me to enter a BG color '#00000' but i don't want any background at all.
I just want to use the image as is.

Any idea?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SagaatHome on November 16, 2006, 02:07:55 PM
i have the same problem.GD 2 is testet and functional.

Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /is/htdocs/wpxxxxxxx_LXJBKUKH/www/4images/admin/plugins/batch_annotate.php on line 8

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/share/pear/php5') in /is/htdocs/wpxxxxxx_LXJXBKKH/www/4images/admin/plugins/batch_annotate.php on line 8

I don`t know where the problem is, cause the root path is correct! rootpath is set to 4images and the admin folder is admin/admin_globals.php???I dont know whats wrong with the line...?

Anyway the mod works fine, when uploading new pictures...!Thanks a lot!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: live@ct on November 17, 2006, 07:38:19 PM
I get this error:

No category selected, nothing to annotate...

Finished!

I think that this problem its about something with the drop down categorie select, because when I add a new image and select anottate the image has the anottation msg
but when I use the Batch Anottate its not working! :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on November 18, 2006, 06:46:23 PM
But how can i use the image file without any background?
In the script setting it ask me to enter a BG color '#00000' but i don't want any background at all.
I just want to use the image as is.

Any idea?

with this setting you chose the color to be considered by the system as a background and set as a transparent. in other words, a part of your image with this color will "disappear". if you are not going to use transparance feature - just set any color wich does not exist on your annotation image, or just do not specify anything


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on November 18, 2006, 06:50:05 PM
I don`t know where the problem is, cause the root path is correct! rootpath is set to 4images and the admin folder is admin/admin_globals.php???I dont know whats wrong with the line...?

the point is that root path relative to the admin directory and the root path relative to the main 4images directory are different


Title: Re: [Mod] Image Annotation (Watermark)
Post by: wallpapers on November 23, 2006, 09:17:21 PM
I don`t know where the problem is, cause the root path is correct! rootpath is set to 4images and the admin folder is admin/admin_globals.php???I dont know whats wrong with the line...?

the point is that root path relative to the admin directory and the root path relative to the main 4images directory are different

I have the same problem.
But how i solve this problem with the different paths  :roll:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: wallpapers on November 23, 2006, 09:53:57 PM
I have a solution

Change in batch_annotate.php
1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";

to:
1
$root_path = (!eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../" : "./../../";


Title: Re: [Mod] Image Annotation (Watermark)
Post by: wallpapers on November 26, 2006, 07:47:23 PM
After making some errors i have in my eror log some new things.
I don't now how to get a solution for these.
but the batch annotate scrips says the averything is done.
but i have now watermarks on my pictures.
the code below comes out of my error log mayby someone have a solution :D
1
2
3
4
5
[client 195.241.210.90] PHP Warning: imagesx(): supplied argument is not a valid Image resource in /home/vhosts/tuned-cars.net/httpdocs/includes/annotate.php on line 176, referer: http://www.tuned-cars.net/admin/index.php
[client 195.241.210.90] PHP Warning: imagesy(): supplied argument is not a valid Image resource in /home/vhosts/tuned-cars.net/httpdocs/includes/annotate.php on line 177, referer: http://www.tuned-cars.net/admin/index.php
[client 195.241.210.90] PHP Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/vhosts/tuned-cars.net/httpdocs/includes/annotate.php on line 184, referer: http://www.tuned-cars.net/admin/index.php
[client 195.241.210.90] PHP Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/vhosts/tuned-cars.net/httpdocs/includes/annotate.php on line 185, referer: http://www.tuned-cars.net/admin/index.php
[client 195.241.210.90] PHP Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/vhosts/tuned-cars.net/httpdocs/includes/annotate.php on line 186, referer: http://www.tuned-cars.net/admin/index.php


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SagaatHome on November 27, 2006, 12:05:29 PM
thx wallpapers it worked!!!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ghostmi on November 28, 2006, 02:39:15 PM
I have a problem between the [Mod] Image Annotation with the MOD multiupload, if a multiupload is made from an error.

help

PS: sorry for my english


Title: Re: [Mod] Image Annotation (Watermark)
Post by: wallpapers on November 28, 2006, 07:00:20 PM

it's good to hear that  :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: hendrik87 on December 06, 2006, 02:22:37 PM
Hat es schon irgendjemand bei 1.7.4 am laufen bekommen? Bei mir klappt es irgendwie nicht ganz. Es werden unter anderem nicht alle Bescreibungstexte (Einstellungen) angezeigt und dazu macht es garnichts, wenn ich es anwenden will. Es gibt jedoch auch keine Fehlermeldung.
Gruß Hendrik


Title: Re: [Mod] Image Annotation (Watermark)
Post by: m.a on December 06, 2006, 02:24:43 PM
I have a solution

Change in batch_annotate.php
1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";

to:
1
$root_path = (!eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../" : "./../../";


Hi,
Danke!
ich bekomme keine Fehlermeldung mehr.

Aber ich kann noch nicht damit arbeiten.
Der Watermark funktioniert noch nicht.
Die Bilder werden weder beim Upload und noch nachher Watermark!
Ich nutze auch Version: 1.7.4 !

Besten Dank
m.a


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SagaatHome on December 07, 2006, 03:18:41 PM
Also was ich festgestellt habe, dass nur wenn die Einstellung nicht LINKS OBEN gewählt wurde funktioniert es bei mir! Gibt es dauernd den Fehler als wenn er die schriften nicht findet. Stelle ich alles aber um auf mitte oder boden geht alles sowohl bild als auch text...?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Phedo on December 13, 2006, 12:54:31 PM
Bei mir (auch Version 1.7.4) geht es auch nicht mehr, egal, was ich einstelle. Der kurz Test-Code, zum testen, ob man alle Voraussetzungen hat funktioniert allerdings.

Pflege ich neue Bilder ein, steht zwar da: added annotation.... aber auf dem Bild ist nichts.

Gibt es schon Abhilfe ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ivan on December 13, 2006, 05:22:15 PM
hallo zusammen, ich benutze vers. 1.7.4 und funktioniert einwandfrei
überprüft eure server config
und vorallem den absoluten pfad angeben!

gruss ivan


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on December 13, 2006, 06:15:11 PM
@ Ivan

... danke für diese eindeutige Aussage ... !
... nun dürften alle Vers.1.7.4-Bedenken zerstreut sein ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ivan on December 13, 2006, 07:21:22 PM
@ mawenzi
kein problem ;o)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: picster on December 18, 2006, 07:32:54 PM
Ich habe das Mod unter 1.7.4 installiert, nur wenn ich im ACP auf den 'batch-annotation'-link klicke erscheint leider kein Panel sondern nur eine weisse Seite???
Was habe ich denn hier übersehen??? (Ich habe die Installation schon nachgecheckt)

I have the Mod installes under 1.7.4, but after clicking the button' batch-annotation' in the ACP only a white page is shown (instead of a panel)???
Missed something? (Doubleckecked the installation already;-)

Danke and thx,
picster


Title: Re: [Mod] Image Annotation (Watermark)
Post by: picster on December 18, 2006, 08:04:02 PM
Und hat sich schon erledigt :)
(genau lesen macht das Leben leichter...)
Ich habe jetzt den absoluten Pfad manuell in der batch_annotate.php eingefügt, Zeile 5: define('ROOT_PATH'),"absoluter Pfad/"); Dann klappt's auch gleich auf Anhieb. SUPER MOD - DANKE, SLL! :D


already done :)
(Reading in patience makes life much easier...)
In batch_annotation.php, line 5, I adjusted manually the define_ROOT_PATH like this: define('ROOT_PATH'),"absolute Path/"); So everything works now like a snap. SUPER MOD - THANKS SLL!!! :D

PS.: Just an Idea: This little detail should be described in the doc?

cheers, picster


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on December 18, 2006, 08:06:38 PM
@ picster

... ja, wer lesen kann ist absolut im Vorteil ... ;)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: m.a on December 19, 2006, 12:45:22 AM
hallo zusammen, ich benutze vers. 1.7.4 und funktioniert einwandfrei
überprüft eure server config
und vorallem den absoluten pfad angeben!

gruss ivan


Hallo,
ich habe den absoluten pfad angegeben und funktioniert (Watermark) mit dem png-Bild.
Aber leider beim Text (Anmerkung Modus: Text) kommt immer ncoh die Fehler-Meldung:

Warning: imagettfbbox(): Could not find/open font in /var/www/web1/html/includes/annotate.php on line 95
Warning: imagettftext(): Could not find/open font in /var/www/web1/html/includes/annotate.php on line 193
Working on data/media/71/b_fotokina_MG_3253.jpg file:
Copied file into data/thumbnails/79 folder.
Copied original file into data/media/79/big/ folder.
Image resized.
Added annotation in data/media/79/b_fotokina_MG_3253.jpg file.
Created thumbnail.
Bild erfolgreich hinzugefügt: BildXX

Obwohl ich den absoluten pfad für den file arial_2.ttf angegeben habe.

Woran kann es liegen?

Grüß
m.a


Title: Re: [Mod] Image Annotation (Watermark)
Post by: michi-w. on December 20, 2006, 07:59:41 PM
Hallo,

@m.a
ich habe einfach eine .ttf in annotate.ttf umbenannt und in das Script Root hochgeladen.
Außerdem noch in der ia.sql
1
annotation_text*My Fantastic Gallery at http://www.mydomain.com
angepasst.

Gruß
michi-w.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: m.a on December 20, 2006, 08:21:43 PM
Hallo,

ich habe einfach eine .ttf in annotate.ttf umbenannt und in das Script Root hochgeladen.

Gruß
michi-w.

hi,
aber bei mir funktioniert leider nicht Text-Modus von Image Annotation (Watermark).
Ich habe auch .ttf datei in Root hochgeladen und den absoluten pfad angegeben.
Genau wie beim .png datei.
Aber es funktoniert nicht.
Und kommt diese Fehler-Meldung, dass ich beim voriges post geschrieben habe.
Es findet den Datei .ttf nicht

Grüß
m.a


Title: Re: [Mod] Image Annotation (Watermark)
Post by: vuong184 on January 29, 2007, 06:00:50 PM
Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /srv/www/vhosts/matxich.com/httpdocs/xxxgallery/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /srv/www/vhosts/matxich.com/httpdocs/xxxgallery/admin/plugins/batch_annotate.php on line 8

Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/share/php') in /srv/www/vhosts/matxich.com/httpdocs/xxxgallery/admin/plugins/batch_annotate.php on line 8


When i  kick to http://matxich.com/xxxgallery/admin/plugins/batch_annotate.php
i have erro
Help me fig


Title: Re: [Mod] Image Annotation (Watermark)
Post by: CeJay on January 30, 2007, 12:30:45 AM
@ vuong184
replace files before editing, and try again.
was not completed to instructions.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: vuong184 on January 30, 2007, 03:40:52 PM
maybe my hosting disable some funtions of php
so can I use other php script?. help me


Title: Re: [Mod] Image Annotation (Watermark)
Post by: CeJay on January 30, 2007, 07:40:57 PM
maybe my hosting disable some funtions of php
so can I use other php script?. help me
Doubt it.

Check your file permissions
Did you do the following?
replace files before editing, and try again.
was not completed to instructions.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: FreeMan.IT on January 31, 2007, 11:59:10 PM
back to the "batch_annotate" problem

i have made this correction to the file

1
2
3
4
5
6
7
8
9
10
11
<?php // PLUGIN_TITLE: Batch Annotate
$nozip 1;
define('IN_CP'1);
// $root_path = (!eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
$root_path = (!eregi("\/plugins\/"$_SERVER['PHP_SELF'])) ? "./../" "./../../";
// define('ROOT_PATH', $root_path);
define('ROOT_PATH''/var/www/vhost/hwugallery.com/home/html/');
define('MEDIA_DIR''data/media');
define('MEDIA_PATH'ROOT_PATH.MEDIA_DIR);
require(
ROOT_PATH.'admin/admin_global.php');
require(
ROOT_PATH.'includes/annotate.php');

but the batch function don't work.. search and process the image but non annotation will made

during upload all works fine

tnx to all

>bYeZ<


Title: Re: [Mod] Image Annotation (Watermark)
Post by: medo007 on February 23, 2007, 05:54:44 PM
I have a solution

Change in batch_annotate.php
1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";

to:
1
$root_path = (!eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../" : "./../../";

Ok, now there is no error but when I want to add my own logo .png file, i enter a name and everything and go to Batch Annotate in ACP, select category and everything and click to start it looks like it applies to all pictures in my gallery but when it's finished, I go to see the results and images are the same - without watermark? Anyone know where is the problem?

Sorry for my bad english!

Tnx


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Hammerbe on March 05, 2007, 01:52:13 AM
das mod ist off,kan bitte jemand das neu uploaden? oder ähnliches anbieten.

mfg


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on March 05, 2007, 03:07:47 PM
@ Hammerbe
... der Downloadlink funktioniert bestens ... !


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Hammerbe on March 05, 2007, 11:34:34 PM
@mawenzi danke dir gestern wars off.

ich bekomme eine fehler meldung.
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/vhosts/web1/httpdocs/4images/includes/annotate.php on line 193




Title: Re: [Mod] Image Annotation (Watermark)
Post by: Hammerbe on March 07, 2007, 06:46:42 PM
kan mir den keiner was sagen?

ich denke es muss irgent wie einen font geben,aber keine ahnung wie? kann jemand bitte Deutsch schreiben wie das gemacht werden soll.

mfg


Title: Re: [Mod] Image Annotation (Watermark)
Post by: KurtW on March 07, 2007, 06:58:02 PM
Hallo,

ich würde sagen, daß die .ttf Datei fehlt, bzw. nicht der richtige Pfad dazu.


Gruß
Kurt


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Hammerbe on March 07, 2007, 08:22:55 PM
das ttf datei habe ich auf 4iamges ordner und der pfad ist http://www.meinseite.de/4images/annotation.ttf  ist doch richtig ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ivan on March 07, 2007, 08:27:22 PM
hi,
z.b mein pfad der schrift schaut so aus

/var/www/vhosts/domain.com/httpdocs/arial.ttf

es muss der absolute pfad angegeben werden!

arial ist die schrift
httpdocs der root ordner

gruss ivan


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Hammerbe on March 07, 2007, 09:03:59 PM
Herzlichen dank jetz habe ich das hinbekommen.



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Hammerbe on March 07, 2007, 09:31:52 PM
wie funkzuniert das überhaupt? muss ich jeden kategori einzäll schreibenlassen? ich habe einen haupt kategori bilder/kinder/urlaub/auto/ und und wähle ich haupt kategorie bilder
Number of images to do per cycle 100
Image ID to start at  schreibt er automatisch 1103
aber es passiert nichts?
 
wähle ich einen kategorie und id direckt wird geschrieben
mfg


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ivan on March 07, 2007, 09:40:18 PM
hallo, ja du musst alle kategorien einzeln watermarken.

als kleiner typ, stelle die bilder auf 1000 ein, dann gehts schneller.
das java script ist ja für die weiterleitung auf die nächste sache.

vergiss danach nicht deinen browser cache zu löschen, denn wenn du vorher
das bild angeschaut hast, ist es noch das alte.

gruss ivan


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Hammerbe on March 07, 2007, 09:59:25 PM
Danke ivan


Title: Re: [Mod] Image Annotation (Watermark)
Post by: asley on March 17, 2007, 06:25:09 AM
i gott error while installing plz tell how to fix it...

(http://i15.tinypic.com/3313hah.jpg)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: CeJay on March 17, 2007, 08:22:37 AM
Did you upload the "ia.sql"?

That seems to be missing


Title: Re: [Mod] Image Annotation (Watermark)
Post by: asley on March 18, 2007, 03:25:20 AM
still error ... but this time new

(http://i18.tinypic.com/33vnn8h.jpg)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Eagle Eye on March 30, 2007, 07:23:38 PM
i am also getting error like:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_use', '0')
Duplicate entry 'annotation_use' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_mode', 'text')
Duplicate entry 'annotation_mode' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_embed_image', 'logo-gd.png')
Duplicate entry 'annotation_embed_image' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_embed_image_opacity', '100')
Duplicate entry 'annotation_embed_image_opacity' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_embed_image_bg', '#000000')
Duplicate entry 'annotation_embed_image_bg' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_font', 'annotate.ttf')
Duplicate entry 'annotation_font' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_font_size', '10')
Duplicate entry 'annotation_font_size' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_use_shadow', '1')
Duplicate entry 'annotation_use_shadow' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_shadow_offset', '1')
Duplicate entry 'annotation_shadow_offset' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_image_quality', '80')
Duplicate entry 'annotation_image_quality' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_text', 'My Fantastic Gallery at http://www.mydomain.com')
Duplicate entry 'annotation_text' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_fill_color', '#BFBFBF')
Duplicate entry 'annotation_fill_color' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_shadow_color', '#000000')
Duplicate entry 'annotation_shadow_color' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_fill_alpha', '0.7')
Duplicate entry 'annotation_fill_alpha' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_shadow_alpha', '0.6')
Duplicate entry 'annotation_shadow_alpha' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_v_alignment', 'top')
Duplicate entry 'annotation_v_alignment' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_h_alignment', 'left')
Duplicate entry 'annotation_h_alignment' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_top_offset', '5')
Duplicate entry 'annotation_top_offset' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_bottom_offset', '5')
Duplicate entry 'annotation_bottom_offset' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_left_offset', '5')
Duplicate entry 'annotation_left_offset' for key 1

DB Error: Bad SQL Query: INSERT INTO 4images_settings () VALUES ('annotation_right_offset', '5')
Duplicate entry 'annotation_right_offset' for key 1


Title: Re: [Mod] Image Annotation (Watermark)
Post by: CeJay on April 02, 2007, 07:59:35 AM
@ asley & maxpaul

Double check that you did everything.
I just did a fresh install then added this mod and I did not get any errors at all.
Something was not done right somewhere, just don't know what direction to point you in.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: oddare on April 08, 2007, 12:04:09 PM
I get this  error message when i try to access PlugIns Batch Annotate:
I think i have installed everything correct


Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/option/public_html/gallery/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/option/public_html/gallery/admin/plugins/batch_annotate.php on line 8

Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/option/public_html/gallery/admin/plugins/batch_annotate.php on line 8



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Benjamin on April 21, 2007, 01:20:18 AM
One question...

Why is the watermark-mod only working when I upload a .jpg file ?
It does not work with a .jpeg file or .gif .bmp .png , etc.!

Can somebody help me with that?

Friendly regards,
Benjamin


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Benjamin on April 23, 2007, 06:56:48 PM
Anyone...? It's working, but only other extensions, except .jpg, aren't working :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: vladmasters on April 24, 2007, 04:26:12 PM
Hi
i get this errors when i hit the Batch Annotate in control panel


[qcode]Warning: main(): Unable to access ./../admin/admin_global.php in /customers/veteranbrannbiler.com/veteranbrannbiler.com/httpd.www/4images/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php): failed to open stream: No such file or directory in /customers/veteranbrannbiler.com/veteranbrannbiler.com/httpd.www/4images/admin/plugins/batch_annotate.php on line 8

Fatal error: main(): Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php') in /customers/veteranbrannbiler.com/veteranbrannbiler.com/httpd.www/4images/admin/plugins/batch_annotate.php on line 8[/qcode]

Someone who can help me? and tell me what to do?


Hi,
I´m have same error. how to fix this?
help me please!

see my gallery: http://paparazzo.4bes.net

 :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Benjamin on May 03, 2007, 11:16:32 AM
One question...

Why is the watermark-mod only working when I upload a .jpg file ?
It does not work with a .jpeg file or .gif .bmp .png , etc.!

Can somebody help me with that?

Friendly regards,
Benjamin


Somebody? :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tomerl on May 06, 2007, 08:38:35 AM
Bei mir wird das batchen seit einiger Zeit nicht mehr automatisch beim uploaden gemacht, warum kann das sein?
Sonst hats auch immer funktioniert.

With me this is not done batchen since some time any more automatically with uploaden,Why can this be? But hats also always functions.

sorry for my english.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ivan on May 06, 2007, 09:56:12 AM
hallo,
hast du mal die einstellungen kontrolliert?

du musst in den einstellungen annotation dies eingestellt haben
Automatische Annotation-Funktion beim Upload auf JA

gruss ivan


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Jacob on May 12, 2007, 05:09:03 AM
I tried bu getting this error:

Warning: rename(PICTURE.jpg,PICTURE.jpg.bak) [function.rename]: Permission denied in /home/mysite/public_html/includes/annotate.php on line 12
Working on data/media/146/PICTURE.jpg file:
Error adding annotation in data/media/146/PICTURE.jpg file.
Image added: PICTURE

Any sol. to this problem??

GD2+ Truetype support is installed and Safemod is off

Please help me  :?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Gwydion on May 23, 2007, 10:43:29 AM
Fragen zum generellen Verständnis:

1. Der Mod schreibt Watermarks für jedes hoch geladene Image, nicht aber in bereits am Server befindliche bzw. nur wenn das eingestellt wird, korrekt? Mir geht's darum, daß ich die bestehenden in der Gallery nicht markieren will, alle zukünftigen dann aber schon.

2. Das Watermark wird Bestandteil des Bildes, sowohl in Thumbnail als auch wenn jemand das Bild runterlädt, korrekt?
Hier geht's mir darum, wie ich in Zukunft dann meine Bilder organisieren muß, z.B. am PC die Originale, in der Gallery die mit Watermark, passiert mal was mit der Gallery, kann ich die Originale wieder hochladen und im Batch neu watermarken lassen. Jedenfalls hab ich das so verstanden.

3. Ist beim Aktivieren der Bilder ein selektives Watermarken möglich?
Ich lade Bilder fast nur per FTP hoch, entweder direkt in die Categories oder eine gesammelte und verteile von dort aus auf die Categories. Beim Aktivieren werden die Bilder aber dann natürlich wie Kraut und Rüben angezeigt, was bisher aber egal war.
Da ich nicht immer alle hochgeladenen Bilder watermarken will, wäre es gut, beim Aktivieren oder spätestens via edit-image dann einstellen zu können, wo ein Watermark gesetzt werden soll. Geht das?


Title: Solve. Re: [Mod] Image Annotation (Watermark)
Post by: holas on June 26, 2007, 03:22:19 PM
I have no erros and the test is ok (black pictures). The problem is that when I upload a photo the watermark doesn't appears. Only appears photo without watermark. What's happen?. Thank you.

I resolve this problem:

- In the Control Panel. In Annotation Settings mark the option "Use auto images annotation on image upload" with "Yes".
- In the Control Panel. In Batch images annotation choice the category to watermak and click "Send".

This options doesn't appears in the instructión os this mods.


Title: Re: Solve. Re: [Mod] Image Annotation (Watermark)
Post by: CeJay on June 26, 2007, 10:11:47 PM
I have no erros and the test is ok (black pictures). The problem is that when I upload a photo the watermark doesn't appears. Only appears photo without watermark. What's happen?. Thank you.

I resolve this problem:

- In the Control Panel. In Annotation Settings mark the option "Use auto images annotation on image upload" with "Yes".
- In the Control Panel. In Batch images annotation choice the category to watermak and click "Send".

This options doesn't appears in the instructión os this mods.

At the very end of the install.doc file it states:
Quote  [Expand]
Go Admin Control Panel and check/modify annotations settings.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: holas on June 27, 2007, 12:55:26 AM
But this option In the Control Panel. In Batch images annotation choice the category to watermak and click "Send" don't appear.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ttluan on July 14, 2007, 12:23:36 PM
I really need the watermark , but you can modify your mod to :

1. the orginal images not change.

2. Not watermark when upload ( it mean , the images show not watermark).

3.When you click the download button, the images have a watermark send to the users.

Thanks


Title: Re: [Mod] Image Annotation (Watermark)
Post by: traxxus on August 02, 2007, 01:07:33 PM
Danke, funzt alles bestens mit 4images 1.7.4  (aber erst nach einigen Schwierigkeiten)  :mrgreen:

Man muss beachten:

-eine Schriftart nach Wahl muss auf den Server geuppt werden
-Pfad in der Datei batch_annotate.php muss absolut sein define('ROOT_PATH', '/home/USER/public_html/4images/');
-Im Admin Panel unter Annotation Einstellungen muss bei Annotaion Schriftart /home/USER/public_html/4images/MEINESCHRIFT.ttf (geht auch meineschrift.otf) sein. Also wieder der absolute Pfad zur Schriftart
-Genau dasselbe gilt für das Wasserzeichen Bild (Pfadangabe)

Nun hab ich  doch noch ein Problem...

wenn ich ein Bild uploade im ADMINPANEL, so ist stimmt die Schriftgrösse des Wasserzeichens. Lade ich aber auf der Hauptseite ein Bild hoch, so wir die Schrift ganz klein. Unleserlich.
Ich muss dazu sagen, ich hab den Auto image resize on upload installiert.

Wie kann ich das lösen ?

Hab jetz aber auch noch ein Designproblem mit der Batch Annotate, siehe:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: beroshima on August 03, 2007, 10:00:48 PM
@mawenzi
der download link schein wieder offline zu sein.
Kannst du das bitte checken?

Danke.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on August 03, 2007, 10:06:17 PM
@beroshima

... gecheckt ... für mich funktioniert der Download ... ;)
... Bitte ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: beroshima on August 04, 2007, 10:14:54 AM
Das ist schon der link oder http://faces.dalnet.ru/files.php?l=english
Bei mir geht da leider nichts  :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ivan on August 04, 2007, 10:38:34 AM
der link geht, lade dir die version hier runter


Title: Re: [Mod] Image Annotation (Watermark)
Post by: beroshima on August 04, 2007, 11:15:21 AM
Vielen dank.  :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mathuatden on August 05, 2007, 07:13:40 AM
How i can add this mod for 4images 1.7.4


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 05, 2007, 02:23:44 PM
Quote  [Expand]
How i can add this mod for 4images 1.7.4

Error message ? Source ? URL to problem ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mathuatden on August 05, 2007, 03:02:41 PM
this is the first i add this mod for 4images 1.7.4 on localhost but unsucessful, please support me


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 05, 2007, 03:27:50 PM
I can help but need to know error message ... what is say for no work ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mathuatden on August 05, 2007, 03:34:31 PM
after add this mod i don't see it work


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 05, 2007, 03:44:39 PM
Quote  [Expand]
after add this mod i don't see it work

That what I ask ... what it do for don't see work ? Error ? If so, please post.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: pda on August 15, 2007, 10:16:02 AM
HowTo use ImageMagick (guess it's an bug fix)
-----------------------------------------------------------------
Some people (including myself as well)  reported that the ImageMagick module doesn't work for this mod! Well, I searched in the internet and found an additional ImageMagick command to overlay two images. http://www.imagemagick.org/Usage/annotating/#wmark_image (http://www.imagemagick.org/Usage/annotating/#wmark_image)

Instead of using the ImageMagick program called "convert" we'll use the program "composite"!

For me it worked fine! Hope one someone's else page as well!  :wink:

PS:
Set the path to ImageMagick in the ControlPanel like :
/usr/bin/

At the moment this fix doesn't support image positioning by pixels! You can just set the position with the horizontal and vertical alignment like:
Vertical:     middle
Horizontal:  left
Position of the watermark image: In the west of the orig. image

Search for:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
}
else {
   $ann_box = @getimagesize($ann_embed_image);
   $ann_text_width=$ann_box[0]; $ann_text_height=$ann_box[1];

   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); break;
   }

   switch ($vertical) {
      case "top"         : $v_offset = $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 - $ann_bottom_offset; break;
   }

Add directly under:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
if ($ann_tool == "im"){
    if ($horisontal == "left" && $vertical == "top"){
      $watermarkImagePos = "NorthWest";
    }
    if ($horisontal == "left" && $vertical == "middle"){
      $watermarkImagePos = "West";
    }
    if ($horisontal == "left" && $vertical == "bottom"){
      $watermarkImagePos = "SouthWest";
    }

    if ($horisontal == "center" && $vertical == "top"){
      $watermarkImagePos = "North";
    }
    if ($horisontal == "center" && $vertical == "middle"){
      $watermarkImagePos = "Center";
    }
    if ($horisontal == "center" && $vertical == "bottom"){
      $watermarkImagePos = "South";
    }

    if ($horisontal == "right" && $vertical == "top"){
      $watermarkImagePos = "NorthEast";
    }
    if ($horisontal == "right" && $vertical == "middle"){
      $watermarkImagePos = "East";
    }
    if ($horisontal == "right" && $vertical == "bottom"){
      $watermarkImagePos = "SouthEast";
    }
  }


Search for:
1
2
3
4

if ($ann_tool == "im") {

if ($use_image) {


Replace the $command line, which is directly under the search result, with the following $command
1
$command = $convert_options['convert_path']."/composite -dissolve  $annotation_embed_image_opacity% -gravity $watermarkImagePos \"$ann_embed_image\" \"$ann_src\" \"$ann_dest\"";


Title: Re: [Mod] Image Annotation (Watermark)
Post by: [M]ike on August 18, 2007, 03:00:47 PM
Hey, the main annotation bit works fine but the "Batch Annotate" PlugIn gives these errors when I try to use it from the Control Panel.
1
2
3
4
5
6
7
Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/messe9/public_html/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/messe9/public_html/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/messe9/public_html/admin/plugins/batch_annotate.php on line 8

Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/messe9/public_html/admin/plugins/batch_annotate.php on line 8

Thanks in advance.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 18, 2007, 03:52:36 PM
Edit define('ROOT_PATH', './../'); line ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: [M]ike on August 18, 2007, 05:59:06 PM
I've tried changing it around; nothing worked.. Don't possibly think you could be slightly more specific do you? (As in what to change it to)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 18, 2007, 06:10:19 PM
Quote  [Expand]
admin/plugins/batch_annotate.php on line 8

Is say right here. :?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: [M]ike on August 18, 2007, 06:53:31 PM
What? Do you know what your talking about (No offence...)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 18, 2007, 06:55:08 PM
Quote  [Expand]
What? Do you know what your talking about (No offence...)

Is your error message from here:

Quote  [Expand]
Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/messe9/public_html/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/messe9/public_html/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/messe9/public_html/admin/plugins/batch_annotate.php on line 8

Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/messe9/public_html/admin/plugins/batch_annotate.php on line 8

Question go to you. If can no find line, how can be me no what talk about ? :?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: [M]ike on August 18, 2007, 06:59:22 PM
I can find the line, if you've actually bothered to read my posts; you'd know I've tried to fix it with no luck.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 18, 2007, 07:06:08 PM
I read. Need modify your ROOT_PATH in batch_annotate.php file.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: [M]ike on August 18, 2007, 07:07:44 PM
1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
What's wrong with it?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 18, 2007, 07:09:40 PM
This might help:

http://www.4homepages.de/forum/index.php?topic=10545.msg55603#msg55603


Title: Re: [Mod] Image Annotation (Watermark)
Post by: [M]ike on August 18, 2007, 07:11:33 PM
Thanks, that fixed my problem.  :)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 18, 2007, 07:12:15 PM
No prob. Next time, please post source error line - fast respawnce. ;)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on August 23, 2007, 01:54:02 PM
Thank you for this Mod SLL!. It works great. You 've done a really good job here  :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: darvid on August 24, 2007, 04:28:30 PM
sauber, danke! hat gleich beim ersten bzw. zweiten versuch geklappt! // great, worked in first try

ich hatte immer die folgende fehlermeldung, da der pfad zu meinem wasserzeichen-BILD nicht korrekt war und anscheinend nur bilder als wasserzeichen im PNG Format verwendet werden können:

Warning: imagesx(): supplied argument is not a valid Image resource in /homepages/6/d96478316/htdocs/photos/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /homepages/6/d96478316/htdocs/photos/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /homepages/6/d96478316/htdocs/photos/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /homepages/6/d96478316/htdocs/photos/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /homepages/6/d96478316/htdocs/photos/includes/annotate.php on line 186


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 24, 2007, 04:35:48 PM
Quote  [Expand]
"supplied argument is not a valid....bla bla"

Yes. PHP Developper say: bla bla in server error message.  Easy problem for help. :roll:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: darvid on August 24, 2007, 04:37:47 PM
updated ( i couldnt remember the lines)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 24, 2007, 04:41:42 PM
And where file error say foreach line: 175 ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: darvid on August 24, 2007, 04:54:56 PM
geeze....i just said, that mine was working almost in the first try. i only set the path to my annotation image wrong, so i got these kind of error messages. this is just for ppl who have the same little problem....


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 24, 2007, 04:56:45 PM
No say which file is ... how can help if no file say ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: darvid on August 24, 2007, 09:48:21 PM
i dont need help, cuz it worked right a way


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 24, 2007, 11:07:30 PM
And solution for others to fix ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: darvid on August 25, 2007, 10:11:17 AM
 :evil: read the posts! DONT BLAST THIS THREAD MORE THAN NECESSARY!

u have to have the right path to your annotation image / font!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on August 25, 2007, 03:48:15 PM
Quote  [Expand]
u have to have the right path to your annotation image / font!

No say where fix right path - you say just do it.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: don_flo on September 08, 2007, 04:59:00 AM
Hi,

erstmal vielen Dank für das Mod.

Installation etc. ohne Zwischenfälle, eigendlich ja auch kein Problem...

Bei mir funktioniert aber nur Batch Annotate, die Automatische Annotation-Funktion beim Upload funktioniert nicht.
Kriege auch keine Fehlermeldung.

Ich kann damit leben, aber es würde mich schon Intressieren woran das liegen könnte?

Viele Grüße,
don


Title: Re: [Mod] Image Annotation (Watermark)
Post by: darvid on September 08, 2007, 10:21:44 AM
i got the same problem:


Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /homepages/6/xxx/htdocs/photos/includes/image_utils.php on line 80

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: './../data/media/3/143066_8643.jpg.bak' is not a valid JPEG file in /homepages/6/xxx/htdocs/photos/includes/image_utils.php on line 80

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /homepages/6/d9xxx/htdocs/photos/includes/annotate.php on line 39

Warning: imagecolorresolvealpha(): supplied argument is not a valid Image resource in /homepages/6/xx/htdocs/photos/includes/annotate.php on line 40

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /homepages/6/xxxhtdocs/photos/includes/annotate.php on line 39

Warning: imagecolorresolvealpha(): supplied argument is not a valid Image resource in /homepages/6/xxxhtdocs/photos/includes/annotate.php on line 40

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /homepages/6/dxxx/htdocs/photos/includes/annotate.php on line 186

Warning: imagejpeg(): supplied argument is not a valid Image resource in /homepages/6/dxxx6/htdocs/photos/includes/annotate.php on line 187

Warning: imagedestroy(): supplied argument is not a valid Image resource in /homepages/6/dxxx6/htdocs/photos/includes/annotate.php on line 188

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /homepages/6/xxx/htdocs/photos/includes/image_utils.php on line 80

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: './../data/media/3/143066_8643.jpg' is not a valid JPEG file in /homepages/6/d96xxxxxxx6/htdocs/photos/includes/image_utils.php on line 80
Working on data/media/3/143066_8643.jpg file:
Copied original file into data/media/3/big/ folder.
Error resizing image.
Error adding annotation in data/media/3/143066_8643.jpg file.
Error creating thumbnail.
Bild erfolgreich hinzugefügt: 143066 8643


Title: Re: [Mod] Image Annotation (Watermark)
Post by: vuong184 on September 09, 2007, 03:44:44 AM
I have a problem

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

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

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 193
 Done Done Done
2 honokaasai7 Done Picture is lower than 482x640
 
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 95

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

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 193
 Done Done Done
3 honokaasai6 Done Picture is lower than 501x640
 
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 95

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

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 193
 Done Done Done
4 honokaasai5 Done Picture is lower than 501x640
 
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 95

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

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 193
 Done Done Done
5 honokaasai4 Done Picture is lower than 501x640
 
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 95

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

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 193
 Done Done Done
6 honokaasai3 Done Picture is lower than 501x640
 
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 95

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

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 193
 Done Done Done
7 honokaasai1 Done Picture is lower than 501x640
 
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 95

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

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 193
 Done Done Done
8 honokaasai2 Done Picture is lower than 501x640
 
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 95

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

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 193
 Done Done Done
9 honokaasai Done Picture is lower than 640x480
 
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/vuong184/public_html/gallery/includes/annotate.php on line 95

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

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

Help me fig error.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: darvid on September 09, 2007, 12:51:44 PM
either the path to your font is wrong or u have forgotten to upload it. please post your settings here!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: vuong184 on September 11, 2007, 07:54:42 PM
This is my setup and link visit my site www.emtoi.info/gallery
(http://thanhniensonla.com/uploads/out.php/i1519_Setupaddtext.JPG)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: darvid on September 12, 2007, 10:29:00 AM
the path to your font is wrong. u need to put in the "FULL PATH" there. open your phpinfo() in ACP (at bottom left) and look for "DOCUMENT_ROOT"


REMOVE UR LINK!!!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kujayhawk on September 18, 2007, 08:45:19 AM
I get this error when I try and run a batch annotation. The image portion works fine, but I do not understand it.

Annotating between image ID 0 and 1:

Processing image Brandon McAnderson from category Toledo -- 9-15-06, image ID 1 >>
Warning: imagettfbbox(): Could not find/open font in /home/content/w/e/s/weswhite7/html/ku/includes/annotate.php on line 95

Warning: imagettftext(): Could not find/open font in /home/content/w/e/s/weswhite7/html/ku/includes/annotate.php on line 192

Warning: imagettftext(): Could not find/open font in /home/content/w/e/s/weswhite7/html/ku/includes/annotate.php on line 193
OK

Finished!


I know I have the file path for the font right, but I can not figure it out.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: darvid on September 18, 2007, 09:17:36 AM
same here, path is WRONG! post it here or read the instructions!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on September 18, 2007, 01:23:47 PM
Please post PHP code for where is use for import font ... I check ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kujayhawk on September 18, 2007, 05:09:34 PM
I got it working now. I had mistyped one letter in the path. Grr. Works great now. Just go to your phpinfo() in the admin panel and get your home directory path and go from there.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Caiapfas on September 25, 2007, 07:14:31 AM
I installed the entire script without an issue, the site works, uploads work, but the script is not adding the watermark, no errors.
just doesn't add the watermark. I have full path set to the font. worked a few times, but as i changed settings and kept testing it stopped working


Title: Re: [Mod] Image Annotation (Watermark)
Post by: baumwolle on October 11, 2007, 03:37:37 PM
Hi,

erstmal vielen Dank für das Mod.

Installation etc. ohne Zwischenfälle, eigendlich ja auch kein Problem...

Bei mir funktioniert aber nur Batch Annotate, die Automatische Annotation-Funktion beim Upload funktioniert nicht.
Kriege auch keine Fehlermeldung.

Ich kann damit leben, aber es würde mich schon Intressieren woran das liegen könnte?

Viele Grüße,
don

hast du bereits eine Lösung  gefunden ? Habe dasselbe Problem


Title: Re: [Mod] Image Annotation (Watermark)
Post by: baumwolle on October 12, 2007, 05:13:33 PM
hallo zusammen,


ich habe folgendes Problem. Und zwar lief alles bisher bei der Installation perfekt. Keinerlei Fehlermeldung o.ä. nur wird jetzt eben beim Upload kein Watermark angezeigt. Egal ob Text oder Bild. GD ist laut phpinfo auch aktiviert. und die Rootpfade zu Bild und Schriftart stimmen auch alle.
Woran kann das denn dann noch liegen. Ich habe auch das Forum hier bis Seite 25 und die letzten 5 gelesen aber kam zu keinem Ergebnis. Auch die Tatsache, dass es nur bei registrierte Usern gehen würde habe ich versucht, mit negativen Ergebnis.

i got the following problem. everything was perfect at the installation, without any error messages. but i want to upload a pic now, nothing happens. no annotations were added. No pic and no text. also the root path is correct and GD is enabled.
i´ve read the pages 1-25 and the last five pages without a result.

can anybody help me  ?

Bild habe ich mal angehängt/Pic is attached


Title: No problem and no work with this mod
Post by: mathuatden on October 15, 2007, 05:40:44 AM
http://www.4homepages.de/forum/index.php?topic=13719.0
I was try to hack this modmany times but not work
Screen Shoot IN My ACP
(http://worldoflady.com/1.JPG)
(http://worldoflady.com/2.JPG)
(http://worldoflady.com/3.JPG)
(http://worldoflady.com/4.JPG)
And result is not work
Example
http://worldoflady.com/details.php?image_id=494
Help me
Thanks


Title: Re: No problem and no work with this mod
Post by: KurtW on October 15, 2007, 05:52:44 AM
Hi,

first: please post your problem always in the Mod- thread about your problem....
second: i can't see a problem, the watermark is on the bottom of the image, or is this the copyright from the image and not your watermark?

Kurt


Title: Re: No problem and no work with this mod
Post by: mathuatden on October 15, 2007, 07:54:37 AM
I don't see my gallery warn error but it not work when i try to make copyright from the image but unsuccessful, hix


Title: Re: No problem and no work with this mod
Post by: SLL on October 17, 2007, 09:35:43 AM
I was try to hack this modmany times but not work

it's evident...  png image set without path at all; font file set by url, but full path has to be set.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mathuatden on October 18, 2007, 04:15:00 AM
This is my error after hack this mod
When use batch by images
(http://worldoflady.com/anh.jpg)
When use batch by text
(http://worldoflady.com/test.jpg)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on October 18, 2007, 08:24:31 PM
Please use this test:

Quote  [Expand]
Before installing this MOD!

from 1st post before install this MOD. See black box ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mathuatden on October 19, 2007, 04:16:31 AM
You can view  my test link here
http://worldoflady.com/banquyen.php
I test and everything is Ok why it not work


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on October 19, 2007, 04:42:49 AM
Ok so please read my signature for step 6 and post result.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mathuatden on October 19, 2007, 12:27:29 PM
Can you hack this mod for 4images1.7.4 and send me source code after you hack this mod,please?
Thanks you? I need this mod very much.
Good luck.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on October 19, 2007, 01:09:36 PM
Only if answer my post before.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mathuatden on October 19, 2007, 05:07:50 PM
I can't answer your question because my skill about web design is very poor ( I only learn web design on the web no in school). If you can let help me,plz. If I can found error I will fix it but I can't  found cause why it not work. Thanks you to help me everywhere, everytime in this forum.
Good luck  :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on October 19, 2007, 07:06:09 PM
In ACP - > phpinfo() - see PHP version and see 4images version on top header of ACP.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mathuatden on October 20, 2007, 02:50:22 AM
I Used 4images 1.7.4 and this is the my PHP Info
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
PHP Version 4.3.11

System  FreeBSD hostingprod.com 4.11-YAHOO-20061130 FreeBSD 4.11-YAHOO-20061130 #0: i386 
Build Date  Sep 22 2005 14:19:27 
Configure Command  './configure' '--prefix=/usr' '--enable-fastcgi' '--with-config-file-path=/usr/lib/php' '--enable-memory-limit' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-mbstring=all' '--enable-mbregex' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-gdbm' '--with-gettext' '--with-iconv' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-tiff-dir' '--with-xpm-dir=/usr/X11R6' '--with-zlib-dir' '--with-ttf' '--with-freetype-dir' '--with-t1lib' '--enable-gd-native-ttf' '--with-mcrypt' '--with-mhash' '--with-mime-magic' '--with-ming' '--with-openssl' '--with-pspell' '--with-regex' '--enable-wddx' '--with-xmlrpc' '--enable-xslt' '--with-xslt-sablot' '--with-zip' '--disable-posix' 
Server API  CGI/FastCGI 
Virtual Directory Support  disabled 
Configuration File (php.ini) Path  /usr/lib/php/php.ini 
PHP API  20020918 
PHP Extension  20020429 
Zend Extension  20021010 
Debug Build  no 
Thread Safety  disabled 
Registered PHP Streams  php, http, ftp, https, ftps, compress.zlib 

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies 


--------------------------------------------------------------------------------

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags On On
auto_append_file common_footer.inc common_footer.inc
auto_prepend_file common_header.inc common_header.inc
browscap /usr/lib/php/browscap.ini /usr/lib/php/browscap.ini
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions leak, symlink leak, symlink
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log /logs/scripts.log /logs/scripts.log
error_prepend_string no value no value
error_reporting 7 no value
expose_php Off Off
extension_dir /usr/lib/php/extensions /usr/lib/php/extensions
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/include:/usr/lib/php .:/include:/usr/lib/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 90 90
max_input_time -1 -1
memory_limit 20M 20M
open_basedir no value no value
output_buffering 1 1
output_handler no value no value
post_max_size 50M 50M
precision 14 14
register_argc_argv On On
register_globals On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i 
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors On On
unserialize_callback_func no value no value
upload_max_filesize 50M 50M
upload_tmp_dir /tmp /tmp
user_dir no value no value
variables_order no value no value
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On


bcmath
BCMath support  enabled 


calendar
Calendar support  enabled 


ctype
ctype functions  enabled 


curl
CURL support  enabled 
CURL Information  libcurl/7.12.0 OpenSSL/0.9.6g zlib/1.1.3 


dba
DBA support  enabled 
Supported handlers  gdbm cdb cdb_make inifile flatfile 


domxml
DOM/XML  enabled 
DOM/XML API Version  20020815 
libxml Version  20623 
HTML Support  enabled 
XPath Support  enabled 
XPointer Support  enabled 
DOM/XSLT  enabled 
libxslt Version  1.0.29 
libxslt compiled against libxml Version  2.5.6 


exif
EXIF Support  enabled 
EXIF Version  1.4 $Id: exif.c,v 1.118.2.37 2005/03/22 22:07:03 edink Exp $ 
Supported EXIF Version  0220 
Supported filetypes  JPEG,TIFF 


gd
GD Support  enabled 
GD Version  bundled (2.0.28 compatible) 
FreeType Support  enabled 
FreeType Linkage  with freetype 
T1Lib Support  enabled 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XBM Support  enabled 


gettext
GetText Support  enabled 


iconv
iconv support  enabled 
iconv implementation  unknown 
iconv library version  unknown 

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1


mbstring
Multibyte Support  enabled 
Japanese support  enabled 
Simplified chinese support  enabled 
Traditional chinese support  enabled 
Korean support  enabled 
Russian support  enabled 
Multibyte (japanese) regex support  enabled 

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.substitute_character no value no value


mcrypt
mcrypt support enabled
version  >= 2.4.x 
Supported ciphers  arcfour arcfour blowfish-compat blowfish-compat blowfish blowfish cast-128 cast-128 cast-256 cast-256 des des enigma enigma gost gost loki97 loki97 panama panama rc2 rc2 rijndael-128 rijndael-128 rijndael-192 rijndael-192 rijndael-256 rijndael-256 safer-sk128 safer-sk128 safer-sk64 safer-sk64 saferplus saferplus serpent serpent threeway threeway tripledes tripledes twofish twofish wake wake xtea xtea 
Supported modes  cbc cbc cfb cfb ecb ecb ncfb ncfb nofb nofb ofb ofb stream stream 

Directive Local Value Master Value
mcrypt.algorithms_dir no value no value
mcrypt.modes_dir no value no value


mhash
MHASH support  Enabled 
MHASH API Version  20011020 


mime_magic
mime_magic support enabled

Directive Local Value Master Value
mime_magic.magicfile /usr/share/misc/magic.mime /usr/share/misc/magic.mime


ming
Ming SWF output library  enabled 
Version  0.2a 


mysql
MySQL Support enabled
Active Persistent Links  0 
Active Links  1 
Client API version  3.23.49 
MYSQL_MODULE_TYPE  builtin 
MYSQL_SOCKET  /tmp/mysql.sock 
MYSQL_INCLUDE  no value 
MYSQL_LIBS  no value 

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off


openssl
OpenSSL support  enabled 
OpenSSL Version  OpenSSL 0.9.6b 9 Jul 2001 


overload
User-Space Object Overloading Support  enabled 


pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled 
PCRE Library Version  4.5 01-December-2003 


pspell
PSpell Support  enabled 


session
Session Support  enabled 
Registered save handlers  files user 

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name sessionid PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off


standard
Regex Library  Bundled library enabled 
Dynamic Library Support  enabled 
Path to sendmail  /usr/sbin/sendmail -t -i 

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,form=,fieldset= a=href,area=href,frame=src,form=,fieldset=
user_agent no value no value


tokenizer
Tokenizer Support  enabled 


wddx
WDDX Support enabled
WDDX Session Serializer  enabled 


xml
XML Support  active 
XML Namespace Support  active 
EXPAT Version  1.95.6 


xmlrpc
core library version  xmlrpc-epi v. 0.51 
php extension version  0.51 
author  Dan Libby 
homepage  http://xmlrpc-epi.sourceforge.net 
open sourced by  Epinions.com 


xslt
XSLT support  enabled 
Backend  Sablotron 
Sablotron Version  1.0.2 
Sablotron Information  Cflags: -g -O2 Libs: -L/usr/local/lib -liconv -lexpat Prefix: /usr/local 


zip
Zip support  enabled 


zlib
ZLib Support  enabled 
Compiled Version  1.1.4 
Linked Version  1.1.3 

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value


Additional Modules
Module Name


Environment
Variable Value
LD_LIBRARY_PATH  /usr/lib 
ORD  8 
PHP_VERSION  no value 
MYSQL_HOST  mysql-12-3-a 
LD_PRELOAD  /usr/lib/libygcWrap.so 
MYSQL_PORT  14318 
PHP_FCGI_CHILDREN  2 
REAL_ROOT  / 
SIG  a9HneodiWM7Qc56odd663Q-- 
PATH  /usr/bin:/bin 
DOCUMENT_ROOT  / 


PHP Variables
Variable Value
PHP_SELF  /admin/phpinfo.php 
_REQUEST["sessionid"] 63726b2b550448aeec8fd3b56c9dbe9c
_REQUEST["4images_lastvisit"] 1192840640
_REQUEST["4images_userid"] 1
_REQUEST["BX"] 5e9sivl3hij9a&b=3&s=8k
_REQUEST["HIM_on_off"] 1
_REQUEST["HIM_method"] 0
_REQUEST["HIM_ckspell"] 1
_REQUEST["HIM_daucu"] 1
_COOKIE["sessionid"] 63726b2b550448aeec8fd3b56c9dbe9c
_COOKIE["4images_lastvisit"] 1192840640
_COOKIE["4images_userid"] 1
_COOKIE["BX"] 5e9sivl3hij9a&b=3&s=8k
_COOKIE["HIM_on_off"] 1
_COOKIE["HIM_method"] 0
_COOKIE["HIM_ckspell"] 1
_COOKIE["HIM_daucu"] 1
_SERVER["FCGI_ROLE"] RESPONDER
_SERVER["HTTP_ACCEPT"] */*
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_COOKIE"] sessionid=63726b2b550448aeec8fd3b56c9dbe9c; 4images_lastvisit=1192840640; 4images_userid=1; BX=5e9sivl3hij9a&b=3&s=8k; HIM_on_off=1; HIM_method=0; HIM_ckspell=1; HIM_daucu=1
_SERVER["HTTP_HOST"] worldoflady.com
_SERVER["HTTP_REFERER"] http://worldoflady.com/admin/index.php?action=nav
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
_SERVER["PATH"] /usr/bin:/bin
_SERVER["REDIRECT_STATUS"] 200
_SERVER["REDIRECT_URL"] /admin/phpinfo.php
_SERVER["REMOTE_ADDR"] 58.186.70.215
_SERVER["REMOTE_PORT"] 38223
_SERVER["SCRIPT_FILENAME"] /admin/phpinfo.php
_SERVER["SCRIPT_URI"] http://worldoflady.com/admin/phpinfo.php
_SERVER["SCRIPT_URL"] /admin/phpinfo.php
_SERVER["SERVER_NAME"] worldoflady.com
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SOFTWARE"] Apache/1.3.33 (Unix) FrontPage/5.0.2.2510 mod_fastcgi/2.4.2
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /admin/phpinfo.php
_SERVER["SCRIPT_NAME"] /admin/phpinfo.php
_SERVER["LD_LIBRARY_PATH"] /usr/lib
_SERVER["ORD"] 8
_SERVER["PHP_VERSION"] no value
_SERVER["MYSQL_HOST"] mysql-12-3-a
_SERVER["LD_PRELOAD"] /usr/lib/libygcWrap.so
_SERVER["MYSQL_PORT"] 14318
_SERVER["PHP_FCGI_CHILDREN"] 2
_SERVER["REAL_ROOT"] /
_SERVER["SIG"] a9HneodiWM7Qc56odd663Q--
_SERVER["DOCUMENT_ROOT"] /
_SERVER["PHP_SELF"] /admin/phpinfo.php
_SERVER["argv"] Array
(
)
 
_SERVER["argc"] 0
_ENV["FCGI_ROLE"] RESPONDER
_ENV["HTTP_ACCEPT"] */*
_ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
_ENV["HTTP_ACCEPT_LANGUAGE"] en-us
_ENV["HTTP_CONNECTION"] Keep-Alive
_ENV["HTTP_COOKIE"] sessionid=63726b2b550448aeec8fd3b56c9dbe9c; 4images_lastvisit=1192840640; 4images_userid=1; BX=5e9sivl3hij9a&b=3&s=8k; HIM_on_off=1; HIM_method=0; HIM_ckspell=1; HIM_daucu=1
_ENV["HTTP_HOST"] worldoflady.com
_ENV["HTTP_REFERER"] http://worldoflady.com/admin/index.php?action=nav
_ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
_ENV["PATH"] /usr/bin:/bin
_ENV["REDIRECT_STATUS"] 200
_ENV["REDIRECT_URL"] /admin/phpinfo.php
_ENV["REMOTE_ADDR"] 58.186.70.215
_ENV["REMOTE_PORT"] 38223
_ENV["SCRIPT_FILENAME"] /admin/phpinfo.php
_ENV["SCRIPT_URI"] http://worldoflady.com/admin/phpinfo.php
_ENV["SCRIPT_URL"] /admin/phpinfo.php
_ENV["SERVER_NAME"] worldoflady.com
_ENV["SERVER_PORT"] 80
_ENV["SERVER_SOFTWARE"] Apache/1.3.33 (Unix) FrontPage/5.0.2.2510 mod_fastcgi/2.4.2
_ENV["GATEWAY_INTERFACE"] CGI/1.1
_ENV["SERVER_PROTOCOL"] HTTP/1.1
_ENV["REQUEST_METHOD"] GET
_ENV["QUERY_STRING"] no value
_ENV["REQUEST_URI"] /admin/phpinfo.php
_ENV["SCRIPT_NAME"] /admin/phpinfo.php
_ENV["LD_LIBRARY_PATH"] /usr/lib
_ENV["ORD"] 8
_ENV["PHP_VERSION"] no value
_ENV["MYSQL_HOST"] mysql-12-3-a
_ENV["LD_PRELOAD"] /usr/lib/libygcWrap.so
_ENV["MYSQL_PORT"] 14318
_ENV["PHP_FCGI_CHILDREN"] 2
_ENV["REAL_ROOT"] /
_ENV["SIG"] a9HneodiWM7Qc56odd663Q--
_ENV["DOCUMENT_ROOT"] /


PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

Help me hack this mod and send me source after hack mod, thanks you thunderstricke


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on October 20, 2007, 11:54:00 AM
Oh ... this is old spec.  8O :mrgreen:

Upgrade PHP version is 1st solution.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kai on November 27, 2007, 10:12:21 AM
Here you see a video tutorial of the installation of this Mod:

http://www.asian-lady.org/tutors/annotation2-mod/annotation2-mod.html


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ClickyMouse on December 03, 2007, 02:34:42 AM
I have a problem with this MOD, it doesn't work...
When I try yo use Batch Annotate I get this message:
1
2
3
4
5
Warning: require(./../../admin_global.php) [function.require]: failed to open stream: No such file or directory in /www/110mb.com/g/r/u/p/o/s/c/o/gruposcout508/htdocs/4images/admin/plugins/batch_annotate.php on line 8

Warning: require(./../../admin_global.php) [function.require]: failed to open stream: No such file or directory in /www/110mb.com/g/r/u/p/o/s/c/o/gruposcout508/htdocs/4images/admin/plugins/batch_annotate.php on line 8

Fatal error: require() [function.require]: Failed opening required './../../admin_global.php' (include_path='.:/usr/share/php') in /www/110mb.com/g/r/u/p/o/s/c/o/gruposcout508/htdocs/4images/admin/plugins/batch_annotate.php on line 8

And also, when I upload an image, the watermark doesn't appear, and I get another message:
1
2
3
4
5
6
7
8
9
Warning: imagesx(): supplied argument is not a valid Image resource in /www/110mb.com/g/r/u/p/o/s/c/o/gruposcout508/htdocs/4images/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /www/110mb.com/g/r/u/p/o/s/c/o/gruposcout508/htdocs/4images/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /www/110mb.com/g/r/u/p/o/s/c/o/gruposcout508/htdocs/4images/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /www/110mb.com/g/r/u/p/o/s/c/o/gruposcout508/htdocs/4images/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /www/110mb.com/g/r/u/p/o/s/c/o/gruposcout508/htdocs/4images/includes/annotate.php on line 186


Here you got a Screen of my annotation configuration:
(http://img84.imageshack.us/img84/6668/annotationrl8.th.jpg) (http://img84.imageshack.us/img84/6668/annotationrl8.jpg)

My watermark adress is: http://gruposcout508.com.ar/navegacion/4images/watermark.png (http://gruposcout508.com.ar/navegacion/4images/watermark.png), you can try it, and you will see that the image is in that location.

Thanks in advance!


PD: Sorry for my poor english...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: gokhanbilir on December 04, 2007, 01:31:09 AM
Hi.Good night. I have problem;

Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/.nola/djdamar/oresim.com/admin/plugins/batch_annotate.php on line 8

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.nola/djdamar/oresim.com/admin/plugins/batch_annotate.php on line 8

what is a problem ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: gokhanbilir on December 04, 2007, 01:38:25 AM
I'm sorry Idon't search  :roll:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ClickyMouse on December 04, 2007, 03:53:16 AM
Problem solved.
Thanks.


Title: wrong file size
Post by: orb4 on December 11, 2007, 01:11:48 AM
If I save a jpeg file with a graphic software , the pic is for exemple 100kb.
If I upload this picture to 4images galery with the upload module, the picture is about 250 kb !! (its written in the pic info on the galery and also if I take a look on file size with my ftp soft)
It's amazing! I don't think this problem existed before.
What do you think it could be done to solve this??  :(


Title: Re: wrong file size
Post by: Nicky on December 11, 2007, 11:07:26 AM
hi,

pls. show us this and a test account for download possibility
thx


Title: Re: wrong file size
Post by: orb4 on December 11, 2007, 12:27:40 PM
ok
http://world99.free.fr
test account :
login : 4images
pass : 4images

I created the category named "TEST CATEGORY"


Title: Re: wrong file size
Post by: Nicky on December 11, 2007, 12:40:57 PM
hi..

you are using something with GD at upload..

http://www.nicky.net/HarleyDavidson-Ifugao.jpg (ORIGINAL File with EXIF tags)
on your server http://world99.free.fr/data/media/29/HarleyDavidson-Ifugao.jpg (EXIF is removed at upload and file is tripple sized in kb)

[edit]
watermark at upload i think


Title: Re: wrong file size
Post by: orb4 on December 11, 2007, 12:48:26 PM
hello Nicky!

-yes i USE gd BIBLIOTEK option in config panel
-i removed exif info

-Can you tell me why file is tripple sized in kb ?? :?


Title: Re: wrong file size
Post by: Nicky on December 11, 2007, 01:17:13 PM
watermark at upload

picture will be manipulated by this mod > http://www.4homepages.de/forum/index.php?topic=13719.0
[edit]

okay i merged this 2 threads


Title: Re: [Mod] Image Annotation (Watermark)
Post by: lqbaoanh on December 12, 2007, 02:25:34 AM
You should set this "Resulting image quality (in per cent)" in "Annotation Settings" to around 75 - 80. This will fix.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: KurtW on December 12, 2007, 05:50:58 AM
Hi orb4,

i miss on your page:
http://world99.free.fr (http://world99.free.fr)
the copyright from the template owner...
Have you bought it?


KurtW


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on December 12, 2007, 09:17:39 AM
Hi Kurt,you can sleep on both ears now. Cright is ok.


You should set this "Resulting image quality (in per cent)" in "Annotation Settings" to around 75 - 80. This will fix.

Thank you for the idea lqbaoanh.
So I made a test with 3 pics uploaded (3 different sizes) and with different "Resulting image quality" in % :

PIC 1: original Size=  10 kb -------------- with "Resulting image quality"= 100%------------ Size after upload=48,4kb       
PIC 1: original Size=  10 kb -------------- with "Resulting image quality"=   25%------------ Size after upload=10,7kb       
PIC 2: original Size=  98 kb -------------- with "Resulting image quality"= 100%------------ Size after upload=133kb       
PIC 2: original Size=  98 kb -------------- with "Resulting image quality"=   98%------------ Size after upload= 73kb
PIC 3: original Size=200 kb -------------- with "Resulting image quality"= 100%------------ Size after upload=358kb       
PIC 3: original Size=200 kb -------------- with "Resulting image quality"=   95%------------ Size after upload= 197kb
       

you can see that I cannot set "Resulting image quality" in only one paramater. It depends on each pic size.

maybe i can supress this "Resulting image quality" option in Watermark mod. But I do nnot really know how to...any ideas?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on December 17, 2007, 12:49:27 PM
Hello,

I would like to remove the "Resulting image quality" function that compress pic at upload.
I tried to but I got problems to solve it.
Ive tried to remove all thes lines below, or tried leave some functions, but I always got the same problem at the upload:
If pic got the right size, there is not the watermark on, or the contrary
PLEASE HELP ME thank you.


-------------------------------------------
OPEN admin/ann_settings.php
-------------------------------------------

LINE 180: remove
show_setting_row("annotation_image_quality");

-------------------------------------------
OPEN includes/annotate.php
-------------------------------------------

LINE 54:
$ann_image_quality = $config['annotation_image_quality'];

LINE 145 :
$command = $convert_options['convert_path']." -quality ".$ann_image_quality." -draw \"image CopyOpacity $h_offset,$v_offset 0,0 $ann_embed_image\" \"$ann_src\" \"$ann_dest\"";

LINE 150 :
$command = $convert_options['convert_path']." -quality ".$ann_image_quality." -antialias -density 90 -font '$ann_font_path' -fill '$ann_fill_color' -pointsize $ann_font_size -draw \"text $h_offset,$v_offset '$ann_text'\"  \"$ann_src\" \"$ann_dest\"";

LINE 160 :
$command = $convert_options['convert_path']." -quality ".$ann_image_quality." -antialias -density 90 -font '$ann_font_path' -fill '$ann_fill_color' -pointsize $ann_font_size -draw \"text $h_offset,$v_offset '$ann_text'\"  \"$file_shd\" \"$ann_dest\"";

LINE 209 :
$command .= $convert_options['convert_path']."/pnmtojpeg -quiet -quality=".$ann_image_quality." -optimize > ".$ann_dest;

LINE 224 :
$command .= $convert_options['convert_path']."/pnmtojpeg -quiet -quality=".$ann_image_quality." -optimize > ".$ann_dest;


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on December 17, 2007, 03:25:27 PM
you do not have to remove anything but -quality ".$ann_image_quality." from each line you find it

thought, i would not recomment to remove it, learn a bit about jpeg compression, set the quality to 70-80% and relax  :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on December 17, 2007, 06:57:53 PM
Hi SLL,
I've done what you told:

-------------------------------------------
OPEN admin/ann_settings.php
-------------------------------------------

LINE 180: remove
show_setting_row("annotation_image_quality");

-------------------------------------------
OPEN includes/annotate.php
-------------------------------------------
remove : -quality ".$ann_image_quality."  in

LINE 145:
 $command = $convert_options['convert_path']." -quality ".$ann_image_quality." -draw \"image CopyOpacity $h_offset,$v_offset 0,0 $ann_embed_image\" \"$ann_src\" \"$ann_dest\"";

LINE 150:
 $command = $convert_options['convert_path']." -quality ".$ann_image_quality." -antialias -density 90 -font '$ann_font_path' -fill '$ann_fill_color' -pointsize $ann_font_size -draw \"text $h_offset,$v_offset '$ann_text'\"  \"$ann_src\" \"$ann_dest\"";

LINE 160:
$command = $convert_options['convert_path']." -quality ".$ann_image_quality." -antialias -density 90 -font '$ann_font_path' -fill '$ann_fill_color' -pointsize $ann_font_size -draw \"text $h_offset,$v_offset '$ann_text'\"  \"$file_shd\" \"$ann_dest\"";

---------------------------

But pic size is 98ko and once it is uploaded it is 50ko. What's wrong with this?



Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on December 17, 2007, 09:41:08 PM
But pic size is 98ko and once it is uploaded it is 50ko. What's wrong with this?

just nothing wrong with it :lol:        are you always reading only first line of message?  :roll:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on December 17, 2007, 11:25:56 PM
ok, no stress for me, but is there a way to fix this to get exact pic size info at upload? Is it even possible ?  (dont tell me to remove watermark mod to please  :))


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on December 18, 2007, 01:06:57 PM
ok, no stress for me, but is there a way to fix this to get exact pic size info at upload? Is it even possible ?  (dont tell me to remove watermark mod to please  :))

yeeeah!! just remove watermark mod, and you pics will stay intact!  :P

actually, you are combining two pics together - original, and another one with text... then why the hell the final image size should be the same as original???


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on December 18, 2007, 07:57:46 PM
only because uploaded pics size is almost double sized. it is not very significative in little sizes but imagine you got a 1mo pic, at upload it is almost 2Mo for a 70-80%.

 But even if it is a really good mod, thanks to you,  i'm gonna stop here and try instead of a watermark software.
ciao.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: SLL on December 19, 2007, 01:43:45 PM
this "double sized" has nothing to do with the mod, this is just the way gd lib is handling your image. the only parameter responsible for this is "quality", which is image compression ratio. i have no idea, if there's any possibility to obtain the original image compression value and set output the same on fly. honestly, i doubt it.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on January 03, 2008, 06:49:52 PM
hi,
I got another problem:
when I upload a pic , after I can see the watermark.
But if I edit the pic and reupload it (with browse button)  there is no watermark after !
If I edit this pic changing name, description, etc, after the watermark is still present.

normally does watermark works on "edit /re upload pic" ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on January 03, 2008, 06:54:11 PM
I check in annotate.php file. No code for say if file exist or no exist. Is problem for re-upload file with edit. ;)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on January 04, 2008, 09:02:50 PM
I check in annotate.php file. No code for say if file exist or no exist. Is problem for re-upload file with edit. ;)

What do you mean??
Should I consider that my problem here could be solved by developping the corresponding "coding" so that watermark show correctly on re-uploaded pics?
can you confirm it is a "bug"?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: thunderstrike on January 04, 2008, 09:29:08 PM
Quote  [Expand]
can you confirm it is a "bug"?

Is no bug. Is a miss-routine check. ;)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on January 06, 2008, 12:22:17 PM


On my own I don't really know how to introduce this new part of code in annotate.php and in another files and in database?

Which files must be modified? : only annotate.php?   


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on January 07, 2008, 06:05:02 PM
UP ! could SLL or anyone give support for my question please?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nicky on January 07, 2008, 08:28:37 PM
orb4, i don't get your question...
hi,
I got another problem:
when I upload a pic , after I can see the watermark.
But if I edit the pic and reupload it (with browse button)  there is no watermark after !
If I edit this pic changing name, description, etc, after the watermark is still present.

normally does watermark works on "edit /re upload pic" ?

i don't know what do you mean.. please show examples


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on January 07, 2008, 10:21:46 PM
Hello Nicky   :D
 my problem is:
if I EDIT an uploaded pic and REUPLOAD it (with browse button)  there is no more watermark after !

in annotate.php file there is no code that says if file exists or no exists.

I'm not good enought at php to write this patch and fix this mis-routine by myself. Please I ask for your support.
Which files must be modified? : only annotate.php?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nicky on January 07, 2008, 10:27:06 PM
Hello Nicky   :D
 my problem is:
if I EDIT an uploaded pic and REUPLOAD it (with browse button)  there is no more watermark after !

I'm not good enought at php to write this patch and fix this mis-routine by myself. Please I ask for your support.
Which files must be modified? : only annotate.php?


i do not understand this..
WHERE and HOW are you editing your picture? on your PC?

and are you REuploading this picture to your gallery again?

i'm little bit confused...

show me example on your site.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: orb4 on January 07, 2008, 10:31:41 PM
if I upload a pic to the gallery i can see the watermark on it, ok.

If I go the details page of the pic and EDIT the pic, if I REUPLOAD the pic from my computer (same pic size)  there is no more watermark after !

do you understand now?




Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nicky on January 07, 2008, 10:42:48 PM
okay.. i understand now.
in admin area you reuploading the picture.

normal user can't reupload

maybe SSL can help


Title: Re: [Mod] Image Annotation (Watermark)
Post by: maineyak on February 21, 2008, 11:27:19 PM
Here's what I get when I try to run the batch annotate:
Quote  [Expand]
No category selected, nothing to annotate.

I think it's an error in the dropdown menu, does anyone have a fix for this?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: maineyak on February 23, 2008, 02:36:13 AM
Would there be anyway to set it so It doesn't watermark images under a certain size? I don't wanna watermark small images.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: fireleaf2 on February 28, 2008, 10:34:58 PM
hello ich bekom immer diesen fehler

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /var/www/web12/html/love/gallerie2/includes/annotate.php on line 95

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/web12/html/love/gallerie2/includes/annotate.php on line 192

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/web12/html/love/gallerie2/includes/annotate.php on line 193

wenn ich versuch ein bild hochzuladen hab alles nach der anleitung gemacht


##############################################



Hi, I always get these errors

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /var/www/web12/html/love/gallerie2/includes/annotate.php on line 95

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/web12/html/love/gallerie2/includes/annotate.php on line 192

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/web12/html/love/gallerie2/includes/annotate.php on line 193





When I try to upload a picture did everything according to the instructions made


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on February 29, 2008, 12:22:14 AM
... der Pfad zu deinem Font stimmt offensichtlich nicht ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: fireleaf2 on February 29, 2008, 12:42:59 AM
... der Pfad zu deinem Font stimmt offensichtlich nicht ...

man bin ich doof

ich danke dir für deine schnelle hilfe nun klappt es.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on February 29, 2008, 12:51:11 AM

...  :mrgreen: ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Svenni70 on March 13, 2008, 02:42:43 AM
Hello

i have install this mod and have a question,in my admin site when i push on "batsh annotate" i dont se anything only a white screen ?
anyone so have a answer for that thanks for any help

Svenni


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Pedrocas on March 13, 2008, 07:27:44 PM
Hi,

I've installed this mod right according to the install file and now when I go to ACP and click on Batch Annotate I get the following error:

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/gruposti/public_html/eurotrucks/admin/plugins/batch_annotate.php on line 8

Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /home/gruposti/public_html/eurotrucks/admin/plugins/batch_annotate.php on line 8

Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/gruposti/public_html/eurotrucks/admin/plugins/batch_annotate.php on line 8

Any advice?
Thanks in advance,


Title: Re: [Mod] Image Annotation (Watermark)
Post by: VIRA7oNET on March 24, 2008, 04:59:58 AM
hello, i get the same error as well.

Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/diamond1/public_html/dan/rofl/admin/plugins/batch_annotate.php on line 8

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/diamond1/public_html/dan/rofl/admin/plugins/batch_annotate.php on line 8

any helps?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: batu544 on March 25, 2008, 04:59:45 AM
HI All,
           I have installed this MOD long back and it was working fine ..  :D , but now onwards its not working ... I don't know what is the problem ? Can anyone help me on this ?


Thanks.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: DilnüvaZ on March 31, 2008, 08:37:57 AM
i installed it and i went to the admin cp  i click on batch_annotate.php I get the following error:

Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/nuvanda/public_html/deneme/admin/plugins/batch_annotate.php on line 8

Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/nuvanda/public_html/deneme/admin/plugins/batch_annotate.php on line 8

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nuvanda/public_html/deneme/admin/plugins/batch_annotate.php on line 8

why? what can i do?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nicky on March 31, 2008, 09:30:53 AM
hi,

change in batch_annonate.php

line
1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";

to

1
$root_path = (!eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../" : "./../../";

working now?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: DilnüvaZ on March 31, 2008, 12:09:33 PM
thanks a lot ıts working  but the writing is not on the image :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nicky on March 31, 2008, 12:12:24 PM
hmm.... i tryied at member upload.. it works...

from admin cp want work.... :(
i will look on it as soon as possible


Title: Re: [Mod] Image Annotation (Watermark)
Post by: DilnüvaZ on March 31, 2008, 12:14:42 PM
hmm.... i tryied at member upload.. it works...

from admin cp want work.... :(
i will look on it as soon as possible
thanks Nicky for your messages i hope i will look it .. i like 4 images :)


Title: Annotation is not support arabic language
Post by: Mr_LovaLove on March 31, 2008, 10:21:38 PM
Hi,
 
How can i change the setting in Annotation MOD ( WaterMark ) to annotate the username in arabic

its only support the english



Title: Re: Annotation is not support arabic language
Post by: nobby on March 31, 2008, 10:35:02 PM
Hi,

Use Google Tranlation English Arabic


Title: Re: Annotation is not support arabic language
Post by: Mr_LovaLove on April 01, 2008, 09:24:07 PM
Sorry nobby

and im not sure if you got me right or not !

what i mean, when i want to add my site on the image * annotate the image * the mod doesn;t support arabic language

example:

i want to stamp my image

www.143.ae <== english

منتديات 143 <== arabic  ( this not appear correct in arabic )


and thanks alot for ur try

believe me a appreciate ur try :)


Title: Re: Annotation is not support arabic language
Post by: mawenzi on April 01, 2008, 10:27:56 PM
@Mr_LovaLove
... and why you don't post your problem in the thread of MOD] Image Annotations (Watermark) ...
... not often, but sometimes SLL answered questions to his MOD ...
... and he is the man for your questions ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kai on April 01, 2008, 10:30:38 PM
mawenzi is right. I merged the two topics.
Please always ask your questions in the related mod thread.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Mr_LovaLove on April 06, 2008, 05:53:03 AM
thanks guyz for the merging

thought

it will  be easy if i  posted alone




Title: Re: Annotation is not support arabic language
Post by: SLL on April 06, 2008, 07:42:13 PM
what i mean, when i want to add my site on the image * annotate the image * the mod doesn;t support arabic language
this is nothing to do with the mod, actually... you should check your server and php settings, how they are supporting arabic language and fonts. on my site it works with russian fonts (cp1251) without any problem.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rubberduck on April 07, 2008, 12:07:57 AM
Hab den Mod installiert und das ganze funktioniert soweit auch. Allerdings kommt das Wasserzeichen nur auf das Detail Bild. Was muss man ändern damit auch das Thumb mit dem Wasserzeichen ausgestattet wird?

Danke für die Hilfe ...



Title: Re: [Mod] Image Annotation (Watermark)
Post by: rubberduck on April 08, 2008, 03:56:25 PM
Hat keiner eine Idee?



Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on April 08, 2008, 04:17:17 PM
... diese Modifikation ist nur für ein "Watermark" auf den Originalbildern vorgesehen und macht m.E. auch nur dort einen Sinn ...
... wolltest du nun noch ein "Watermark" auf den Thumbnails, so müsstest du etwas tiefer in den Code einsteigen und dort Änderungen vornehmen ...
... nur mit Einstellungen über das ACP ist das nicht zu erledigen ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rubberduck on April 08, 2008, 04:21:44 PM
Hat sich erledigt. Habs hinbekommen.



Title: Re: [Mod] Image Annotation (Watermark)
Post by: sanko86 on April 09, 2008, 02:26:45 PM
Quote  [Expand]
Annotating between image ID 187 and 187:

Processing image hasan dağı from category Sizde Örnek Göndermek İstermisiniz?, image ID 187 >>
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/elemminf/domains/*****public_html/includes/annotate.php on line 95

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

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

Finished!

[Back]   

help please:(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rubberduck on April 09, 2008, 02:39:09 PM

The Script "Could not find/open" the font.



Title: Re: [Mod] Image Annotation (Watermark)
Post by: sanko86 on April 09, 2008, 06:55:08 PM
thanks ;)

this admin panel settings font adres edit

not proplem;)

happyy;)


Title: i have a problem
Post by: DilnüvaZ on April 24, 2008, 03:13:09 PM
hi all :)

http://www.4homepages.de/forum/index.php?topic=13719.0
i edit  Mod] Image Annotation (Watermark) 

.i have a problem.i  when i uploaded a image  :
1
Fatal error: Call to undefined function ImageTTFBBox() in /home/nuvanda/public_html/includes/annotate.php on line 95

my font : /public_html/captcha/fonts/arial.ttf
 
help me please. i don't upload images :  http://www.nuvanda.net/member.php?action=uploadform&cat_id=2



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nicky on April 24, 2008, 07:15:27 PM
try to set font path (sorry i can't remember how to setup it correct)
with
/home/nuvanda/public_html/captcha/fonts/arial.ttf

are you using netpbm?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: DilnüvaZ on April 25, 2008, 10:45:25 PM
try to set font path (sorry i can't remember how to setup it correct)
with
/home/nuvanda/public_html/captcha/fonts/arial.ttf

are you using netpbm?
i changed this :
/home/nuvanda/public_html/captcha/fonts/arial.ttf but it is not using  what can i do?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kai on April 27, 2008, 12:14:51 AM
A video tutorial for this mod can be found here:
http://www.asian-lady.org/tutors/annotation2-mod/annotation2-mod.html


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Dracula on May 18, 2008, 02:06:26 PM
Hello!
How automatic stamp watermark in thumbnails ? Full photo is okey stamping watermark.....


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Jan-Lukas on May 18, 2008, 04:50:07 PM
http://www.4homepages.de/forum/index.php?topic=13719.msg114778;topicseen#msg114778


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Outek on May 19, 2008, 02:06:47 PM
Is there a solution for this problem?

No category selected, nothing to annotate...

Finished!

Thanks
Outek


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Dracula on May 21, 2008, 03:43:37 PM
How annotate thumbnails? Please MOD code...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on May 22, 2008, 11:28:32 AM
... what size have your thumbnails and what size has your annotation ... ?
... it make not sense to annotate thumbnails 100 x 75 px ...
... besides ... http://www.4homepages.de/forum/index.php?topic=13719.msg114778;topicseen#msg114778 ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: silentg on June 05, 2008, 02:00:53 AM
Quote  [Expand]
It's annoying to select id numbers each time to annotate the images because the ID numbers of the images in each category are not in sequence (1,2,3,4). It's all random because images were added at different time.

Is there a hack to this mod that would let me annotate  all images found in category?


thanks

working now


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Torbenuz on June 11, 2008, 08:31:06 PM
Ist es auch möglich das die PNG Bilder auch ohne ImageMagick oder GD transparent dargestellt werden?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kashiyuka on June 12, 2008, 08:27:48 PM
It works great after some trial-n-errors. Thanks for the great mod! :mrgreen:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LeeWicKeD on June 17, 2008, 12:05:02 AM
Hi there!

I installed the Annotation Mod in my gallery, but i'm having some issues, when running the command "batch annotate".

It shows me for every image the following error-lines:

Quote  [Expand]
Warning: imagesx(): supplied argument is not a valid Image resource in /www/htdocs/w0080277/public_html/galerie/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /www/htdocs/w0080277/public_html/galerie/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /www/htdocs/w0080277/public_html/galerie/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /www/htdocs/w0080277/public_html/galerie/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /www/htdocs/w0080277/public_html/galerie/includes/annotate.php on line 186
OK

I have no idea, what to do now? I also tried the forum search, but just got a solved topic, but no post about HOW it was solved.

 :?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sumale.my on June 17, 2008, 12:35:16 AM
Ist es auch möglich das die PNG Bilder auch ohne ImageMagick oder GD transparent dargestellt werden?

 :lol: 8)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LeeWicKeD on June 19, 2008, 12:18:33 PM
Please, does nobody have an idea? I think i did every installation step right :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: silentg on June 21, 2008, 04:27:25 AM
Please, does nobody have an idea? I think i did every installation step right :(

Start from scratch and follow each steps carefully. See if you get the same error at the end. When ever I get an error, I start from scratch again and errors don't show up after. Goodluck with solving the problem.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LeeWicKeD on June 23, 2008, 09:31:36 AM
i did this already several times, but nothing changed...failure still appears :|


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Nicky on June 23, 2008, 10:29:08 AM
hi,

i would like to know...

are there file names with starting as example
.file.jpg

and are all folders chmod-ed correct?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: LeeWicKeD on June 23, 2008, 11:04:18 AM
I couldn't find any files, starting with a . at the beginning of the filename.

In  the installation-manual is nothing said about any chmod changes, but i have nearly all folders at "777" now.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: BillyC on June 29, 2008, 11:19:26 AM
I've just installed the annotation mod, but it only works when a member uploads an image. When I upload one from the admin panel, it doesn't get an watermark...

My site is: http://www.musicpics.net


Title: Image Annotation
Post by: birdost on July 24, 2008, 10:48:02 AM
hi

i setted up this plugin without an error. but it doesnt work. my settings are on the picture. pls help



the picture is here (http://img99.imageshack.us/img99/7722/clipboard01lf1.jpg).


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Softwarekeepers on July 30, 2008, 01:46:57 PM
Also irgendwie klappt es bei mir nicht - krieg das mit "Spezifizieren Sie PNG voller Path und Dateiname" einfach nicht auf die Reihe...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: EdwinK on September 18, 2008, 09:41:02 PM
hi,

change in batch_annonate.php

line
1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";

to

1
$root_path = (!eregi("\/plugins\/", $_SERVER['PHP_SELF'])) ? "./../" : "./../../";

working now?

Not for me :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Holger2 on October 01, 2008, 01:22:44 PM
Hi, ich habe diesen Mod installiert.
Klappt auch wunderbar ... ABER die EXIF-Infos gehen verloren!
UND: damit die Bilder keine Qualitätsverluste erleiden, habe ich die Qualität auf 100% (nach "Watermarking") gestellt. Damit werden sie aber fast doppelt so gross.

Kann man in den 2 Punkten etwas tun?

Gruss
Holger


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on October 01, 2008, 02:09:17 PM
Hallo Holger

zu 1. Deine Feststellung ist richtig, mit dem Watermark gehen die EXIF- / IPTC-Infos in dem Bild verloren. Das ist etwa genauso, als ob du das Bild mit einer (na sagen wir mal nicht ganz so grandiosen) Bildbearbeitungs-Software bearbeitet und abgespeichert hättest.
Alternativen dazu, um die EXIF-/IPTC-Infos trotzdem anzeigen zu können,  wären z.B. :
- die Original-Bilddatei beim Upload auch mit abzuspeichern ( Stichwort: Big Folder ), diese dann z.B. auch zum Download anzubieten b.z.w. im neuen Fenster zeigen, aber vor allem dann dort die EXIF-/IPTC-Infos auslesen ( Stichwort : One Image - Three Sizes ) ...
- die EXIF-/IPTC-Infos beim Upload in die DB schreiben und dann von dort auslesen ( Stichwort : Exif V.1.7.6 )
- bei beiden Varianten gehen aber nach wie vor beim Watermark die Infos im gemarkten Bild verloren !

zu 2. jpg ist bereits ein komprimiertes Bildformat ! Bilder, die du auf deine Seite hochlädst waren vorher auch bereits komprimiert ( entweder aus der Kamera oder einem Bildbearbeitungsprogramm ) ! Wenn du nun bei den Watermark-Einstellungen eine Bildqualität von 85% angibst, so hast du relativ schlanke Bilddateien und eine gute Optik . Das sollte so passen ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Holger2 on October 01, 2008, 02:13:19 PM
Hallo und vielen Dank für die Antwort!

- bei beiden Varianten gehen aber nach wie vor beim Watermark  die Infos verloren !
Damit meinst Du dass die Infos IN DER BILD-DATEI verloren gehen. Oder?
Weil, wenn
Quote  [Expand]
- die EXIF-/IPTC-Infos beim Upload in die DB schreiben und dann von dort auslesen ( Stichwort : Exif V.1.7.6 )
verwendet wird, dann kann ich sie ja noch anzeigen. Oder?

Gruss
Holger


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on October 01, 2008, 02:21:19 PM
... Oder? ...

... ja ... ( im gemarkten Bild - hatte ich noch hinzugefügt ... ;) )
... denn Sinn und Zweck der beiden genannten Varianten ist es ja, trotz der im gemarkten Bild verloren gegangenen  EXIF-/IPTC-Infos diese auf der Detailseite anzeigen zu lassen ...
... beide Varianten funktionieren ... perfekt ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Holger2 on October 01, 2008, 02:24:39 PM
Danke! :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on October 01, 2008, 02:32:42 PM

... na dafür klimpert man doch gerne auf der Tastatur rum ( zumal es nicht mehr allgemein usus zu sein scheint ) ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Holger2 on October 01, 2008, 02:37:08 PM
Ihr macht hier einen Bombenjob finde ich!
(Bin selber Supporter in der schwedischen phpBB-Gruppe.)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: AntoniaA on October 22, 2008, 12:41:56 PM
Sorry for my bad English.
I installed the mod in the 1.7.6  4images version. Into the administracion panel I get the plugin link, but when I click on it, shows me a blank page empty.
I have reviewed the installation, and everything is correct.
Can you help me please?
Thank you


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on October 22, 2008, 03:12:29 PM
in global.php find:
error_reporting(E_ERROR | E_WARNING | E_PARSE);
Insert below:error_reporting(E_ALL);
@ini_set("display_errors", 1);

Then try open annotation links in ACP, see if any errors shows.

(after you are done, remove these changes)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kyzer on October 24, 2008, 05:13:10 AM
Hi...

I've installed this mod... and it works... if I only send one photo!!!
In multiupload it doesn't work!!! I get this error...
"Fatal error: Cannot redeclare ann_rename() (previously declared in /****/****/public_html/****/****/includes/annotate.php:9) in /****/****/public_html/****/****/includes/annotate.php on line 9"
and line 9 has this function...

function ann_rename($old, $new){
  $oldWD = getcwd();
  chdir(realpath(dirname($old)));
  $ok = (rename(basename($old), basename($new))) ? 1 : 0;
  chdir($oldWD);
  return $ok;
}

Can anyone help me??? Please...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on October 24, 2008, 07:39:13 AM
I've installed this mod... and it works... if I only send one photo!!!
In multiupload it doesn't work!!! I get this error...
Try this:
in includes/annotate.php find:
function ann_rename($old, $new){
Insert ABOVE:

if (function_exists("ann_rename")) return;


Title: Re: [Mod] Image Annotation (Watermark)
Post by: AntoniaA on October 29, 2008, 07:48:25 PM
in global.php find:
error_reporting(E_ERROR | E_WARNING | E_PARSE);
Insert below:error_reporting(E_ALL);
@ini_set("display_errors", 1);

Then try open annotation links in ACP, see if any errors shows.

(after you are done, remove these changes)

I already tried, but it not show errors


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@nо on October 29, 2008, 09:59:09 PM
can you create an admin account and pm me with the login info?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: kyzer on October 30, 2008, 12:32:47 AM
Thanks V@no...  :D
It works perfectly!!!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: AntoniaA on November 01, 2008, 08:58:44 PM
can you create an admin account and pm me with the login info?

      
Sorry, I'm testing at local levels. There is no external access.

The fact is that if I write the path migaleria/admin/plugins/batch_annotate.php, it charge anything (blank)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on November 01, 2008, 09:57:13 PM
In files in plugins folder replace:
1
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";

with:
1
$root_path ="./../../";


Title: Re: [Mod] Image Annotation (Watermark)
Post by: AntoniaA on November 05, 2008, 08:58:35 PM
OK !!!, Now it shows batch_annotate file !!!. But, how do I set the text of the watermark?

Thanks, thanks, thanks


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@nо on November 05, 2008, 10:39:27 PM
in the settings I think


Title: Re: [Mod] Image Annotation (Watermark)
Post by: AntoniaA on November 06, 2008, 07:00:32 PM
Thanks you for the help.
I had forgotten the ; character in index  line "show_nav_option ($ lang [ 'nav_ann_settings']....", which is why it didn't resolve the settings options.  :oops:
I tried everything, and it works OK.

A very big kiss !!!  :D


Title: Re: [Mod] Image Annotation (Watermark)
Post by: batu544 on November 09, 2008, 03:29:56 PM
Hi,
     I have been using this MOD for a long time without any problem, now also its working fine :). But I just noticed one thing.. before annotation if the image size is 50 KB, after annotation its new size is 250KB.. In general . the image size is increasing after we annotation of the images.

Is this a normal thing ?? can we do something to stop this ??



Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on November 09, 2008, 06:06:23 PM
set lower quality...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: batu544 on November 13, 2008, 12:05:59 PM
Hi,
      Is there anyway .. we can annotate or water mark the image on-fly at the time of display only .. instead of adding water mark in the original images ?


Thanks,


Title: Re: [Mod] Image Annotation (Watermark)
Post by: nhomauhoaphuong on November 15, 2008, 01:47:04 AM
i have problem with this annotate mod.
it's shown error when i tried to add new images.

Quote  [Expand]
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in /home1/chuahuon/public_html/hinhanh/includes/annotate.php on line 95

Warning: imagettftext() [function.imagettftext]: Invalid font filename in /home1/chuahuon/public_html/hinhanh/includes/annotate.php on line 192

Warning: imagettftext() [function.imagettftext]: Invalid font filename in /home1/chuahuon/public_html/hinhanh/includes/annotate.php on line 193
Working on data/media/4/DSC00006_2.JPG file:
Copied original file into data/media/4/big/ folder.
Image resized.
Added annotation in data/media/4/DSC00006_2.JPG file.
Created thumbnail.
Image added: DSC00006 2

so it actually added the images but then show showing error like that and the watermark are not working.. please help.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on November 15, 2008, 02:01:35 AM
Did you upload font file(s), checked permissions on it and set correct path+filename to it in the settings?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: nhomauhoaphuong on November 15, 2008, 04:56:16 AM
hi there... i did check everything... all the fonts are in the /public_html/hinhanh/captcha/fonts

i setted the path in the setting like this /public_html/hinhanh/captcha/fonts/arial.ttf  but still showing same error... what permission should i set and please show me where because there is no instruction on it. please help.
thanks


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on November 15, 2008, 05:25:47 AM
set permissions on font files to CHMOD 666 if that doesn't help, try set to 777
and exactly is the font path you set in the settings?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: nhomauhoaphuong on November 15, 2008, 06:11:05 AM
yes 666 works.
thanks


Title: error annotate when install MOD Ajax imageshow in detailsview
Post by: nguago on November 23, 2008, 03:07:44 PM
1
Warning: rename(popup_03_3.jpg,popup_03_3.jpg.shd) [function.rename]: No such file or directory in E:\AppServ\www\media\includes\annotate.php on line 12

install Ajax imageshow in detailsview successfull but error MOD annotate by SLL
Help me !


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Eresus on December 04, 2008, 07:12:32 PM
Hallo,

Ich habe den MOD Annotation installiert. Er funktioniert auch. Leider hat mein Thumbnail auch das Wasserzeichen. Das Wasserzeichen wird anscheinend vor der Thumbnail-Erstellung eingebaut. Gibts hier für eine Lösung wie ich das ändern kann?

Wenn ich die Bilder durch "Neue Bilder checken" hochlade wird am Ende folgende Meldung gezeigt:

Working on data/media/2/GDT21-CB008578.jpg file:
Copied original file into data/media/2/download/ folder.
Image resized.
Added annotation in data/media/2/GDT21-CB008578.jpg file.
Created thumbnail.
Bild erfolgreich hinzugefügt: Bechstein-Fledermaus


Hier steht auch das Einfügen des Wasserzeichens vor der Erstellung der Thumbnails.


I upload my images with "check new images". The annotation are in my thumbnails too. How can I change this?

Gruß
Carsten




Title: Re: [Mod] Image Annotation (Watermark)
Post by: Blesi on December 08, 2008, 04:09:00 PM
Hallo ich habe auch ein Problem.
Erstens ist teilweise bei manchen Bildern das Wasserzeichen nicht drauf. Keine Ahnung warum.
Dann habe ich aus versehen mal eine Datei gelöscht. Jetzt habe ich im Adminbereicht nicht mehr den Menüpunkt "Annotation" und kann somit die Schrift nicht mehr ändern. Kann mir einer sagen wie ich das wieder hin gekomme dass ich das Wasserzeichen ändern kann?

Danke Gruß Christian


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ivan on December 08, 2008, 05:28:38 PM
Hallo,
zum ersten problem

-vielleicht hast du das bild via acp hochgeladen, dann gibt es keine annotation
-du musst deine bilder via kategorien upload hochladen

oder du benutzt den batch annotation.
vorsicht: du überschreibst dann alle bilder in der kategorie, auch diese die eine annotation haben.
tipp: bilder die keine annotation haben, in eine andere kategorie verschieben.

zum zweiten problem
am besten befolgst du nochmals die anleitung am anfang.
dann bist du sicher, dass die richtigen dateien am richtigen ort sind.

gruss ivan


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Blesi on December 08, 2008, 06:22:03 PM
Ich lade die Bilder via FTP direkt in den entsprechenden Ordner für die Kategorie.
Ich wollte alles von vorne machen, aber bei der INSTALL bringt er ne Fehlermeldung weil in der Datenbank die Einträge schon vorhanden sind. Ich will nicht alles löschen, weil sonst alles andere auch gelöscht ist. Welcher Eintrag spezielle dafür ist, weiß ich leider nicht :-(

Gruß Christian


Title: Re: [Mod] Image Annotation (Watermark)
Post by: *handsome* on December 11, 2008, 11:15:01 AM
i am getting this error

No category selected, nothing to annotate...

i slect catagory and wite Id etc

but still getting the error :(


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Eresus on December 11, 2008, 05:15:41 PM
I upload my images with "check new images". Everything is okay, but the annotation are in my thumbnails too. How can I change this?
Does someone know in which files is the mistake?`I check the modification of the annotation 10 times and anything ist right. Have someone an idea?

Thanks!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Blesi on December 13, 2008, 09:30:17 PM
Ich gehe jetzt davon aus, dass das Fehlen des Wasserzeichens (nur ab und zu) auf ein "zu schmales" Bildes zurück zu führen ist. Weiß dau jemand was genaueres?

Gruß Christian


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rubberduck on December 13, 2008, 09:38:01 PM
Ich gehe jetzt davon aus, dass das Fehlen des Wasserzeichens (nur ab und zu) auf ein "zu schmales" Bildes zurück zu führen ist. Weiß dau jemand was genaueres?

Ja, wenn das Wasserzeichen größer ist als wie die Bildbreite dann wird es nicht gesetzt. Ist bei mir auch so, ich binde allerdings nur Text ein, keine Grafik.



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Blesi on December 14, 2008, 03:48:51 PM
Ich binde auch nur Text ein, trotzdem besteht das Problem.
Hat jemand ne Möglichkeit, dass man das Prozentual regelt?

Gruß Christian


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rubberduck on December 14, 2008, 07:27:37 PM
Da hilft wohl nur den Text zu kürzen oder den Schriftsatz zu verkleinern.



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Blesi on December 15, 2008, 09:26:31 PM
Schade und 80% von Bild zu machen als Breite funktioniert nicht?!
Gruß


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rubberduck on December 15, 2008, 10:28:18 PM
Habe ich bisher jedenfalls nicht gefunden, bzw. hinbekommen.



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Blesi on December 16, 2008, 02:03:00 PM
Dann muss ich wohl wirklich die Schrift kürzer machen. Sonst muss ich immer nachschauen ob es drauf ist, das ist ja auch doof.

Trotzdem danke für die Antwort.


Gruß Christian


Title: Re: [Mod] Image Annotation (Watermark)
Post by: zerandib on January 03, 2009, 02:03:07 PM
Hello,

I have installed this MOD image annotation
It works exactly fine in the localhost

But when it uploads to the server it gives this error!  :roll:

PlugIns -> Batch Annotate

Warning: require(./../admin/admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/content/z/e/r/mylogginname/html/admin/plugins/batch_annotate.php on line 8

Fatal error: require() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/z/e/r/mylogginname/html/admin/plugins/batch_annotate.php on line 8



I have upload the exact files that work on the localhost.
and i have test the GD support on the server. - GD Freetype test. - It is also working
and my batch_annotate.php is looks like this.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php // PLUGIN_TITLE: Batch Annotate  - Line1
$nozip 1#line2
define('IN_CP'1); 
$root_path = (eregi("\/plugins\/"$PHP_SELF)) ? "./../../" "./../";
define('ROOT_PATH'$root_path);
define('MEDIA_DIR''data/media');
define('MEDIA_PATH'ROOT_PATH.MEDIA_DIR);
require(
ROOT_PATH.'admin/admin_global.php');  #line8
require(ROOT_PATH.'includes/annotate.php');

if (
$action == "") {
  
$action "intro";
}



any idea whats wrong in this!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on January 03, 2009, 05:53:46 PM
Hello and welcome to 4images forum.

This error came up so often, that I think it's time do something about it.

I've updated original post with instructions how to solve it:
http://www.4homepages.de/forum/index.php?topic=13719.msg15609#post_error


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Blesi on January 07, 2009, 02:59:22 PM
Hallo zusammen,
wegen eines neues Websapces musste ich jetzt meine Gallery komplett neu machen. Leider kamen damich auch die Probleme. Ich wollte den annotation-mod wieder installieren, aber leider kommt die alt bekannte Fehlermeldung. Ich habe auch schon nach sämtlichen Dingen in der Suche veruscht, aber leider hat nichts funktioniert :-(
Mit ttf, ohne ttf. Mit "/", ohne. Und so weiter uns sofort. Kann mir noch jemand n Tipp geben, an was es liegen kann? Ich mache jetzt schon über ne Stunde an dem Teil rum und verzweifle bald. Muss ich extra was mit der der GD Bilbliothek machen? Muss da was installiert werden?
Gruß Christian


Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /var/www/vhosts/christian-blesinger.com/httpdocs/gallery/includes/annotate.php on line 95

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/vhosts/christian-blesinger.com/httpdocs/gallery/includes/annotate.php on line 192

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/vhosts/christian-blesinger.com/httpdocs/gallery/includes/annotate.php on line 193
Working on data/media/2/20081226_blesinger_bl_033.JPG file:
Copied original file into data/media/2/big/ folder.
Image resized.
Added annotation in data/media/2/20081226_blesinger_bl_033.JPG file.
Created thumbnail.
Bild erfolgreich hinzugef�gt: ASV Durlach - Offenburger FV


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on January 07, 2009, 03:25:30 PM
upload arial.ttf file from your C:\Windows\Fonts into root of your gallery, make sure it's CHMOD 755, then set font path in the Annotation Settings to:
/var/www/vhosts/christian-blesinger.com/httpdocs/gallery/arial.ttf


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Blesi on January 07, 2009, 03:38:42 PM
Super, ich weiß nicht ob es an der Berechtigung oder am Pfad lag, aber funktioniert. Super danke.

Great ,thank you. It works.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: shadowhunter on January 14, 2009, 10:21:43 AM
Hallo!

Is it possible to make an annotation on a jpg-file with a transparent watermark-image (e.g. gif or png) but without an background color ("Embedded image background color to set as a transparent").
I use the GD.

Ist es möglich ein transparentes Wasserzeichen-Bild (z.B. gif oder png Datei) bei einem jpg-Bild einzufügen, aber ohne eine Hintergrundfarbe ("Eingebettete Bildhintergrundfarbe, zum als transparentes einzustellen").
Ich benütze GD Bibliothek.
Momentan gibt es bei mir ein halbtransparentes Rechteck (mit der eingestellten Farbe) im Hintergrund von dem Wasserzeichen bei jedem Bild.
Es sollte so sein, wie bei einem Text-Wasserzeichen (> der Hintergrund beim Text ist vollständig Transparent)!

Thanks & greetings.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: schlepperonline on January 22, 2009, 02:24:03 PM
Hallo

wenn ich mehrere Bilder hochladen will kommt dieser Fehler

Fatal error: Cannot redeclare ann_rename() (previously declared in /www/htdocs/......../4images/includes/annotate.php:9) in /www/htdocs/w005dc89/4images/includes/annotate.php on line 9

Kann mir da einer helfen, habe dazu schon was gefunden hier im forum hat aber auch nicht gefunzt!

Gruß Christian


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Fere on January 27, 2009, 05:59:37 PM
Only image annotation works. I'm using 4images 1.7.6

I've tryed increasing text size, seting 0 transparency, no shadow. Doesn't work. Also batch module isn't showing anny settings in its dedicated page.
I'm 100% sure font path is corect.

Although these don't harm my needs, there is one problem that bothers me...
I have also installed autoresize on upload mod  (http://www.4homepages.de/forum/index.php?topic=7700.0) and it looks like the annotation happens first and then the autoresize.

I mention that in annotation settings it tells me:
Annotation Settings   [ GD is set as an image conversion tool ]


EDIT:
Problem with action order solved, just needed to put the annotation script after resize script in member.php
Though I don't need batch and font annotation I'd like to know what could be the problem with them, maybe I'll fix it, who know's when thoose would be needed.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@nо on January 27, 2009, 07:38:06 PM
what graphic module do you use?(GD,IM,NetPBM)

did you download attached package or from SLL's site? attached package should fix the batch annotation


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Fere on January 28, 2009, 12:09:30 AM
I have downloaded from here (http://faces.dalnet.ru/files.php?l=english) Than tryed the second link, the atached one. I had looked at the filse and it seemed that theres no diference...

I did downloaded the atached files and overwrited ann_settings.php annotate.php and batch_anotate.php. On upload I checked and there was no diference in size between overwrited files and those I have uploaded.

I use GD cause it's default one. I just don't know the diferences between them and if it's worth to change. Maybe someone could provide a link so I cand learn the diferences..



Title: Re: [Mod] Image Annotation (Watermark)
Post by: MaxMoto on February 07, 2009, 04:34:21 PM
Hallo,
MOD eingebaut und funktioniert auch auf den ersten versuch. Keine Fehlermeldungen und nüscht... wird anbgezeigt aber ich habe trotzdem ein problem*g*

- habe zum testen eine gallery mit 26 Bildern durch den BATCH Konverter laufen lassen.... hat das watermark auch eingebaut aber ich habe einen TIPPFEHLER drinne und
wenn ch erneut einen batch laufen lasse habe ich den TEXT 2x drinne..... wie kriege ich das weg????????

- beim Upload macht er keinen autotext obwohl aktiviert? was kann das sein, er gibt auch keinen fehler aus


Title: Re: [Mod] Image Annotation (Watermark)
Post by: exestend on February 26, 2009, 02:29:33 PM
Hi ichhabeja schon viel gelesen aber meine Englisch kenntnisse halten sich in Grenzen. Ich habe dieses Problem:

Quote  [Expand]
Processing image Ein schöner See from category Photoshop Arbeiten, image ID 20 >>
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /usr/export/www/hosting/exestend/includes/annotate.php on line 95

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /usr/export/www/hosting/exestend/includes/annotate.php on line 192

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /usr/export/www/hosting/exestend/includes/annotate.php on line 193
OK

Und wenn ich das Ganze mit Bild machen will passiert das:

Quote  [Expand]
Processing image Ein schöner See from category Photoshop Arbeiten, image ID 20 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /usr/export/www/hosting/exestend/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /usr/export/www/hosting/exestend/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /usr/export/www/hosting/exestend/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /usr/export/www/hosting/exestend/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /usr/export/www/hosting/exestend/includes/annotate.php on line 186

Ich hoffe echt das mir einer helfen kann :/


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on February 26, 2009, 02:51:41 PM
... Fehlermeldung : Could not find/open font ...
... du wirst also nicht den richtigen Pfad zu deinen Fonts gesetzt haben ... !


Title: Re: [Mod] Image Annotation (Watermark)
Post by: exestend on February 26, 2009, 02:55:07 PM
Naja in den Annotation Einstellungen steht das so:

Annotation Schriftart  => Aquiline.ttf

und diese File liegt im Root ordner mit 755 Rechten :/

Und bei dem Bild kommt ja auch eine komische Fehlermeldung :/

LG


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on February 26, 2009, 03:00:42 PM
Annotation Schriftart  => Aquiline.ttf

... falsch ... da gehört der Pfad zu dem Fontsatz rein ... !
... diese Problematik ist in diesem Thread schon xxx-mal besprochen worden ...
... schau dich einfach mal einige Post zuvor um ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: exestend on February 26, 2009, 03:05:16 PM
Habe es raus gefunden. Dennoch Danke für deine Hinweise.

LG


Title: Re: [Mod] Image Annotation (Watermark)
Post by: vovka on March 31, 2009, 01:24:39 AM
есть несколько вопросов:
1. не добавляется надпись при загрузке новых фото из админки. только через Batch Annotate.
2. при выполнении Batch Annotate не обрабатываются подкатегории. т.е. для обработки нужно указывать все категории и подкатегории поочереди. напряжно....

подскажите что можно с этим сделать?

спасибо.

ENGLISH:

how to add Annotation when upload images from admin Control Panel?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: CarstenM on April 07, 2009, 11:56:09 PM
aber wenn ich das bild dann nachher downloade ist dann das wasserzeichen weg???


Title: Re: [Mod] Image Annotation (Watermark)
Post by: GaYan on April 23, 2009, 07:09:48 AM
hey ,, it works great .. but when i use the muliti  uploader the watermark doestn appear on the uploaded images ....is thier a method of doin it .. i mean appling watermark to the images uploaded using the multiupload ( basic )

heres ma upload link - http://www.nuwaragedara.com/wallpaper/member.php?action=muploadform&mutype=basic

please .. help me...

thanks in advance...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sun on May 29, 2009, 03:05:46 PM
подскажите что можно с этим сделать?

Поставь этот мод [MOD] Check new images in ALL categories


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tomerl on June 23, 2009, 08:38:02 AM
Hab auch mal ne Frage zu.
Habe Version 1.7.7

Wenn ich Bilder rauflade dann macht er es automatisch, das einfügen des Wasserzeichens.
Aber warum kann ich es nicht manuell machen?
Habe einige Bilder wo ich das nachtragen möchte, oder bei denen wo die Automatik nicht funktionierte. Aber das funktioniert händisch nicht.
Für was gibts dann aber das Batch_Annotate im Admin?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on June 23, 2009, 09:35:14 AM
@ tomerl

Beispieleinstellung für ein nachträgliches Watermark mit Batch Annotate :

1. ACP -> PlugIns -> Batch Annotate
2. Batch images annotation :
    Kategorie -> Hier die entsprechende Kategorie des Bildes auswählen
    Number of images to do per cycle -> 1
    Image ID to start at -> Hier die Image_ID des Bildes eingeben
    Include automatic JavaScript redirect to next page -> Nein
3. Abschicken

... gerade nochmals getestet ... und funktioniert bestens das "Nachträgliche Watermark" ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sun on June 30, 2009, 02:42:01 PM
I upload my images with "check new images". Everything is okay, but the annotation are in my thumbnails too. How can I change this?

I have the same problem. Could somebody help me?
Thank you.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: TimWiese on July 12, 2009, 11:36:17 PM
Ich suche ein Wasserzeichen Mod der folgende dinge kann:
Man soll im acp ein png bild hochladen können. dann soll man einstellen können bei welchen kategorien das wasserzeichen automatisch beim hochladen der bilder draufgesetzt wird. Kann man das mit diesem Mod?
Edit:
der mod funzt net bei mir. hab alles so eingestellt wie ichs haben will. aber beim bilder upload erscheint kein wasserzeichen.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: fermachado on August 10, 2009, 01:30:45 PM
Thiis works very nice,just have a problem with the exif.If have tha watermak enabled loose the Exif. :(

The exif are very important.Anyone solved this problem. :?:

I reed something about this here.http://www.4homepages.de/forum/index.php?topic=13719.765 but ,don't understand very well because the translation.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on August 10, 2009, 02:27:37 PM
@fermachado

... we have it already discussed several times ...
... if you use watermark with gd-libary for your images ... the exif- / iptc-infos are definitely lost in this images ... no chance ...
... but there are two ways to save the exif- / iptc-infos ...

1.  during the upload exif- / iptc-infos are stored in db : therefor we have a MOD ...
2.  during the upload the original image is stored in /big/-folder with all exif- / iptc-infos to read : therefor we have a MOD ...

( http://www.4homepages.de/forum/index.php?topic=13719.msg124962#msg124962 )


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on August 10, 2009, 03:23:49 PM
3. use ImageMagick (http://www.4homepages.de/forum/index.php?topic=23428.0 (http://www.4homepages.de/forum/index.php?topic=23428.0))


Title: Re: [Mod] Image Annotation (Watermark)
Post by: fermachado on August 10, 2009, 05:17:26 PM
Hi,

Thanks,mawenzi and Vano.

I change to ImageMagick and works nice.

I think I have a mod installed and this mod only work with GD.Need wait for errors to see what mod is. :D

Obrigado,(thanks)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sun on August 13, 2009, 11:42:19 AM
SLL, thank you for this mod!

I found two errors in this mod.

====================
On the watermark i want use User Name (%S).
When i check new images from ACP then in the first photo user name is blank(on others fotos user name is present).
I try change annotate.php. I put
$ann_user_name = "Administrator";
before
$ann_repl = array ("$ann_date", "$ann_time", "$ann_site_name", "$script_url", "$ann_url", "$ann_user_name", "\n\r");
After that i see user name at first photo, but if any user(not from ACP) upload photo then in the watermark will be user name "Administrator".
Could anybody help me with fix first or second problem?

=====================
I want clarify with previous problem "I upload my images with "check new images". Everything is okay, but the annotation are in my thumbnails too." It's happen only when i use ASP,  and where user upload one photo there isn't watermark on tumbnail. How to fix this?

PS I already readed all 56 pages, but there is no answer for my questions
 


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on August 13, 2009, 02:44:38 PM
are you using modified version of "check new images"? if I'm not mistaken this mod doesn't support that feature...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sun on August 13, 2009, 02:55:35 PM
what do mean when told "modified version of "check new images""? [MOD] Check new images in ALL categories?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on August 13, 2009, 03:05:44 PM
I guess.
If you are using that mod, then it's more likely bug in that mod...I'll check it out later.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sun on August 13, 2009, 03:30:19 PM
Thank you. I'll be waiting you answer.
I use that mod.
If you need some tests - just told me.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tanveer on August 23, 2009, 06:33:33 PM
I am trying to be familiar with 4images using xampp.
Watermark is working nice with GD and image. But when I am trying to use it from admin panel its not working.

I have used 1.7.6 version and SLL's files..........

Can u tell me any way to get rid of this problem?

Waiting..........


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on August 24, 2009, 03:30:03 AM
Hello and welcome to 4images forum.

By "not working" do you mean no watermark being added when you upload it via ACP (Admin Control Panel) or some other problem (like giving error message(s) or blank page) when running batch annotation plugin?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tanveer on September 02, 2009, 09:14:46 AM
I am sorry for my clarifications, I am from bangladesh and my english is not that good enough.

I have tried it to up-load it from normal user panel creating another normal registered user, it is working at that time when it is in the front panel.

But when I am trying to upload it from my Admin panel then the image get uploaded correctly and i can view it, but the image is not watermarked.

Please help me.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tanveer on September 04, 2009, 06:49:49 AM
Moreover that, When I use the FTP upload and check images option then the annotation is not working.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tanveer on September 05, 2009, 07:31:57 AM
Processing image arif from category Editorial, image ID 001044 >>
Warning: imagesx(): supplied argument is not a valid Image resource in C:\Program Files\xampp\htdocs\site_test\includes\annotate. php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in C:\Program Files\xampp\htdocs\site_test\includes\annotate. php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in C:\Program Files\xampp\htdocs\site_test\includes\annotate. php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in C:\Program Files\xampp\htdocs\site_test\includes\annotate. php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in C:\Program Files\xampp\htdocs\site_test\includes\annotate. php on line 186

When I want to batch annotate , 4images is saying this. . . . . . . . . . . . .


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Dr-SeMSeM on September 06, 2009, 04:55:45 PM
Hello ,

this is the first post and question here

thanks for all these modifications and i have a question regarding Image Annotation .

1 - Does it compatible with the latest version ? 1. 7. 7

2 - Does it add the water mark to the image it self or just an over layer ?

3 - if my question no2 is yes . .  how to add the water mark to the image it self to be stable even with download ??


thanks for help :)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on September 06, 2009, 05:16:06 PM
hi Dr-SeMSeM and welcome to 4images forum ...
1. yes ...
2. to the image it self ...
3. and also for downloding ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: tanveer on September 07, 2009, 01:31:07 PM
I did not get my reply. . . . . . . . . .


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Dr-SeMSeM on September 07, 2009, 09:22:13 PM
Thanks mawenzi for replaying me :)

another question please  :D

What about already exit pictures ??

does the mod applied on it too or not ??


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on September 07, 2009, 09:29:01 PM
@Dr-SeMSeM 

... with this MOD comes a plugin "Batch Annotate" for watermarking existing images ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Dr-SeMSeM on September 15, 2009, 12:38:22 AM
i installed it . .  but not working with me

also for Batch Annotate still giving me redirect pages and finally no water mark added . .

please can you upload a modified files for me then ill try it again ?

Quote  [Expand]
Warning: imagettftext() [function. imagettftext]: Could not find/open font in /hermes/web07/b1473/******/htdocs/*****xxx: /pics/includes/annotate. php on line 192


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on September 15, 2009, 12:50:03 AM
@Dr-SeMSeM 

... this was discussed several times here in this thread ...
... make sure you entered the correct path to your .ttf font file in the settings ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@no on September 15, 2009, 02:03:15 AM
Quote from: from installation instructions   [Expand]
If you get the "Could not find/open font", and you are sure, that you've set the right path and name, try removing the .ttf extension from the filename in MOD settings,  e.g., use  "/fonts/verdana", not "/fonts/verdana.ttf".


Title: Re: [Mod] Image Annotation (Watermark)
Post by: taru on September 28, 2009, 01:35:55 PM
How I must enter the correct path to my . ttf font file in the settings?
I put tahoma. ttf to my root directory.  But watermark doesnt appear in the images after loading.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Sun on September 28, 2009, 02:34:25 PM
Раз уж и сюда и в лс написал, то отвечу здесь :) . У меня так:

/home/имя БД/4images(или как там эта папка переименована)/bkant.ttf
Пример:
/home/u181128/4images/tahoma.ttf

А если БД на localhost, то вообще все просто - указывается полный путь до файла (только разделитель используется  "\", а не "/")

Пробуй загрузить как пользователь, но не из админ панели. Так у меня работает. Также работает если загрузить несколько фото на ftp, а потом их оптом загрузить(только я еще доп. мод V@no помогающий загрузке ставила и не знаю будет ли без него работать, так что попробуй отладить на первом).


Title: Re: [Mod] Image Annotation (Watermark)
Post by: V@nо on September 28, 2009, 09:40:49 PM
watermark не добавляется на картики добавленные в acp. dlya etogo est' batch watermark plugin

(dolbanye йцукенги, 5 minut potratil na to predlozhenie!)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ahsancharming on October 04, 2009, 03:06:23 AM
its not working ..the image uploads but i cant see my logo on it..
im using GD Bibliothek

is it supportable?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: GaYan on October 18, 2009, 09:02:46 AM
i have bunch of questions b4 installing this mod :D

1.will i be able to select a cat and watermark the photos in that cat ?
2.Is this supported with 1.7.6 ?
3.Has Any1 got a working Demo ?

Thats All :D  :mrgreen:


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on October 21, 2009, 09:54:16 PM
@GaYan

1. by using the Batch Annotate Plugin, you can select images by categories with individual watermak settings ...
2. yes, of course ...
3. yes ... link via sign ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: alekseyn1 on November 23, 2009, 09:48:29 AM
Gents,

Great mod! Thanks very much!

I have modified it as indicated on page one to work with cyrillic. And it works great if I use GD...

with imagemagik it watermarks with strings like in attachment... looks like wrong encoding...

Where is the problem?
Thanks in advance!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: saud on December 21, 2009, 03:55:32 AM
hiya

a little question!

whenever i tried to watermark with image expect of text , it gave me this error:

Quote  [Expand]
Annotating between image ID 5794 and 5796:
Processing image My Name Is Khan (2010) from category My Name Is Khan (2010), image ID 5794 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/jinii/public_html/wallpapers/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/jinii/public_html/wallpapers/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/jinii/public_html/wallpapers/includes/annotate.php on line 184





please help


Title: Re: [Mod] Image Annotation (Watermark)
Post by: k1lljoy on January 03, 2010, 08:47:45 AM
One question...

Why is the watermark-mod only working when I upload a .jpg file ?
It does not work with a .jpeg file or .gif .bmp .png , etc.!

Can somebody help me with that?

Friendly regards,
Benjamin


Somebody? :(
Any probable solutions for this issue?  :|


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Steffen13 on January 18, 2010, 12:14:13 PM
Hallo,

ich bekomme eine Fehlermeldung, sobald ich ein Bild nachträglich mit Wasserzeichen versehen möchte.


Grüße

1
2
3
4
5
6
7
8
9
10
11
Annotating between image ID 616 and 616:

Processing image 2010 Saisonende an der Steinlake from category Natur pur, image ID 616 >>
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /home/www/***/html/***/galerie/includes/annotate.php on line 95

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/www/***/html/***/galerie/includes/annotate.php on line 192

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/www/***/html/***/galerie/includes/annotate.php on line 193
OK

Finished!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Rembrandt on January 18, 2010, 01:57:18 PM

das steht aber im eingangspost drinnen das der pfad zu den fonts anzupassen ist.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Steffen13 on January 19, 2010, 06:47:07 PM

das steht aber im eingangspost drinnen das der pfad zu den fonts anzupassen ist.

Steht das da?

Wo genau?

Meinst du das?

1
2
3
4
5
6
7
8
9
<?php
header 
("Content-type: image/png");
$im imagecreate (18030);
$black imagecolorallocate ($im000);
$white imagecolorallocate ($im255255255);
imagettftext ($im1401021$white"/home/public_html/arial.ttf""GD Freetype test");
imagepng ($im);
imagedestroy ($im);
?>

wohl eher nicht?

Denn wenn ich ein bild hochlade, funktioniert es ja.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Rembrandt on January 19, 2010, 07:07:00 PM
...
Denn wenn ich ein bild hochlade, funktioniert es ja.
sorry, ich habe mich wohl falsch ausgedrück, ich meine eigentlich das hier:
Quote  [Expand]
If you get the "Could not find/open font", and you are sure, that you've set the right path and name, try removing the .ttf extension from the filename in MOD settings,  e.g., use  "/fonts/verdana", not "/fonts/verdana.ttf".

und deine von dir gepostet fehlermeldung sagt es ja auch aus ,das die fonts nicht gefunden werden.

sehe gerade das in der config der pfad einzugeben ist, oder?
$ann_font_path = $config['annotation_font'];


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Steffen13 on January 19, 2010, 07:14:38 PM
...
Denn wenn ich ein bild hochlade, funktioniert es ja.
sorry, ich habe mich wohl falsch ausgedrück, ich meine eigentlich das hier:
Quote  [Expand]
If you get the "Could not find/open font", and you are sure, that you've set the right path and name, try removing the .ttf extension from the filename in MOD settings,  e.g., use  "/fonts/verdana", not "/fonts/verdana.ttf".

und deine von dir gepostet fehlermeldung sagt es ja auch aus ,das die fonts nicht gefunden werden.

sehe gerade das in der config der pfad einzugeben ist, oder?
$ann_font_path = $config['annotation_font'];


Wenn ich die endung wegnehme, dann bekomme ich beim hochladen eines Bildes die Fehlermeldung über dem header.
lasse ich den namen "ARIAL.TTF" so wie es war, bekomme ich die Fehlermeldung beim hochladen nicht, dafür aber, beim Batch Annotate im ACP.
Komisch, oder?
Von welcher config sprichst du?

EDIT:
ok, endung kannich weglassen, und die Fehlermeldung erscheint nicht, wenn ich einen extra ordner anlege. also so wie im Beispiel. fonts/arial
trotzdem geht es nicht, im nachhinein die bilder mit einem Wasserzeichen zu versehen, dann bekomme ich wieder die Fehlermeldung im ACP

Grüße


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Rembrandt on January 19, 2010, 07:57:44 PM
im ACP sind doch die einstellungen vorzunehmen, nur ob dort nur der fond name oder der gesamte pfad einzugeben ist weis ich nicht.
ich denke mal mit pfadangabe.
aber vielleicht kann uns ja mal wer aufklären der den mod installiert hat.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Steffen13 on January 19, 2010, 11:41:12 PM
im ACP sind doch die einstellungen vorzunehmen, nur ob dort nur der fond name oder der gesamte pfad einzugeben ist weis ich nicht.
ich denke mal mit pfadangabe.


Das ist richtig,

legst du die font datei in den Galerieordner, also dort wo die index.php liegt, reicht es arial.ttf einzugeben. jetzt habe ich einen fontsordner angelegt und nun steht im ACP fonts/arial  ohne endung, und das funktioniert. Wie gesagt beim nachträglichen bearbeiten bekomme ich ne fehlermeldung.
Mal sehen, vielleicht tut sich noch was.
Danke dir aber erstmal für deine hilfe.

Grüße


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 02, 2010, 11:01:07 AM
Hi, hab ne Frage.
Funktioniert der MOD beim FTP-upload, oder nur beim Kategorie-upload?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on February 02, 2010, 11:05:59 AM
@honda2000
... nach dem FTP-Upload muss nur das Plugin "Batch Annotate" für die betreffenden Bilder ausgeführt werden ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Steffen13 on February 02, 2010, 11:07:29 AM
was aber auch nicht so ohne weiteres funktioniert,


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 02, 2010, 11:28:59 AM
Eben leider.
Also gibts nichts wirklich "fertiges" als Wasserzeichen, bei upload per FTP, oder?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on February 02, 2010, 05:20:30 PM
@honda2000
... also echt honda, wie sollte das funktionieren ...
... der FTP-Upload ... ein Upload ohne das Script von 4images, wie sollte da 4images das Wasserzeichen auf die Bilder bekommen ...
... das bereits zitierte Plugin, das mit diesem MOD mitkommt, arbeitet im ACP perfekt ... !
... die Wasserzeichen bekommst du wie folgt ganz schnell auf deine Bilder, die per FTP hochgeladen wurden ...
... FTP-Upload -> Plugin im ACP aufrufen -> Images_ID auswählen -> Plugin starten -> Wasserzeichen sind auf allen ausgewälten Bildern ...
... fertig ... in 15 Sek. ...
... auf diese Art und Weise kannst du auch alle Bilder nachträglich marken, die bereits vor der MOD-Installation auf deiner Seite waren ....
... was sollte da noch einfacher laufen ...
... ich denke mal, du hast das Plugin noch nicht getestet ... ;)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 02, 2010, 05:43:29 PM
Doch, und du wirst es nicht glauben, ich hab einen anderen Weg gefunden, geht perfekt per FTP!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Steffen13 on February 02, 2010, 05:45:19 PM
wies geht, verrätst du uns nicht, oder?  8)


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 02, 2010, 06:29:35 PM
Soll ich??

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

header
('content-type: image/jpeg');
$img $_GET['img'];
$watermark imagecreatefrompng('watermark.png');

$watermark_width imagesx($watermark);
$watermark_height imagesy($watermark);
$image imagecreatetruecolor($watermark_width$watermark_height);
$image imagecreatefromjpeg("$img");
$size getimagesize("$img");
$dest_x $size[0] - $watermark_width 5;
$dest_y $size[1] - $watermark_height 5;

imagecopymerge($image$watermark$dest_x$dest_y00$watermark_width$watermark_height100);
imagejpeg($image);
imagedestroy($image);
imagedestroy($watermark);

?>

watermark.png nach Belieben, ins Root,
jpg.html in: template/<dein-template>/media
1
<img src="./watermark.php?img={media_src}" border="1" alt="{image_name}"{width_height} /><br />




Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on February 02, 2010, 06:56:15 PM
@honda ....

1. dein Code-Schnipsel ist von batu544 [MOD] On-fly image annotation : http://www.4homepages.de/forum/index.php?topic=23434.0
2. ein Link hätte sicher genügt ...
3. dieses Watermark hat rein garnichts mit FTP-Upload zu tun, denn die Originalbilder bleiben bei diesem MOD unangetastet ...
4. beim Download sind diese Bilder ohne Watermark ... ! wozu dann ein Watermark ... ? schon getestet ... ?
5. dieses Watermark erzeugt eine ganz schöne Serverlast, da mit jedem Bildaufruf das Bild incl. Watermark komplett neu generiert wird ... !
6. der MOD heißt nicht umsonst ... ON-FLY ...
...
7. du kannst natürlich auf deinen Webseiten machen was du willst, doch sage nicht, du hast ein Watermark per FTP-Upload gefunden ... !


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 02, 2010, 07:15:29 PM
1. bekommt jedes Bild (egal wie es geladen wird und von wem) ein Wasserzeichen
2. ist selbst das Bild gegen Hotlinking somit halbwegs gesichert
3. zusammen mit einem Big-Folder (den ich aus deinen one Image - three Sizes) noch nicht zusammen bekommen habe, eine fast schon geniale Lösung.
4. will ja auf dem Orginalbild keiner ein Wasserzeichen, und eine Bildversion mit 580-900px Kantenlänge ist nicht druckfähig
5. wenn ich den 3. aus deinem one Image - Three Size hinbekomme, eine Ideallösung für z.B. Fotografen

Mit der Serverlast, okay, kommt auf den Server an, aber da kannst du unter Umständen Recht haben.



Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on February 02, 2010, 07:38:33 PM
... soweit alles ok ...
... doch solltest du deine Problemstellungen für das nächste mal genauer durchdenken und beschreiben ...
... denn wie bereits gesagt ... hat deine "Lösung" nichts mit FTP-Upload zu tun ... !
...
... wenn du "On-fly image annotation" benutzt, so kannst du dort noch deine gewünschte Ausgabegröße der Bilder (in px) für die Detailseite definieren ...
... dann benötigst du gar keine Big-Folder- und Three-Size-Lösung .... ;)
... die großen Original-Bilder liegen zum Download im normalen-Cat-Ordner ...
... die verkleinerten Bilder für die Detailseite werden jedes mal mit "On-fly image annotation" von den Originalbildern generiert ...
...
... 'ne perfekte Lösung, solange nicht all zu viele User auf der Website surfen ... sonst -> Serverlast ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 02, 2010, 09:33:15 PM
 :?: :?:
Halt, Stop, wo kann ich die gewünschte Ausgabegröße der Bilder (in px) für die Detailseite definieren???
(ohne die Orginal-Datei per Auto-Image-Resizer zu resizen??
Hätte gleich noch den riesigen Vorteil, die EXIf blieben auch noch erhalten!

Das wäre perfekt!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Rembrandt on February 02, 2010, 09:42:25 PM
in der media/ jpg.html aber perfekt ist da gar nichts drann.
oder willst du dir schnell mal ein par bilder einer hasselblad ansehn, mit was weis ich 40mb ?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 03, 2010, 06:53:01 AM
Das ist keine Antwort auf die Frage, wie ich innerhalb von On-fly image annotation : http://www.4homepages.de/forum/index.php?topic=23434.0 die Ausgabegröße in Pixel xY begrenzen kann!

Schön für dich, wenn du ne Hasselblad hast, ich möchte gar keine.

Wenn es nicht "perfekt" ist, hats als Mod auch nichts zu suchen im Forum!

Für m ich ist es perfekt, weil der Mediafile nicht verkleinert wird, keine 3 Ordner angelegt werden, und sowieso nur ganz wenige Menschen, die mediafils sehen!

Also,...

@Mawenzi, kannst du mir sagen, was ich einstellen muss, um die Größe zu begrenzen?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Rembrandt on February 03, 2010, 08:32:19 AM
Das ist keine Antwort auf die Frage, ...
nochmal, ein bspl.:
wenn das original bild sagen wir mal 20mb hat, und du nur die ansicht verkleinerst, werden immer die 20mb herrunter geladen bevor du das bild sehen kannst.

und nochmals, die ansicht so wie du denkst es ist perfekt, kannst du in der media/jpg.html begrenzen.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 03, 2010, 08:40:30 AM
Selbst Canons 1DsMKIII löst nur mit 21 Mb auf, Nikons D3x mit 24,1 MB, Bilder haben in der Regel etwa die Hälfte der MB, seltenst 2/3!

Wo steht denn, das es mehr als eine erstellte Thumbvorschau mit 250px geben muss und dazu einen Download mit voller Auzflösung?

Richtig ist aber, das man bei voller Auflösung und großem Medias recht viel Stream gibt, der aber bei vielen Hostern frei ist!

media/jpg.html
1
<img src="./watermark.php?img={media_src}" border="0" alt="{image_name}"{width_height} />
...dann muss ich aber "feste" Größen eingeben, oder kann man die proportional ändern/anzeigen lassen??


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Rembrandt on February 03, 2010, 05:22:04 PM
statt :
1
{width_height}

fügst du das ein:
1
style="width:{width}px;height:{height}px"

in der includes/functions.php:
suche :
1
2
"width" => $width,
"height" => $height,

ersetze es mit:
1
2
"width" => $width*.5,
"height" => $height*.5,

im Bspl. wird die höhe und weite des bildes mit dem factor "0.5" multipliziert, somit ist das bild um die hälfte kleiner.

glücklich?


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 03, 2010, 05:34:15 PM
Fast :D :D :D

"width" => $width*.5,
"height" => $height*.5, entspricht x 0.5 = halb so groß

Was muss ich einsetzen, damit es 5x kleiner ist??
.2 entspräche ja dem, oder?

Ich muss von rund 3600pix auf ca. 900pix verkleinern, das entspräche

Also wäre das rund 1/4??
.25??



Title: Re: [Mod] Image Annotation (Watermark)
Post by: Rembrandt on February 03, 2010, 05:36:29 PM
...
Was muss ich einsetzen, damit es 5x kleiner ist??

.2


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 03, 2010, 05:45:39 PM
Ah, meine grauen Zellen arbeiten noch, allerdings:

Quote  [Expand]
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /www/htdocs/w0071eb0/crearts/sportfoto/includes/functions.php on line 501
nach:
1
2
"width" => $width*.5,
"height" => $height*.5,
oder
1
2
"width" => $width*.2,
"height" => $height*.2,
also beginnend mit der Zeile "width"


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Rembrandt on February 03, 2010, 06:25:29 PM
^dann schreibs mal in klammer:
"width" => ($width*.5),


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 03, 2010, 07:07:27 PM
also, der richtige Code, ohne Fehler im PHP ist:
$width = "$width*.2";
$height = "$height*.2";
aber, er zeigt die orginale Größe an!
igg.html
1
<img src="./watermark.php?img={media_src}" border="0" alt="{image_name}" style="width:{width}px;height:{height}px" /><br />


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Rembrandt on February 03, 2010, 07:15:25 PM
ja aber ohne semikolon  ( ; )  zum schluss.
du mußt die änderung im abschnitt der " function get_media_code " machen, und dort in:

1
2
3
4
5
6
7
8
9
10
$site_template->register_vars(array(
"media_src" => $media_src,
      "media_icon" => $media_icon,
      "image_name" => format_text($image_name, 2),
      "width_height" => $width_height,
      "width" => $width*.5,
      "height" => $height*.5,
      "iptc_info" => $iptc_info,
      "exif_info" => $exif_info
    ));

und natürlich die änderung in der jpg.html nicht vergessen.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: honda2000 on February 03, 2010, 07:39:15 PM
 :lol:
Perfekt, das wars!

Ich war etwas weiter oben in
1
2
3
4
5
$width_height = "";
    $width = "";
    $height = "";
    $iptc_info = "";
    $exif_info = "";
geraten.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ***elvis*** on April 16, 2010, 08:06:28 PM
Hatte natürlich auch zunächst nicht den absoluten Pfad für Bid / *.ttf angegeben  :oops:

Jetzt läuft es :D

Nochmal zum Thema FTP upload.

Das funktioniert einwandfrei. Ich lade meine Bilder ausschließlich per FTP .

Nutze ja diesem Mod hier (annotation_1_4 http://www.4homepages.de/forum/index.php?topic=13719.0 (http://www.4homepages.de/forum/index.php?topic=13719.0)) in Verbindung mit dieser Checkimages http://www.4homepages.de/forum/index.php?topic=4754.0 (http://www.4homepages.de/forum/index.php?topic=4754.0) Die habe ich komplett vorkonfiguriert. Klicke nur noch "Neue Bilder checken" und "Hinzufügen".

Originalbilder kommen in den /download Ordner, Bild für Details wird erstellt und bekommt ein Wasserzeichen drüber aus einem Bid, ebenso wird auch das Thumb erstellt.

Dazu habe ich noch eine Frage. Wie kann ich dem Mod beibringen das Wasserzeichen nicht über die Thumbs zu erstellen. Da stört das Wasserzeichen eher? Wenn ich die Bilder zunächst ohne Wasserzeichen in die Datenbank lade und hinterher mittels "batch annotate" das Wasserzeichen integriere, geschieht das nur bei den Details-Bildern nicht bei den Thumbs. Genu so sollte es aber auch schon beim Hochladen mittels checkimage passieren.

DANKE


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ***elvis*** on April 18, 2010, 08:20:07 PM
...Wie kann ich dem Mod beibringen das Wasserzeichen nicht über die Thumbs zu erstellen...

Gibts da keine Lösung? mhh


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bexx on May 07, 2010, 05:28:49 PM
hallo erstmal^^

irgendwie wird bei mir nichts abgezeigt, laut test funzt alles perfekt:

es erscheint jedenfalls ein schwarzer hintergrund mit weisser schrift: GD Freetyp test

Nur auf den Bilde wird rein gar nichts angezeit, wenn ich beispeilweise den batch ausführen möchte erscheint:

No category selected, nothing to annotate...

Finished!

und beim hochladen passiert auch nichts...an was könnte es liegen? wäre super wenn mir jemand helfen könnte!

GD und alles ander hat funktionen:

GD Support    enabled
GD Version    bundled (2.0.34 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.3.12
T1Lib Support    enabled
GIF Read Support    enabled
GIF Create Support    enabled
JPEG Support    enabled
libJPEG Version    6b
PNG Support    enabled
libPNG Version    1.2.27
WBMP Support    enabled
XBM Support    enabled
JIS-mapped Japanese Font Support    enabled

gruss


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bexx on May 09, 2010, 09:49:00 AM
gibts hier in dem forum überhaupt noch leben? oder isses schon ausgestorben? mmh....


Title: Re: [Mod] Image Annotation (Watermark)
Post by: rinaldos on May 10, 2010, 05:23:44 PM
Hallo und herzlich Willkommen,
es sind gerade mal zwei Tage nach Deiner Anfrage vergangen. Wenn du den Mod richtig installiert hast, sollte es auch gehen. Nur aus Deienr Fehlerbeschreibung geht einfach nichts draus hervor.
Ich gehe mal davon aus, das du die 60 Seiten durchgelesen hast und versucht hast das Problem zu lösen? Ich habe den Mod selber nicht installiert, daher kann es ein wenig dauern, bis die Personen, welche den Mod auch installiert haben, die Zeit finden, sich um Dein Problem zu kümmern. Sei bitte nicht ungeduldig, aber hier im Foruzm herscht Leben und bisher gab es auch für jedes Problem eine Lösung. :-)

Gruß


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on May 10, 2010, 09:53:48 PM
@bexx

... und welche Einstellungen hast du für das Watermark im ACP vorgenommen ... ?
... Bild oder Schrift usw. ... ?
... hast du die möglichen Varianten schon alle durchgetestet ... ?
... denn letztendlich wird der Fehler in deiner MOD-Installation liegen ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: bexx on May 11, 2010, 06:36:56 PM
hallo

sehr schön das doch jemand da ist...

mmh also ich habe alles laut anleitung gemacht, habe auch mal die hier im thread gezeigte fehleranalyse durchgeführt mir werden keine fehler angezeigt.

als absolutne pfad habe ich dieses nagegeben: users/benrender/www/arial.ttf

so wird es auf dem space auch benutzt.

ansonsten ist text grösse 10 angegeben

unterhal rechte ecke

schatten
quali 80

als text:

Text stört? Registriere dich!

Automatische Annotation-Funktion beim Upload ist auf ja

gruss


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Player73 on May 18, 2010, 09:06:02 PM
Hallo,

in der Installationsanleitung steht:

"Please check out all fields shown below.
If they do not correspond to your settings, please
DO NOT START INSTALLER! "

Nun Prefix for tables in database   phpbb3_
stimmt so nicht.

Ich habe eine Bridge installiert zwischen joomla --> phpbb3 --> 4images

darf ich es dann riskieren das einfach drüber zu installieren?
das präfix sollte eigentlich "4images" sein


Title: Re: [Mod] Image Annotation (Watermark)
Post by: dorin on October 16, 2010, 01:26:12 PM
Quote  [Expand]
Video tutorial for this mod:
http://www.asian-lady.org/tutors/annotation2-mod/annotation2-mod.html

link is dead.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: muminkardes on January 01, 2011, 11:04:23 PM
hoi this is my problem

Warning: require(admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/mahzemin/public_html/resim-galeri/admin/plugins/ann_settings.php on line 5

Warning: require(admin_global.php) [function.require]: failed to open stream: No such file or directory in /home/mahzemin/public_html/resim-galeri/admin/plugins/ann_settings.php on line 5

Fatal error: require() [function.require]: Failed opening required 'admin_global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mahzemin/public_html/resim-galeri/admin/plugins/ann_settings.php on line 5


when i open the ann.settings.php


Title: Re: [Mod] Image Annotation (Watermark)
Post by: MrAndrew on April 14, 2011, 05:46:48 AM
I have this problem with encoding... How to resolve this???

See attached file


Title: Re: [Mod] Image Annotation (Watermark)
Post by: yopic on November 11, 2011, 04:15:27 PM
Hallo zusammen,

ich habe das Mod eingeabut und es funktioniert auch soweit gaz gut.

Nun ist es so, das ich meine Bilder für GB zur Verfügung stelle und ich gerne auch dort das Wasserzeichen drauf gesetzt hätte, leider geht das aber wohl nicht.

Das heißt, auf der Seite gb-power.de sind die Wasserzeichen enthalten, aber sobald man das Bild in ein fremdes GB z.B: bei Jappy per Code veröffentlicht, ist das Wasserzeichen weg.

Was kann man tun, damit das Wasserzeichen permanent auf dem Bild verbleibt, also kein Wasserzeichen drüber legen, sondern ein Wasserzeichen integrieren?

Vielen Dank schon einmal für eure Antworten.

Gruß

Frank



Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on November 11, 2011, 05:42:21 PM
Hallo Frank ...

... zunächst willkommen im 4images-Forum ...

Aber offensichtlich schreibst du deine Anfrage in den falschen MOD-Thread, denn diese Matermark-Modifikation von Sll schreibt das Wasserzeichen beim Upload direkt in die Bilder, die dann auch so abgespeichert werden. Und egal von wo du dann diese Bilder aufrufen lässt, es ist immer das Wasserzeichen auf dem Bild !

Du hast mit Sicherheit diese Watermark-Modifikation von batu544 (http://www.4homepages.de/forum/index.php?topic=23434.0) installiert, da liegt dass Wasserzeichen "nur" als div-Layer über dem Bild, so dass beim direkten Aufruf der Bilder das Wasserzeichen nicht mit angezeigt wird.

Was folgt nun daraus ?

Ganz einfach, du musst diese Watermakt-Modifikation von Sll (http://www.4homepages.de/forum/index.php?topic=13719.0) (nämlich die aus diesem Thread ... ;) ) installieren und dein Problem ist gelöst. btw. dieses Watermark arbeitet perfekt, ermöglicht die Einbindung von Text mit Schatten, Bildern und hat im ACP diverse Einstellmöglichkeiten, ohne dass Dateien editiert werden müssen ... halt top.

Gruss mawenzi


Title: Re: [Mod] Image Annotation (Watermark)
Post by: yopic on November 11, 2011, 05:49:34 PM
Hallo mawenzi,

vielen Dank für die schnelle Antwort.

Dann werd ich mal das Mod einbauen, sicherlich hab ich die 2 Mods dann verwechselt.

Danke!!!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: mawenzi on November 11, 2011, 05:56:04 PM
... sicherlich hab ich die 2 Mods dann verwechselt ...

... ja, und da muss man auch erst einmal drauf kommen um eine passende Antwort geben zu können ...
... viel Erfolg bei der Installation ...


Title: Re: [Mod] Image Annotation (Watermark)
Post by: yopic on November 11, 2011, 06:06:53 PM
Hallo mawenzi,

jetzt habe ich noch einmal genau nach gesehen, und ich habe doch dieses MOD eingebaut. Definitiv.

Wenn aber dann das Wasserzeichen eigentlich permanent auf dem Bild liegt, wo könnte dann der Fehler liegen?

Gruß

Frank


Title: Re: [Mod] Image Annotation (Watermark)
Post by: partymunich.de on March 19, 2012, 11:59:08 PM
Hallo,

bei mir wird bei einem Bildupload kein Wasserzeichen automatisch gesetzt. Und auch wenn ich es anschließend über die "Batch Annotate" Funktion versuche kommt nur folgendes:

Quote  [Expand]
Annotating between image ID 88 and 88:
Processing image egt from category Cielo Club, image ID 88 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/www/web169/html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/www/web169/html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/www/web169/html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/www/web169/html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/www/web169/html/includes/annotate.php on line 186
OK
Finished!

hat jemand eine Ahnung woran das liegen könnte?

Vielen Dank!!


Title: Re: [Mod] Image Annotation (Watermark)
Post by: Bugfixed on May 04, 2012, 05:35:26 PM
Hello thanks for mod.
I've installed this mod, ok works. perfect.

photo then install but get the following error. However, this software is performing.


1
2
3
Notice: Use of undefined constant jpg - assumed 'jpg' in member.php on line 562

Notice: Undefined variable: user_info inannotate.php on line 72

My system: 4images 1.7.10, Httpd 2.2.21.x, Php 5.3.10.x, mysql 5.5.23.x on centos 5.8

Please help me. thanks.


Title: Re: [Mod] Image Annotation (Watermark)
Post by: chamkani.net on June 02, 2012, 12:05:25 PM
Warning: imagesx(): supplied argument is not a valid Image resource in /home/khyber/public_html/gallery/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/khyber/public_html/gallery/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/khyber/public_html/gallery/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/khyber/public_html/gallery/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/khyber/public_html/gallery/includes/annotate.php on line 186
Working on data/media/4/timeline.jpg file
Thumbnail created.
Added annotation in data/media/4/timeline.jpg file.
Image added: timeline


Title: Re: [Mod] Image Annotation (Watermark)
Post by: ZHAKKAS.com on June 22, 2012, 08:33:00 AM
Helllo Sir,
     I have integrated the Annotation Watermark module, and i have done it step by step with any error. And even i have set Watermark Text from admin panel..... But still when i look into the images on my gallery i don't see any watermark on the images.

The module i have used is: http://www.4homepages.de/forum/index.php?topic=13719.0

Its not working, Check my site: www(.)walllpapers.zhakkas(.)com


Title: Re: [Mod] Image Annotation (Watermark)
Post by: alghorabaa on June 16, 2013, 04:35:19 PM
@ ZHAKKAS.com

I have the same problem, no watermark appears even though I did everything correctly ...
any idea ?