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

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

0 Members and 2 Guests are viewing this topic.

Offline traxxus

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #615 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:
« Last Edit: August 02, 2007, 01:44:59 PM by traxxus »

Offline beroshima

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #616 on: August 03, 2007, 10:00:48 PM »
@mawenzi
der download link schein wieder offline zu sein.
Kannst du das bitte checken?

Danke.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #617 on: August 03, 2007, 10:06:17 PM »
@beroshima

... gecheckt ... für mich funktioniert der Download ... ;)
... Bitte ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline beroshima

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

Offline beroshima

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #619 on: August 04, 2007, 11:15:21 AM »
Vielen dank.  :D

Offline mathuatden

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #620 on: August 05, 2007, 07:13:40 AM »
How i can add this mod for 4images 1.7.4

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #621 on: August 05, 2007, 02:23:44 PM »
Quote
How i can add this mod for 4images 1.7.4

Error message ? Source ? URL to problem ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline mathuatden

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

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #623 on: August 05, 2007, 03:27:50 PM »
I can help but need to know error message ... what is say for no work ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline mathuatden

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #624 on: August 05, 2007, 03:34:31 PM »
after add this mod i don't see it work

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #625 on: August 05, 2007, 03:44:39 PM »
Quote
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.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline pda

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

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:
Code: [Select]
}
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:
Code: [Select]
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:
Code: [Select]

if ($ann_tool == "im") {

if ($use_image) {


Replace the $command line, which is directly under the search result, with the following $command
Code: [Select]
$command = $convert_options['convert_path']."/composite -dissolve  $annotation_embed_image_opacity% -gravity $watermarkImagePos \"$ann_embed_image\" \"$ann_src\" \"$ann_dest\"";

Offline [M]ike

  • Newbie
  • *
  • Posts: 15
  • That guy who usually needs help...
    • View Profile
    • Messenger Display Pictures
Re: [Mod] Image Annotation (Watermark)
« Reply #627 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.
Code: [Select]
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.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Image Annotation (Watermark)
« Reply #628 on: August 18, 2007, 03:52:36 PM »
Edit define('ROOT_PATH', './../'); line ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline [M]ike

  • Newbie
  • *
  • Posts: 15
  • That guy who usually needs help...
    • View Profile
    • Messenger Display Pictures
Re: [Mod] Image Annotation (Watermark)
« Reply #629 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)