Commit Graph

13 Commits (d7e0b132ee7a4172fa94e85d33d302350eafef26)

Author SHA1 Message Date
Steven Wittens 81938a3cdc : 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 by nedjo: upper-cased all TRUE/FALSE/NULL constants. 2006-07-05 11:45:51 +00:00
Dries Buytaert 764f1177ef - Patch by Chris Johnson: is_array() slower than isset() or empty(). 2005-12-14 20:10:45 +00:00
Dries Buytaert f6764cfbd8 - Patch by m3avrck/deekayen: cured PHP5 warnings. 2005-10-22 15:14:46 +00:00
Dries Buytaert 013b73e6ec - Patch 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 by chx: no ?> add end of files. 2005-08-25 21:14:17 +00:00
Dries Buytaert 0a28c17cac - Patch 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 by Cvbge: add file size infomation to image_get_info() 2005-07-31 09:57:27 +00:00
Dries Buytaert eb536bf5ec - Patch 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 - : Fix GD2 toolkit error.
- Tweak code style.
2005-03-29 00:01:23 +00:00
Dries Buytaert f514f55112 - Patch by Stefan and James: removed GD1 calls, improved error/status reporting, etc. 2005-03-23 20:26:21 +00:00
Steven Wittens e9f14b70d2 : Remove dependency on GD for avatar uploading. 2005-02-21 04:16:46 +00:00
Dries Buytaert 7ccc5a6b1b - Patch 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