image quality (using GD library)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christophe Cerbourg

    image quality (using GD library)

    Hi,
    I use GD library to generate images from photographs, approx this code :
    $image_dst =
    imagecreatetrue color($this->image_dst_x, $this->image_dst_y) ;
    imagecopyresize d($image_dst, $image_src, 0, 0, 0, 0,
    $this->image_dst_x, $this->image_dst_y, $this->image_src_x,
    $this->image_src_y) ;
    $result = @imagejpeg ($image_dst,
    $this->file_dst_pathn ame,100);

    but...
    - generated image size is larger than the original photo's one
    - generated image quality is rather bad

    So I think I'm doing something wrong, but don't know what...
    Thanks for any help !

    Thanks also for telling me if there is a place (newsgroup) to specifically
    discuss about GD library, I didn't find any on Boutell's site.


  • Guest's Avatar

    #2
    Re: image quality (using GD library)


    "Christophe Cerbourg" wrote

    you can view the source code of this script.



    bye Daniel



    Comment

    • Christophe Cerbourg

      #3
      Re: image quality (using GD library)

      > you can view the source code of this script.[color=blue]
      >
      > http://www.sephiroth.it/file_detail.php?id=131[/color]

      thanks !


      Comment

      • EnglishMan

        #4
        Re: image quality (using GD library)

        Also might try resampling the image. The file is likely larger because
        you save it with 100% quality (even if the original file is only 75%)
        which can increase the size dramatically in some cases...

        Comment

        Working...