Free thumbnail script

Discussion in 'PHP' started by MCJim, Jul 4, 2008.

  1. #1
    I need a script that will reduce image file size for thumbnails. Right now I have thumbnails but they're still the original file size, which is dumb of course as its heavy on resources. How can I do this?

    Thanks in advance
     
    MCJim, Jul 4, 2008 IP
  2. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #2
    Vooler, Jul 4, 2008 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,903
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #3
    I used the one in at php.net and it's worked fine.
     
    sarahk, Jul 4, 2008 IP
  4. alvas

    alvas Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Or you can use this phpthumb.sourceforge.net
     
    alvas, Jul 4, 2008 IP
  5. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #5
    phpthumb uses imagick, but our source is based on GD only. GD is smaller than imagick.

    I will add BMP, ICO, ANI, CUR support within same script, without using anything other than GD.

    regards
     
    Vooler, Jul 4, 2008 IP
  6. php-lover

    php-lover Active Member

    Messages:
    261
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #6
    do a search about this build in php function
    imagejpeg()
    imagegif()


    example:

    imagejpeg( resource $image [, string $filename [, int $quality]] )

    When you reduce the image quality value it's reduce the image size as well.

    imagejpeg($imgdev,$path,60);


    hope it's help.
     
    php-lover, Jul 5, 2008 IP
  7. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #7
    Vooler, Jul 5, 2008 IP
  8. php-lover

    php-lover Active Member

    Messages:
    261
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #8
    Ooops, my post is a reply to MCJim post not your one. :)
     
    php-lover, Jul 5, 2008 IP
  9. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #9
    Oh, then I must be sorry lol, I did not notice you replied to first post.
     
    Vooler, Jul 5, 2008 IP
  10. jprice259

    jprice259 Peon

    Messages:
    100
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Be more specific please. Do you need it to auto crop as well? Max Size? Cropped Size? etc...
     
    jprice259, Jul 5, 2008 IP