Skip to content
  1. Sep 01, 2009
  2. Aug 24, 2009
  3. Aug 20, 2009
  4. Apr 20, 2009
  5. Mar 10, 2009
  6. Mar 09, 2009
    • Dries Buytaert's avatar
      - Patch #373613 by quicksketch and drewish: in order to operate on images multiple · 0ea65350
      Dries Buytaert authored
        times (such as crop, scale, then desaturate) without quality loss, we need to
        pass images by their raw GD (or other library) resources rather than re-opening
        the same image repeatedly, which causes wasted processing and loss of quality when
        using JPEG images.  This patch reworks the image toolkits, adds some new image
        manipulations and adds some impressive SimpleTests.
      0ea65350
  7. Dec 30, 2008
  8. Dec 20, 2008
  9. Jul 08, 2008
  10. Apr 14, 2008
  11. Jan 28, 2008
  12. Aug 08, 2007
  13. Aug 02, 2007
  14. May 12, 2007
  15. May 11, 2007
  16. Apr 24, 2007
  17. Apr 13, 2007
  18. Dec 26, 2006
  19. Dec 12, 2006
  20. Sep 18, 2006
  21. Aug 18, 2006
  22. Jul 05, 2006
  23. Dec 14, 2005
  24. Oct 22, 2005
  25. Sep 08, 2005
  26. Aug 25, 2005
  27. Jul 31, 2005
  28. Jun 19, 2005
  29. Mar 29, 2005
  30. Mar 23, 2005
  31. Feb 21, 2005
  32. Feb 01, 2005
    • Dries Buytaert's avatar
      - Patch #16358 by James: added toolkit to enable better image handling. The... · 7ccc5a6b
      Dries Buytaert authored
      - Patch #16358 by James: added toolkit to enable better image handling.  The avatar code and the upload module have been updated to take advantage of the new image API.
      
      There are 5 main functions that modules may now utilize to handle images:
      
      * image_get_info() - this function checks a file.  If it exists and is a valid image file, it will return an array containing things like the pixel dimensions of the image, plus the 'type' and common extension.
      * image_scale - resizes a given image to fit within a given width / height dimensions, while maintaining aspect ratio (not distorting the image).  This function can be used to generate thumbnails, or ensure a maximum resolution, etc.
      * image_resize - similar to image_scale (but will not respect aspect ratio - may well distort the image).
      * image_rotate - rotate an image by X degrees
      * image_crop - crops an image to a given rectangle (defined as top-left x/y coordinates plus a width & height of the rectangle).
      
      Contribution modules will now be able to rely on these base manipulation functions to offer additional functionality (such as image nodes, photo galleries, advanced image manipulation, etc).
      7ccc5a6b