Now: Tutorial for Web and Software Design > PHP > QA > PHP Content
> PHPFAQ - When using GD/PHP to create thumbnails using imagecopyresized the thumbnail quality is not very good. [Bookmark it]
PHPFAQ - When using GD/PHP to create thumbnails using imagecopyresized the thumbnail quality is not very good.


Question :

When using GD/PHP to create thumbnails using imagecopyresized the thumbnail quality is not very good.

Answer :jernberg@fairytale.se wrote an additional function for PHP called imagecopyresizedbicubic.

This requires some editing of the PHP sourcecode. We have created a file available for download
that modifiys the PHP source code as described in the notes section @
http://www.php.net/manual/en/function.imagecopyresized.php
This only works for PHP-4.0.5 (Linux Source Only)

It may work with PHP-4.0.6 but it fails with GD2 + PHP-4.0.6 we will do more testing soon to see if we can create a new patch for this combination.

Extract the source then from the source directory :-
wget http://www.alt-php-faq.org/downloads/patch
patch -p0
You need to recompile PHP after the extraction of our patch file.

Look for the changes under the GD section on phpinfo(); output.

We did not write this, all praise goes to:-
jernberg@fairytale.se for the addition of this code and
Colin_Witt@baylor.edu for the additional notes

[Bookmark][Print] [Close][To Top]
  • Prev Article-PHP:

  • Next Article-PHP:
  • Related Materias
    PHPFAQ - How google is you
    PHPFAQ - Are there any web
    PHPFAQ - How can I accept 
    PHPFAQ - How can I finance
    PHPFAQ - Where can I get P
    PHPFAQ - Where can I host 
    PHPFAQ - Where can I find 
    PHPFAQ - I am trying to cr
    PHPFAQ - Is there a librar
    PHPFAQ - How can I manage 
    Topics
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Graphic Design Tutorial
     

    Coreldraw Tutorial

      Illustrator Tutorial
      3D Graphics Articles
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial&Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial&Articles
     

    XML Style Tutorial

      AJAX Tutorial
      XML Mobile
    Flash Tutorial&Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial&Articles
     

    Linux Tutorial

      Symbian Tutorial
      MacOS Tutorial