Gallery Not Working

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

    #16
    add this:

    // Output
    imagejpeg($image_p, null, 100); //if is jpg
    ImageDestroy ($image_p);

    imagegif($image_p, null, 100); //if is gif
    imagepng($image_p, null, 100); //if is png
    imagewbmp($image_p, null, 100); //if is wbmp

    with this change contenet type..

    with this:
    header('Content-type: image/jpeg, image/gif, image/png, image/jpg.');

    and now work ;)

    GooD
    if like my post click:

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

    Comment


      #17
      NewMax.php

      Code:
      <?php
      $height= 100;
      $width= 100;
      // Content type
      header(&#39;Content-type: image/jpeg, image/gif, image/png, image/jpg.&#39;);
      if(!$filename)
      $filename="./images/nopic.jpg";
      // Get new dimensions
      list($width_orig, $height_orig) = getimagesize($filename);
      
      if ($width && ($width_orig < $height_orig)) {
      $width = ($height / $height_orig) * $width_orig;
      } else {
      $height = ($width / $width_orig) * $height_orig;
      }
      
      // Resample
      $image_p = imagecreatetruecolor($width, $height);
      $image = imagecreatefromjpeg($filename);
      imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
      
      // Output
      imagejpeg($image_p, null, 100);
      imagegif($image_p, null, 100);
      imagepng($image_p, null, 100);
      imagewbmp($image_p, null, 100);
      ImageDestroy ($image_p);
      ?>
      if like my post click:

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

      Comment


        #18
        not work
        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


          #19
          help someone
          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


            #20
            at my chat now work...:o
            u have disable safemode???
            if like my post click:

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

            Comment


              #21
              what is safe mode to do with image? can i direct add max.php coding to gallery.php?
              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


                #22
                help please someone add gif and png to max.php its not show in my site
                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