SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: image functions

  1. #1
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    image functions

    well i have my image upload and resize codes embedded in php file for now using gd
    features
    gd proportional resize
    rename
    and thumbnail defination
    extension extension check (verfication) using array


    now i want to make it as function and call it where required....
    while i do this i want to add
    some more security measures...
    ability to switch between imagemagick or gd or any other that give better quality..
    multiple size upload
    original file deletion and so on....

    so rather than getting hands dirty ...are there any such class,function or tutorials which can save my time...
    non object oriented...
    will be great help
    i dont want big script...just simple one to intregrate with my add content php page....

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2008
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know any non OO library, but you don't seem to be consistent with your requirments.

    so rather than getting hands dirty ...are there any such class,function or tutorials which can save my time...
    non object oriented...
    You want a non object oriented class?

  3. #3
    SitePoint Evangelist simshaun's Avatar
    Join Date
    Apr 2008
    Location
    North Carolina
    Posts
    438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's object-oriented, but great none-the-less.

    http://phpthumb.sourceforge.net/

  4. #4
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by krzyk View Post
    I don't know any non OO library, but you don't seem to be consistent with your requirments.



    You want a non object oriented class?
    u kid with the 23 post ..u will increase that post for nothing in this way....

    any way there is word function as well....so if it was non oo then it could be simple function...
    (even function that is not member of any class).....
    so acting oversmart is not always helpful and useful

    and yes....i long ago used phpthumb and i have found it again....in that time...it was enemy of resource as it was resizing image in run time with out any cache...or so on...
    now seems to be much improved..
    i need to tweak it little to get it to my requirements...

    any way thanks

  5. #5
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,017
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    I recently released an image handling class on the forum in this post. Don't know if it will be useful, but provided in the hopes that it will be.

  6. #6
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Michael Morris View Post
    I recently released an image handling class on the forum in this post. Don't know if it will be useful, but provided in the hopes that it will be.
    well i found most of the featured required in phpthumb and with some play in some days i have been able to get most of the feature of the photoshop itself...


    any way thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •