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

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

0 Members and 3 Guests are viewing this topic.

Offline Nca

  • Newbie
  • *
  • Posts: 34
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #210 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.

Offline Yegor

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • http://www.planetboredom.net
[Mod] Image Annotation (Watermark)
« Reply #211 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.
PlanetBoredom.net
 - Things to do when you are bored.  [ Advertise ]

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #212 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

Offline NeoNuss

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
standard path of ImageMagick
« Reply #213 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

Offline Yegor

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • http://www.planetboredom.net
[Mod] Image Annotation (Watermark)
« Reply #214 on: June 17, 2003, 03:09:37 AM »
Quote from: SLL
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.
PlanetBoredom.net
 - Things to do when you are bored.  [ Advertise ]

Offline NeoNuss

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #215 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)??

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #216 on: June 20, 2003, 11:31:20 AM »
Quote from: Yegor
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...

Offline popo

  • Pre-Newbie
  • Posts: 8
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #217 on: June 22, 2003, 02:55:15 AM »
Quote from: SLL
Quote from: popo
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

Offline Yegor

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • http://www.planetboredom.net
[Mod] Image Annotation (Watermark)
« Reply #218 on: June 24, 2003, 04:27:14 AM »
Quote from: SLL
Quote from: Yegor
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*
PlanetBoredom.net
 - Things to do when you are bored.  [ Advertise ]

Offline Yegor

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • http://www.planetboredom.net
[Mod] Image Annotation (Watermark)
« Reply #219 on: June 24, 2003, 05:01:53 AM »
Quote from: V@no
in /includes/image_utils.php find two times:
Code: [Select]
 $resize_handle = "resize_image_".$convert_options['convert_tool'];
replace both with:
Code: [Select]
 $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
PlanetBoredom.net
 - Things to do when you are bored.  [ Advertise ]

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #220 on: June 24, 2003, 07:53:42 AM »
Quote from: Yegor
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

Offline nccsoft

  • Pre-Newbie
  • Posts: 5
    • View Profile
not working...
« Reply #221 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
Code: [Select]
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
Code: [Select]
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
Code: [Select]
/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.
Code: [Select]
/usr/local/bin/convert: Missing an image filename.

I telnet server in 4images root and command
Code: [Select]
/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..
--
Digital man & womam http://phpbb.mychat.to

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
Re: not working...
« Reply #222 on: June 24, 2003, 11:02:46 AM »
Quote from: nccsoft
Code: [Select]
/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

Offline nccsoft

  • Pre-Newbie
  • Posts: 5
    • View Profile
[Mod] Image Annotation (Watermark)
« Reply #223 on: June 24, 2003, 11:22:10 AM »
Thx answer.
yes. DSCN0628.JPG.bak created.
so I telnet server in 4images root run
Code: [Select]
/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.
--
Digital man & womam http://phpbb.mychat.to

Offline Yegor

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • http://www.planetboredom.net
[Mod] Image Annotation (Watermark)
« Reply #224 on: June 24, 2003, 11:02:44 PM »
Quote from: SLL
Quote from: Yegor
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?
PlanetBoredom.net
 - Things to do when you are bored.  [ Advertise ]