1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Looking for PHP programmer who can merge and rotate images using php

Discussion in 'Hire a Freelancer' started by ShOwA, Aug 13, 2013.

  1. ShOwA

    ShOwA Regular Member

    Joined:
    Feb 7, 2010
    Messages:
    300
    Likes Received:
    69
    As title says, I'm looking for someone who can generate random images using php.
    I need them for facebook script. The image must be every time different, so fb can't ban it.
    I will use a background image(which I choose), which should be rotated every time between 10-30 degrees. Over the background image there should be random semi transparent image which will make the output unique but people will still see the background image.
    Over all of these things, there should be a text (which I choose), that should be every time written in a different color, in different size and rotated every time in a different mode.
    Write me a PM or add me on skype (my id is showa.91) to see a sample,tell me your price and discuss details
     
  2. wprofessional

    wprofessional Power Member

    Joined:
    Mar 7, 2012
    Messages:
    631
    Likes Received:
    68
    Occupation:
    My interest is my job!
    Location:
    NeverLand!
    Added on Skype.
     
  3. vikasvyas47

    vikasvyas47 Power Member

    Joined:
    Dec 6, 2011
    Messages:
    523
    Likes Received:
    4
    please add me on skype
     
  4. Website

    Website Supreme Member

    Joined:
    Feb 8, 2008
    Messages:
    1,291
    Likes Received:
    286
    Location:
    whitehouse
    here ya go . save it as image.php

    call it:
    https://graph.facebook.com/me/photos?url=http://domain.com/image.php

    <?php
    /*
    image.php
    */
    header("Content-type: image/jpeg");


    function createRandomPassword() {

    $chars = "abcdefghijkmnopqrstuvwxyz023456789";
    srand((double)microtime()*1000000000);
    $i = 0;
    $pass = '' ;

    while ($i <= 10) {
    $num = rand() % 33;
    $tmp = substr($chars, $num, 1);
    $pass = $pass . $tmp;
    $i++;
    }

    return $pass;

    }

    $password = createRandomPassword();


    $imgPath = 'picture.jpg';
    $image = imagecreatefromjpeg($imgPath);
    $color = imagecolorallocate($image, 255, 255, 255);
    $fontSize = 3;
    $x = 115;
    $y = 185;
    imagestring($image, $fontSize, $x, $y, $password, $color);
    imagejpeg($image);
    ?>
     
    • Thanks Thanks x 1