Commit Graph

16 Commits (fcbae4572c12d599c65301b7f174d92f24801746)

Author SHA1 Message Date
Dries Buytaert 5f87220dda - Patch #105164 by kkaefer: image quality settings toggle. 2006-12-26 14:01:41 +00:00
Steven Wittens 72d80d208f #101970: image_scale() should not scale to identical sizes 2006-12-12 01:03:34 +00:00
Dries Buytaert 303236107e - Patch #59263 by stefan et al: bugfix, support PNGs with alpha layer. 2006-09-18 05:10:48 +00:00
Steven Wittens 81938a3cdc #76802: Introduce placeholder magic into t()
See: http://drupal.org/node/64279#t-placeholders
2006-08-18 12:17:00 +00:00
Dries Buytaert e93f8be871 - Patch #72204 by nedjo: upper-cased all TRUE/FALSE/NULL constants. 2006-07-05 11:45:51 +00:00
Dries Buytaert 764f1177ef - Patch #40631 by Chris Johnson: is_array() slower than isset() or empty(). 2005-12-14 20:10:45 +00:00
Dries Buytaert f6764cfbd8 - Patch #30930 by m3avrck/deekayen: cured PHP5 warnings. 2005-10-22 15:14:46 +00:00
Dries Buytaert 013b73e6ec - Patch #30122 by m3verick: changed include_once()'s to include "./$file"
for performance's sake.
2005-09-08 19:19:01 +00:00
Dries Buytaert 7b8a409675 - Patch #29385 by chx: no ?> add end of files. 2005-08-25 21:14:17 +00:00
Dries Buytaert 0a28c17cac - Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy(). Could result in black images. 2005-07-31 10:16:12 +00:00
Dries Buytaert 9e6373820a - Patch #27431 by Cvbge: add file size infomation to image_get_info() 2005-07-31 09:57:27 +00:00
Dries Buytaert eb536bf5ec - Patch #24157 by chx/Robin/...: changed file_exists() to is_file() to fix several problems with modules using theimage toolkit. 2005-06-19 08:59:06 +00:00
Steven Wittens ab4261dc31 - #19517: Fix GD2 toolkit error.
- Tweak code style.
2005-03-29 00:01:23 +00:00
Dries Buytaert f514f55112 - Patch #18700 by Stefan and James: removed GD1 calls, improved error/status reporting, etc. 2005-03-23 20:26:21 +00:00
Steven Wittens e9f14b70d2 #17477: Remove dependency on GD for avatar uploading. 2005-02-21 04:16:46 +00:00
Dries Buytaert 7ccc5a6b1b - 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).
2005-02-01 16:27:43 +00:00