• [MOD] On-fly image annotation ( watermark) 4 0 5 1
Currently:  

Author Topic: [MOD] On-fly image annotation ( watermark)  (Read 92513 times)

0 Members and 1 Guest are viewing this topic.

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] On-fly image annotation ( watermark)
« Reply #30 on: November 29, 2009, 12:52:19 PM »
Many thanks for this Mod,it is more easy and useful than other Watermarkmod.
Just easy and quick to use and works without error... :D

Is it possible to have transparent background on WatermarkImage?
I was saved with transparente but it shows black bg

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] On-fly image annotation ( watermark)
« Reply #31 on: November 30, 2009, 12:09:38 PM »
Rotlicht6 ,
                It should be transparent, if you are using a transparent  png file. I think you are doing some mistake in creating a transparent image. ( I have not much idea also in creating these images :) ) ..


Try once again with another transparent png file..


Thanks,
batu544

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: On-fly image annotation ( watermark).
« Reply #32 on: December 08, 2009, 10:52:43 AM »
Hi batu544 ...

2. if you want to show the watermark only to guests (non registered users), use this in your jpg.html ...
Code: [Select]
{if user_loggedin}<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />{endif user_loggedin}
{if user_loggedout}<img src="./watermark.php?img={media_src}" border="1" alt="{image_name}"{width_height} /><br />{endif user_loggedout}

hallo,
wenn ich nun aber das bild bearbeiten anklicke, öffnet sich es zweimal im acp. hast du dafür noch eine lösung?

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] On-fly image annotation ( watermark)
« Reply #33 on: December 08, 2009, 02:24:45 PM »
Hi Loda,
            I am sorry .. I didn't get your question correctly.. There is nothing related to ACP in this MOD. Please post your question in English.. so that it will be easier for me to understand it.

Thanks,
batu544

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] On-fly image annotation ( watermark)
« Reply #34 on: December 08, 2009, 03:13:36 PM »
ok,
if you click in the detail page on the edit link for an image you see two pictures in the edit page. mawenzi's code in the jpg.html is the reason i think.

Offline Yan

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] On-fly image annotation ( watermark)
« Reply #35 on: December 20, 2009, 12:16:54 AM »
Why watermark not transparent? I use transparent png  :(

Offline Kobor

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] On-fly image annotation ( watermark)
« Reply #36 on: March 15, 2010, 10:49:30 PM »
Hallo,

erstmal "Danke" für diesen Mod. Genau sowas habe ich gesucht :)
Leider habe ich aber ein Problem. Und zwar nimmt die Qualität der Bilder extrem ab sobald der Schriftzug (watermark.png) angezeigt wird.
Wenn ich mich jetzt einlogge ist die Qualität wieder im Original. Gibt es da eine Lösung?

Internetseite: xxx: foto-doden. de

Wäre sehr nett wenn ihr einen Tipp für mich hättet.

Gruß,
Jens

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] On-fly image annotation ( watermark)
« Reply #37 on: May 26, 2010, 04:55:20 PM »
How Can I Add More Extension in this code.
e.g. png,gif ect.
---------------------------------------
Code: [Select]
<?php
header
('content-type: image/[b]jpeg[/b]');
$img $_GET['img'];
$watermark imagecreatefrompng('logo.png');
$watermark_width imagesx($watermark);
$watermark_height imagesy($watermark);
$image imagecreatetruecolor($watermark_width$watermark_height);
$image imagecreatefrom[b]jpeg[/b]("$img");
$size getimagesize("$img");
$dest_x $size[0] - $watermark_width 5;
$dest_y $size[1] - $watermark_height 730;
imagecopymerge($image$watermark$dest_x$dest_y00$watermark_width$watermark_height100);
image[b]jpeg[/b]($image);
imagedestroy($image);
imagedestroy($watermark);
?>

Das würde ich auch gerne wissen!

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] On-fly image annotation ( watermark)
« Reply #38 on: May 27, 2010, 03:27:23 PM »
Sumale.nin,

                I am not sure .. but I think the below code should work fine for png, gif and jpg extensions..

Code: [Select]
<?php

$img 
$_GET['img'];
$watermark imagecreatefrompng('watermark.png');

$watermark_width imagesx($watermark);
$watermark_height imagesy($watermark);
$image imagecreatetruecolor($watermark_width$watermark_height);
//$image = imagecreatefromjpeg("$img");
$image = @imageCreateFromString(file_get_contents("$img"));
$size getimagesize("$img");
$dest_x $size[0] - $watermark_width 5;
$dest_y $size[1] - $watermark_height 5;

header("Content-Type: ".$size['mime']);

imagecopy($image$watermark$dest_x$dest_y00$watermark_width$watermark_height);

//imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, 100);
//imagejpeg($image);
   
switch ($size[2]) {
      case 
1:
         
imageGIF($image);
         break;
      case 
2:
         
imageJPEG($imageNULL100);
         break;
      case 
3:
         
imagePNG($image);
         break;
         }

imagedestroy($image);
imagedestroy($watermark);
return 
true ;
?>


MrAndrew ,

   Never mind, one or two points are influenced by your code..  :)



Thanks,
batu544

Offline scrat

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] On-fly image annotation ( watermark)
« Reply #39 on: May 31, 2010, 07:25:25 PM »
habe das mal eingebaut, bekomme aber nur in den details statt des bildes nur ein großes weisses viereck ausgegeben...das bild bekomme ich nicht angezeigt..hat einer ne lösung?

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] On-fly image annotation ( watermark)
« Reply #40 on: May 31, 2010, 09:15:34 PM »
scrat,
          Please let us know, what exactly you did ?

Thanks,
batu544

Offline scrat

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] On-fly image annotation ( watermark)
« Reply #41 on: May 31, 2010, 10:40:25 PM »
ok...thats not problem.In the details from pic, i become follow graphic:

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] On-fly image annotation ( watermark)
« Reply #42 on: June 01, 2010, 01:24:30 PM »
hi,
    Please provide your website link.. let me see the error in actuals.. may be I can help you after that..

Thanks,
batu544

Offline scrat

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] On-fly image annotation ( watermark)
« Reply #43 on: June 02, 2010, 04:07:57 PM »
hehe ich depp hatte vergessen, das watermark.png in den root zu laden...läuft alles fehlerfrei....sorry :mrgreen: :mrgreen: :mrgreen:

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] On-fly image annotation ( watermark)
« Reply #44 on: June 21, 2010, 06:49:08 AM »
HI it works  fine with jpeg but when im trying to make this work with png its not working help please how can i make this work with .png also