Script For Protection Pictures

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Script For Protection Pictures

    Like mehos have in his new forum for all pictures in galery?That in every picture automaticly write somethig,for example my addres etc. I need this kind of protection,so if anybody have this script for wap,please help me.

    #2
    you mean phpthumbs?
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      this may help if it is what yu want.

      http://phpthumb.sourceforge.net/#download

      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #4
        i think its watermak

        <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>/*
        http://www.url.com/script.php?pn=Image%20R...ark&pid=198

        Usage:
        1. Parameters are passed via URL: image.php?image=1.jpg;
        2. You can set the type of your output image to JPG, GIF or PNG format like this: image.php?image=1.jpg&type=png; If you don&#39;t specify the type of the output image, the script will output the image in the original format image.php?image=1.jpg;
        3. To add a watermark to image you heave to set 2 variables: watermark_text and watermark_color(optional).Black will be use if you do not set the watermark_color;
        Example:
        1) image.php?image=1.jpg&watermark_text=1234567890&wa termark_color=fffff;
        2) image.php?image=1.jpg&watermark_text=1234567890;
        4. Resizing images:
        a. Exact size:
        Variables: w and h
        Example: image.php?image=1.jpg&w=100&h=100
        b. Maxim size:
        Variable: maxim_size
        Example: image.php?image=1.jpg&maxim_size=300
        c. Percent:
        Variable: percent
        Example: image.php?image=1.jpg&percent=50
        d. Square:
        Variable: square
        Example: image.php?image=1.jpg&square=100
        I use this type of resizing for creating thumbnails that heave the same size

        */

        if($_GET[&#39;image&#39;]){
        $image = $_GET[&#39;image&#39;];

        if($_GET[&#39;type&#39;]=="jpg"){
        header("Content-type: image/jpeg");
        }elseif($_GET[&#39;type&#39;]=="gif"){
        header("Content-type: image/gif");
        }elseif($_GET[&#39;type&#39;]=="png"){
        header("Content-type: image/png");
        }else{
        if(substr($image, -3)=="jpg" || substr($image, -3)=="JPG"){header("Content-type: image/jpeg");}
        elseif(substr($image, -3)=="gif" || substr($image, -3)=="GIF"){header("Content-type: image/gif");}
        elseif(substr($image, -3)=="png" || substr($image, -3)=="PNG"){header("Content-type: image/png");}
        }

        if(substr($image, -3)=="jpg" || substr($image, -3)=="JPG"){$im = imagecreatefromjpeg($image);}
        elseif(substr($image, -3)=="gif" || substr($image, -3)=="GIF"){$im = imagecreatefromgif($image);}
        elseif(substr($image, -3)=="png" || substr($image, -3)=="PNG"){$im = imagecreatefrompng($image);}

        if($_GET[&#39;percent&#39;]){
        $x = round((imagesx($im)*$_GET[&#39;percent&#39;])/100);
        $y = round((imagesy($im)*$_GET[&#39;percent&#39;])/100);
        $yyy=0;
        $xxx=0;
        $imw = imagecreatetruecolor($x,$y);
        }elseif($_GET[&#39;w&#39;] and $_GET[&#39;h&#39;]){
        $x = $_GET[&#39;w&#39;];
        $y = $_GET[&#39;h&#39;];
        $yyy=0;
        $xxx=0;
        $imw = imagecreatetruecolor($x,$y);
        }elseif($_GET[&#39;maxim_size&#39;]){
        if(imagesy($im)>=$_GET[&#39;maxim_size&#39;] || imagesx($im)>=$_GET[&#39;maxim_size&#39;]){
        if(imagesy($im)>=imagesx($im)){
        $y = $_GET[&#39;maxim_size&#39;];
        $x = ($y*imagesx($im))/imagesy($im);
        }else{
        $x = $_GET[&#39;maxim_size&#39;];
        $y = ($x*imagesy($im))/imagesx($im);
        }
        }else{
        $x = imagesx($im);
        $y = imagesy($im);
        }
        $yyy=0;
        $xxx=0;
        $imw = imagecreatetruecolor($x,$y);
        }elseif($_GET[&#39;square&#39;]){
        if(imagesy($im)>=$_GET[&#39;square&#39;] || imagesx($im)>=$_GET[&#39;square&#39;]){
        if(imagesy($im)>=imagesx($im)){
        $x = $_GET[&#39;square&#39;];
        $y = ($x*imagesy($im))/imagesx($im);
        $yyy=-($y-$x)/2;
        $xxx=0;
        }else{
        $y = $_GET[&#39;square&#39;];
        $x = ($y*imagesx($im))/imagesy($im);
        $xxx=-($x-$y)/2;
        $yyy=0;
        }
        }else{
        $x = imagesx($im);
        $y = imagesy($im);
        $yyy=0;
        $xxx=0;
        }
        $imw = imagecreatetruecolor($_GET[&#39;square&#39;],$_GET[&#39;square&#39;]);
        }else{
        $x = imagesx($im);
        $y = imagesy($im);
        $yyy=0;
        $xxx=0;
        $imw = imagecreatetruecolor($x,$y);
        }

        imagecopyresampled($imw, $im, $xxx,$yyy,0,0,$x,$y,imagesx($im), imagesy($im));

        if($_GET[&#39;watermark_text&#39;]){
        if($_GET[&#39;watermark_color&#39;]){$watermark_color=$_GET[&#39;watermark_color&#39;];
        }else{
        $watermark_color="000000";
        }
        $red=hexdec(substr($watermark_color,0,2));
        $green=hexdec(substr($watermark_color,2,2));
        $blue=hexdec(substr($watermark_color,4,2));

        $text_col = imagecolorallocate($imw, $red,$green,$blue);
        $font = "georgia.ttf"; //this font(georgia.ttf) heave to be in the same directory as this script
        $font_size = 12;
        $angle = 0;
        $box = imagettfbbox($font_size, $angle, $font, $_GET[&#39;watermark_text&#39;]);
        $x = 5;
        $y = 17;
        imagettftext($imw, $font_size, $angle, $x, $y, $text_col, $font, $_GET[&#39;watermark_text&#39;]);

        }

        if($_GET[&#39;type&#39;]=="jpg"){imagejpeg($imw);}
        elseif($_GET[&#39;type&#39;]=="gif"){imagegif($imw);}
        elseif($_GET[&#39;type&#39;]=="png"){imagepng($imw);}
        else{
        if(substr($image, -3)=="jpg" || substr($image, -3)=="JPG"){imagejpeg($imw);}
        elseif(substr($image, -3)=="gif" || substr($image, -3)=="GIF"){imagegif($imw);}
        elseif(substr($image, -3)=="png" || substr($image, -3)=="PNG"){imagepng($imw);}
        }

        imagedestroy($imw);
        }
        ?></div>

        Comment


          #5
          you means hiding the pic in the folders ??

          etc

          folder "/file/" ??

          just create 1 .htaccess in the folder ..

          and put this code below ..

          IndexIgnore *


          or ..

          some htaccess trick ..

          go to ...

          http://www.google.com.my/search?hl=en&...earch&meta=

          Comment


            #6
            why do people allways want to copy other people? its boring to see the same **** on every site

            Comment


              #7
              I mean this (look picture) this is on every picture automatically.

              And answer 4 amy: i am trying to be different,but when you are beginner,your first steps are to copy somebody-this is way to make your own style.
              Attached Files

              Comment


                #8
                Like a trademark if you could call it that

                Click here!!!

                Comment


                  #9
                  I mean this (look picture) this is on every picture automatically.

                  And answer 4 amy: i am trying to be different,but when you are beginner,your first steps are to copy somebody-this is way to make your own style.[/b]
                  protection??
                  useless.......
                  why?
                  see example



                  (omg?) :D
                  It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                  ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                  ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                  キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                  Comment


                    #10
                    yeh am thinkin the same i thought she wanted to protect the images, then goes on to sayin she wants this. some people
                    Want something coded email me at sales@webnwaphost.com for a prices.




                    Comment


                      #11
                      thats a load of crap anyone with the even basic of picture editing skills can remove the watermark from the image
                      plus why protect images? the reason why people put thier site addresses watermarked into pics is so they can spam nothing more to it

                      Comment


                        #12
                        this is for my chat,this protection will be on pictures of users
                        you and I can remove the watermark but average user when see protection he will not copy someone picture and use it on another chat/forum (like this picture is his) do you understand me now?

                        Comment


                          #13
                          but why ??? u at images add at alt "no_save" and from browser mobile not can save ....

                          but...4 web browser use:

                          Code:
                          <script language=JavaScript>
                          <!--
                          
                          var message="images protected!";
                          
                          ///////////////////////////////////
                          function clickIE4(){
                          if (event.button==2){
                          alert(message);
                          return false;
                          }
                          }
                          
                          function clickNS4(e){
                          if (document.layers||document.getElementById&&!document.all){
                          if (e.which==2||e.which==3){
                          alert(message);
                          return false;
                          }
                          }
                          }
                          
                          if (document.layers){
                          document.captureEvents(Event.MOUSEDOWN);
                          document.onmousedown=clickNS4;
                          }
                          else if (document.all&&!document.getElementById){
                          document.onmousedown=clickIE4;
                          }
                          
                          document.oncontextmenu=new Function("alert(message);return false")
                          
                          // --> 
                          </script>
                          if like my post click:

                          http://coding-talk.com/images/totall...ost_thanks.gif

                          Comment


                            #14
                            i need code for watermark on wap,so if someone wish to help i will be very happy,but if you wtireing that this is a load of crap -better don&#39;t
                            that is yours problem-not mine

                            It is ok that someone can save picture,whay not?He wish to have picture of his frined-but in 80% if picture have watermark he will not abuse this picture (upload picture somewhere and tell that in this picture is other person,or that is his picture)

                            Comment


                              #15
                              this is what u want
                              Attached Files
                              Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                              <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                              Comment

                              Working...
                              X