Hire a PHP programmer

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

    Hire a PHP programmer

    To fix an image resizer script.
    The script is written in PHP and only a single page.
    This is use to mobilize an image to downscale to a smaller size.

    I would pay $5 to your paypal. If you are interested kindly PM me your msn messenger.
    Thanks

    #2
    just upload the code here this is a helping site we will help you we dont charge,.
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      unzip the attachment, upload the images.php to your server.

      usage:
      http://<yourdomainname>/images.php?max_width=120&imgfile=<image url>

      Example: http://<yourdomainname>/images.php?max_width=120&imgfile=http://www.sun2surf.com/images/sun2surf/articles/41626/1.jpg

      This script somehow doesnt work for image url like




      Would really appreciate if someone could help me out of this.
      Attached Files

      Comment


        #4
        Do you want to hide your images full stop ?
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          Originally posted by subzero View Post
          Do you want to hide your images full stop ?
          nope....a full url....no full stop....just that this forum mark up full url with full stop.

          Comment


            #6
            ok i got one some where
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7

              Would really appreciate if someone could help me out of this.
              1.download attached file i added images.php replaced yours also added a font file
              2. upload both files on your site in same folder where you want to include
              3. use link like yoursite.com//resize.php?image=http://imagesitelink.com/photo.jpg&square=120

              now for you to show demo this is real link


              now we are going resize it with width 120




              now we are going resize it with width 50






              do you like it ?if yes use and invite your friends on this forum we dont need 5 dollor thanks
              Attached Files
              left wap stuff

              Comment


                #8
                GILL,

                Your script isnt work for
                Image URL 1
                Image URL 2
                Image URL 3

                Thanks

                Comment


                  #9
                  oh you want Resize external links images ? no worry lest use this
                  but your images links seems broken with space % so might not resize or they might use hot link protection well for me i will show you this new code will work fine with external link


                  lets say we have a image link



                  and now we want to rezsize at our site so link will be with w=120&h=120




                  and also i just google and pick this image link




                  and we resize it



                  or put any link after = and change w=120&h=120 as you want



                  Code:
                  <?php
                  header ("Content-type: image/jpeg");
                  /*
                  JPEG / PNG Image Resizer
                  Parameters (passed via URL):
                  
                  img = path / url of jpeg or png image file
                  
                  percent = if this is defined, image is resized by it's
                            value in percent (i.e. 50 to divide by 50 percent)
                  
                  w = image width
                  
                  h = image height
                  
                  constrain = if this is parameter is passed and w and h are set
                              to a size value then the size of the resulting image
                              is constrained by whichever dimension is smaller
                  
                  Requires the PHP GD Extension
                  
                  Outputs the resulting image in JPEG Format
                  
                  By: Michael John G. Lopez - www.sydel.net
                  Filename : imgsize.php
                  */
                  
                  $img = $_GET['img'];
                  $percent = $_GET['percent'];
                  $constrain = $_GET['constrain'];
                  $w = $_GET['w'];
                  $h = $_GET['h'];
                  
                  // get image size of img
                  $x = @getimagesize($img);
                  // image width
                  $sw = $x[0];
                  // image height
                  $sh = $x[1];
                  
                  if ($percent > 0) {
                  	// calculate resized height and width if percent is defined
                  	$percent = $percent * 0.01;
                  	$w = $sw * $percent;
                  	$h = $sh * $percent;
                  } else {
                  	if (isset ($w) AND !isset ($h)) {
                  		// autocompute height if only width is set
                  		$h = (100 / ($sw / $w)) * .01;
                  		$h = @round ($sh * $h);
                  	} elseif (isset ($h) AND !isset ($w)) {
                  		// autocompute width if only height is set
                  		$w = (100 / ($sh / $h)) * .01;
                  		$w = @round ($sw * $w);
                  	} elseif (isset ($h) AND isset ($w) AND isset ($constrain)) {
                  		// get the smaller resulting image dimension if both height
                  		// and width are set and $constrain is also set
                  		$hx = (100 / ($sw / $w)) * .01;
                  		$hx = @round ($sh * $hx);
                  
                  		$wx = (100 / ($sh / $h)) * .01;
                  		$wx = @round ($sw * $wx);
                  
                  		if ($hx < $h) {
                  			$h = (100 / ($sw / $w)) * .01;
                  			$h = @round ($sh * $h);
                  		} else {
                  			$w = (100 / ($sh / $h)) * .01;
                  			$w = @round ($sw * $w);
                  		}
                  	}
                  }
                  
                  $im = @ImageCreateFromJPEG ($img) or // Read JPEG Image
                  $im = @ImageCreateFromPNG ($img) or // or PNG Image
                  $im = @ImageCreateFromGIF ($img) or // or GIF Image
                  $im = false; // If image is not JPEG, PNG, or GIF
                  
                  if (!$im) {
                  	// We get errors from PHP's ImageCreate functions...
                  	// So let's echo back the contents of the actual image.
                  	readfile ($img);
                  } else {
                  	// Create the resized image destination
                  	$thumb = @ImageCreateTrueColor ($w, $h);
                  	// Copy from image source, resize it, and paste to image destination
                  	@ImageCopyResampled ($thumb, $im, 0, 0, 0, 0, $w, $h, $sw, $sh);
                  	// Output resized image
                  	@ImageJPEG ($thumb);
                  }
                  ?>
                  Usage examples:
                  Code:
                  Resize an image to 25 x 25
                  imgsize.php?w=25&h=25&img=path/to/image.jpg
                  
                  Resize an image to 50% the size
                  imgsize.php?percent=50&img=path/to/image.jpg
                  
                  Resize an image to 50 pixels wide and autocompute the height
                  imgsize.php?w=50&img=path/to/image.jpg
                  
                  Resize an image to 100 pixels tall and autocompute the width
                  imgsize.php?h=100&img=path/to/image.jpg
                  
                  Resize to 50 pixels width OR 100 pixels tall, whichever resulting image is smaller
                  imgsize.php?w=50&h=100&constrain=1&img=path/to/image.jpg
                  working na ?
                  Last edited by GiLL; 29.12.09, 01:20.
                  left wap stuff

                  Comment


                    #10
                    GiLL,

                    Your script works GREAT!!!!

                    But, do you have any idea why the image url below cannot be resized using your script?
                    http://www.sun2surf.com/images/sun2s...Mohd%20Dom.jpg(The Link is not broken)

                    Thanks
                    Last edited by mahsing; 29.12.09, 02:18.

                    Comment


                      #11
                      Originally posted by mahsing View Post
                      GiLL,

                      Your script works GREAT!!!!

                      But, do you have any idea why the image url below cannot be resized using your script?
                      http://www.sun2surf.com/images/sun2s...Mohd%20Dom.jpg(The Link is not broken)

                      Thanks
                      use urlencode http://php.net/manual/en/function.urlencode.php
                      she is beautifull than php.and i love her more than php.
                      sigpic

                      Comment


                        #12
                        I did try to replace this
                        PHP Code:
                         $img $_GET['img']; 
                        with this
                        PHP Code:
                         $img urlencode($_GET['img']); 
                        Seems not working for all external image links.

                        Comment


                          #13
                          Originally posted by mahsing View Post
                          I did try to replace this
                          PHP Code:
                           $img $_GET['img']; 
                          with this
                          PHP Code:
                           $img urlencode($_GET['img']); 
                          Seems not working for all external image links.
                          hey i am not good with curl.ok now try rawurlencode.
                          Edit--Sorry my bad i had not seen full topic.i dont think curl is used here.i will try to fix it.
                          Last edited by ranzit2; 29.12.09, 03:30.
                          she is beautifull than php.and i love her more than php.
                          sigpic

                          Comment


                            #14
                            Originally posted by ranzit2 View Post
                            hey i am not good with curl.ok now try rawurlencode.
                            Edit--Sorry my bad i had not seen full topic.i dont think curl is used here.i will try to fix it.
                            not working for all external image links.

                            Comment


                              #15
                              as i said url must correct as i show you now it will be waste time nothing else

                              if url image name or path is without space it will work else not

                              or some one may know how to solve this issue to fix this

                              why you want use external links ? what will be if you added all images and that site activate hot link protection ?

                              you should upload pictures at your site as i think and rename them easy way?
                              Last edited by GiLL; 29.12.09, 06:19.
                              left wap stuff

                              Comment

                              Working...
                              X