1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Auto Formating of Images added to site by users

Discussion in 'PHP' started by mytechiestuff, Sep 9, 2015.

  1. #1
    What would be the best way to auto format images, uploaded by the visitors to a site, using PHP?

    WordPress seems to have lots of plugins for this but am having trouble finding a way to do this in PHP.

    Thank you for your time.
     
    mytechiestuff, Sep 9, 2015 IP
  2. billzo

    billzo Well-Known Member

    Messages:
    961
    Likes Received:
    278
    Best Answers:
    15
    Trophy Points:
    113
    #2
    billzo, Sep 9, 2015 IP
    mytechiestuff likes this.
  3. the_geoff_word

    the_geoff_word Peon

    Messages:
    4
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    1
    #3
    You'll have to use an image manipulation library like GD. Even with GD, there is a little bit of work involved to get it to do the kinds of manipulations that you want. I have found the SimpleImage class to be helpful:

    https://gist.github.com/miguelxt/908143
     
    the_geoff_word, Sep 16, 2015 IP