Bild mit text überziehen

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Bild mit text überziehen

    also ich weiß nicht, wie ich das anstellen soll......

    ich möchte gerne, das user bilder uploaden können. nachdem uploaden soll dann ein thumbnail von dem bild angezeigt werden. soweit ist ja alles klar.

    aber wie mache ich es nun, dass das thumbnail mit einem halbtransparenten text überzogen wird (z.b. copyright) oder ähnliches?
    oder das man ein wasserzeichen mit dem logo der seite über das bild legt, damit man das bild nicht einfach speichern kann....

    ich weiß das es hier schon soetwas gibt, allerdings wird dafür eine gd-library benötigt. gibt es auch eine möglichkeit ohne gd-library bilder zu verändern?
    Zuletzt geändert von jazzdee; 11.02.2003, 14:32.

  • #2
    GD ist für die meißten Aktionen mit Bildern nötig.

    Also für ein Wasserzeichen auf jeden Fall, kannst dich mal auf die Suche machen, ob für Text auch zwingend notwendig ist. Glaube nicht...

    Kommentar


    • #3
      auch für das einbinden von text IN DAS BILD benötigt man die GD.LIB

      die gd-lib braucht man bei text nur dann nicht, wenn man ihn mit <div> drüber legt. aber dann ist der text eben nicht im bild ....
      INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


      Kommentar


      • #4
        Hatte da wohl an Free Type gedacht. Die braucht man ja nicht, wenn man auf die Standardschriftart zugreift.

        Naja, dann also nur mit GD.

        Aber Webspace ohen GDlib würd ich mir auch nicht antun.

        Kommentar


        • #5
          Original geschrieben von TobiaZ
          Aber Webspace ohen GDlib würd ich mir auch nicht antun.
          OffTopic:
          wer will das schon
          INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


          Kommentar


          • #6
            hi

            und wie macht man das nun,mein server hat dieses GD istalliert. würde mich freuen,wenn jemand helfen könnte.
            das ist das script:
            PHP-Code:
            //---Image Upload-Routine

            if(isset ($action) && $action=="upload")

            {

            if(isset (
            $cats) && $cats==''error("Du musst eine Kategorie wählen!");

            if (isset (
            $furl) && $furl !=''


                    

                            
            $time time();
                            
            mysql_query"INSERT INTO niv_images ( p_user,p_status,p_cat,p_desc,p_date,p_furl ) VALUES ('$username','0','$cats','$desc','$time','$furl')" ) or errormysql_error() );
                        
                        

            }
            else
            {
                        
                for( 
            $i 0$i count$photo ); $i++ )
                        {
                            if( 
            $photo$i ] != "" && $photo$i ] != "none" )
                            {
                                if( 
            $photo_size$i ] > ($conf[UploadSize]*1124) ) error"Datei ist zu gross" );
                                if( 
            $photo_type$i ] == "image/pjpeg" || $photo_type$i ] == "image/jpeg" ||$photo_type$i ] == "image/gif" ||$photo_type$i ] == "image/png"  )
                                {    
                                    if(
            $photo_type$i ] == "image/pjpeg"$ext="jpg";
                                    if(
            $photo_type$i ] == "image/jpeg"$ext="jpg";
                                    if(
            $photo_type$i ] == "image/gif"$ext="gif";
                                    if(
            $photo_type$i ] == "image/png"$ext="png";
                                    
            $newphoto[] = $photo$i ];
                                }
                                else
                                {
                                    
            error"Ungültiges Bildformat - bitte NUR JPG hochladen" );
                                }
                            }
                        }
                        
            for( 
            $i 0$i count$newphoto ); $i++ )
                        {    
                            
            $time time();
                            
            mysql_query"INSERT INTO niv_images ( p_user,p_status,p_cat,p_desc,p_date ) VALUES ('$username','0','$cats','$desc','$time')" ) or errormysql_error() );
                            
            $photoid mysql_insert_id();
                            
            copy$newphoto$i ], "upload/{$photoid}.$ext);
                            
            unlink$newphoto$i ] );
                            
            mysql_query"UPDATE niv_images set p_url='upload/{$photoid}.$ext' WHERE p_id='$photoid'");
                        
                        
                        }        

            }

                        function 
            MailNewPic($result)
                        {
                            global 
            $db$conf$username;
                            
                        
                            
            $result=preg_replace("/~user~/","$username",$result);
                        
                            return 
            $result;
                        }
                        
                        
                        
            $mailtext MailNewPic($mailtemp['TemplateNewPic']);

                        
            $message "$mailtext \n\n";
                        
            $message .= "$conf[MailAdvertText]";
                        
                    
                        
            outMails"$user[m_username]<$user[m_mail]>"$conf['SiteMail'], "$mailtemp[SubjectNewPic]"$message );
                    


                            
            header ("Location:./account.php");
            }

            //--End Image-Upload Routine

            mfg kai 
            Immer Kopf hoch:-)

            Kommentar


            • #7
              Na einfach nach dem upload die watermark funktion einfügen.
              Mal was anderes weist du eigentlich was das ding überhaupt macht?
              Möglich ist alles!

              Kommentar


              • #8
                ich hoffe zu wissen was es macht. ich denke genau das,was ich suche. es kopiert etwas auf der geladene bild,oder.denn sowas zusche ich zumindest.

                würde mich freuen,wenn du mir den code mal hier zeigen würdest,wie ich es dort einfüge.
                mfg kai
                Immer Kopf hoch:-)

                Kommentar

                Lädt...
                X