Announcement

Collapse
No announcement yet.

creating thumbnails

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • creating thumbnails

    I have the below info from the PHP manual:
    ImageCopyResized -- Copy and resize part of an image

    Description:
    int imagecopyresized (int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH)

    ImageCopyResized() copies a rectangular portion of one image to another image. Dst_im is the destination image, src_im is the source image identifier. If the source and destination coordinates and width and heights differ, appropriate stretching or shrinking of the image fragment will be performed. The coordinates refer to the upper left corner. This function can be used to copy regions within the same image (if dst_im is the same as src_im) but if the regions overlap the results will be unpredictable.
    Can someone please explain to me or show me a good tutorial on how to create thumbnails of images after uploading them? I already have the upload feature working, but I need to create thumbnails. Any help greatly appreciated.

  • #2
    I've figured out how to create thumbnails of jpeg images, but GDLib doesn't support gif images anymore, due to legal reasons. Is there any way to create thumbnails of gif images without having to use ImageMagik, coz my host doesn't support it (HostRocket.com)

    Comment


    • #3
      I'm affraid not...

      Comment


      • #4
        download an older version of GDLib (i think v 1.6 or something like that) and compile PHP with it. or load the php-gd-gif.dll extension. (i don't know if this will work on a unix machine)

        Comment


        • #5
          Use Netpbm.
          Its downloadable here if you want it, included with the gallery script.
          http://gallery.sourceforge.net

          Very nice routines for making thumbnails, and much better quality than GD lib.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X