Dries Buytaert
f09028107c
- Patch #413732 by brianV: database code clean-up.
2009-04-20 20:02:31 +00:00
Angie Byron
f6db2a4cd7
#438810 by drewish: Fix image_get_info() docs.
2009-04-20 05:38:06 +00:00
Angie Byron
d30a41e791
Roll-back of #333054 ; needs more discussion.
2009-04-20 02:23:17 +00:00
Dries Buytaert
a4ee7092e1
- Patch #373613 by drewish, quicksketch: working around some Debian issues. They ship a different GD library.
2009-03-10 09:43:01 +00:00
Dries Buytaert
0ea653502c
- Patch #373613 by quicksketch and drewish: in order to operate on images multiple
...
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.
2009-03-09 11:44:54 +00:00
Dries Buytaert
92a8adea65
- Patch #352470 by scor: fixed typos and grammar in comments.
2008-12-30 16:43:20 +00:00
Dries Buytaert
0c63d9e24f
- Patch #349504 by keith.smith: clean up sentence spacing in code comments.
2008-12-20 18:24:41 +00:00
Dries Buytaert
ffdfefebbc
- Patch #270508 by paul.levvik and pwolanin: usability improvement: image toolkits should not have to be copied.
2008-07-08 01:08:15 +00:00
Dries Buytaert
56d2664a90
- Patch #245115 by kkaefer, John Morahan, JohnAlbin et al: after a long discussion we've decided to make the concatenation operator consistent with the other operators.
2008-04-14 17:48:46 +00:00
Gábor Hojtsy
279d2d4c44
#213517 by ax: inline documentation cleanup, fixing four unclosed @defgroups
2008-01-28 16:05:17 +00:00
Dries Buytaert
232061b799
- Patch #148346 by drewish: added PHPdoc.
2007-08-08 07:46:09 +00:00
Dries Buytaert
f1d2f5a18d
- Patch #148346 by Steef and drewish: split image.inc into image.inc and image.gd.inc and improved the documentation.
2007-08-02 20:19:02 +00:00
Dries Buytaert
eb8c22e260
- Patch #142798 by sime: documentation fix.
2007-05-12 05:51:20 +00:00
Dries Buytaert
20168b6af4
- Modified patch #142798 by Steven and sime: introduced a new image API function: image_scale_and_crop()
2007-05-11 11:45:11 +00:00
Dries Buytaert
f73610bec6
- Patch #76588 by Gabor: made log messages translatable. Yay.
2007-04-24 13:53:15 +00:00
Dries Buytaert
e675979091
- Patch #134493 by douggreen: getting the Drupal coding standards right in core. Woot. Woot.
2007-04-13 08:56:59 +00:00
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