/[drupal]/drupal/includes/image.inc
ViewVC logotype

Log of /drupal/includes/image.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.38 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 1 17:49:10 2009 UTC (2 months, 3 weeks ago) by webchick
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-10, DRUPAL-7-0-UNSTABLE-9, HEAD
Changes since 1.37: +32 -26 lines
Diff to previous 1.37
#269337 by egfrith and wrunt: Added support for more image types (PDF, TIFF, EPS, etc.).

Revision 1.37 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 24 00:14:18 2009 UTC (3 months ago) by webchick
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36
#497118 by chx, catch, pwolanin, JoshuaRogers, and Jacob Singh: Remove the function registry. While the hope was that this would result in improved performance for low-end hosts, it comes at the expense of critical development experience problems and less benefit than something like APC. Class registry remains intact to facilitate autoloading.

Revision 1.36 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 24 00:10:42 2009 UTC (3 months ago) by webchick
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35
Of all the patches to accidentally commit without a message. :( Rolling back registry rip. Let's try that again.

Revision 1.35 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 24 00:01:59 2009 UTC (3 months ago) by webchick
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34
*** empty log message ***

Revision 1.34 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 20 10:48:02 2009 UTC (3 months, 1 week ago) by dries
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33
- Patch #550228 by Bojhan: added 'Media' category on 'Configuration and modules' page.

Revision 1.33 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Apr 20 20:02:30 2009 UTC (7 months, 1 week ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-7, DRUPAL-7-0-UNSTABLE-8
Changes since 1.32: +2 -3 lines
Diff to previous 1.32
- Patch #413732 by brianV: database code clean-up.

Revision 1.32 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Apr 20 05:38:06 2009 UTC (7 months, 1 week ago) by webchick
Branch: MAIN
Changes since 1.31: +7 -5 lines
Diff to previous 1.31
#438810 by drewish: Fix image_get_info() docs.

Revision 1.31 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Apr 20 02:23:15 2009 UTC (7 months, 1 week ago) by webchick
Branch: MAIN
Changes since 1.30: +3 -2 lines
Diff to previous 1.30
Roll-back of #333054; needs more discussion.

Revision 1.30 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Mar 10 09:43:01 2009 UTC (8 months, 2 weeks ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-6
Changes since 1.29: +29 -3 lines
Diff to previous 1.29
- Patch #373613 by drewish, quicksketch: working around some Debian issues.  They ship a different GD library.

Revision 1.29 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Mar 9 11:44:54 2009 UTC (8 months, 2 weeks ago) by dries
Branch: MAIN
Changes since 1.28: +186 -97 lines
Diff to previous 1.28
- 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.

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 30 16:43:14 2008 UTC (10 months, 3 weeks ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-4, DRUPAL-7-0-UNSTABLE-5
Changes since 1.27: +2 -2 lines
Diff to previous 1.27
- Patch #352470 by scor: fixed typos and grammar in comments.

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 20 18:24:33 2008 UTC (11 months ago) by dries
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26
- Patch #349504 by keith.smith: clean up sentence spacing in code comments.

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 8 01:08:15 2008 UTC (16 months, 2 weeks ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-1, DRUPAL-7-0-UNSTABLE-2, DRUPAL-7-0-UNSTABLE-3
Changes since 1.25: +17 -16 lines
Diff to previous 1.25
- Patch #270508 by paul.levvik and pwolanin: usability improvement: image toolkits should not have to be copied.

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Apr 14 17:48:33 2008 UTC (19 months, 1 week ago) by dries
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24
- 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.

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 28 16:05:17 2008 UTC (21 months, 4 weeks ago) by goba
Branch: MAIN
CVS Tags: DRUPAL-6-0, DRUPAL-6-0-RC-3, DRUPAL-6-0-RC-4, DRUPAL-6-1, DRUPAL-6-10, DRUPAL-6-11, DRUPAL-6-12, DRUPAL-6-13, DRUPAL-6-14, DRUPAL-6-2, DRUPAL-6-3, DRUPAL-6-4, DRUPAL-6-5, DRUPAL-6-6, DRUPAL-6-7, DRUPAL-6-8, DRUPAL-6-9
Branch point for: DRUPAL-6
Changes since 1.23: +1 -26 lines
Diff to previous 1.23
#213517 by ax: inline documentation cleanup, fixing four unclosed @defgroups

Revision 1.17.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Dec 27 08:31:24 2007 UTC (23 months ago) by drumm
Branch: DRUPAL-5
CVS Tags: DRUPAL-5-10, DRUPAL-5-11, DRUPAL-5-12, DRUPAL-5-13, DRUPAL-5-14, DRUPAL-5-15, DRUPAL-5-16, DRUPAL-5-17, DRUPAL-5-18, DRUPAL-5-19, DRUPAL-5-20, DRUPAL-5-6, DRUPAL-5-7, DRUPAL-5-8, DRUPAL-5-9
Changes since 1.17: +23 -5 lines
Diff to previous 1.17 , to next main 1.38
#200338 by m3avrck and quicksketch: fix transparent GIF resizing

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 8 07:46:09 2007 UTC (2 years, 3 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-6-0-BETA-1, DRUPAL-6-0-BETA-2, DRUPAL-6-0-BETA-3, DRUPAL-6-0-BETA-4, DRUPAL-6-0-RC-1, DRUPAL-6-0-RC-2
Changes since 1.22: +31 -2 lines
Diff to previous 1.22
- Patch #148346 by drewish: added PHPdoc.

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 2 20:19:02 2007 UTC (2 years, 3 months ago) by dries
Branch: MAIN
Changes since 1.21: +108 -200 lines
Diff to previous 1.21
- Patch #148346 by Steef and drewish: split image.inc into image.inc and image.gd.inc and improved the documentation.

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Sat May 12 05:51:20 2007 UTC (2 years, 6 months ago) by dries
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20
- Patch #142798 by sime: documentation fix.

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 11 11:45:11 2007 UTC (2 years, 6 months ago) by dries
Branch: MAIN
Changes since 1.19: +33 -3 lines
Diff to previous 1.19
- Modified patch #142798 by Steven and sime: introduced a new image API function: image_scale_and_crop()

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 24 13:53:10 2007 UTC (2 years, 7 months ago) by dries
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18
- Patch #76588 by Gabor: made log messages translatable.  Yay.

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 13 08:56:57 2007 UTC (2 years, 7 months ago) by dries
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17
- Patch #134493 by douggreen: getting the Drupal coding standards right in core. Woot. Woot.

Revision 1.12.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 4 21:10:43 2007 UTC (2 years, 10 months ago) by killes
Branch: DRUPAL-4-7
CVS Tags: DRUPAL-4-7-10, DRUPAL-4-7-11, DRUPAL-4-7-5, DRUPAL-4-7-6, DRUPAL-4-7-7, DRUPAL-4-7-8, DRUPAL-4-7-9
Changes since 1.12.2.2: +12 -4 lines
Diff to previous 1.12.2.2 , to branch point 1.12 , to next main 1.38
#102962, GD toolkit can be selected even if not installed, patch by Darren Oh

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 26 14:01:41 2006 UTC (2 years, 11 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-5-0, DRUPAL-5-0-RC-2, DRUPAL-5-1, DRUPAL-5-2, DRUPAL-5-3, DRUPAL-5-4, DRUPAL-5-5
Branch point for: DRUPAL-5
Changes since 1.16: +22 -4 lines
Diff to previous 1.16
- Patch #105164 by kkaefer: image quality settings toggle.

Revision 1.12.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 12 01:04:21 2006 UTC (2 years, 11 months ago) by unconed
Branch: DRUPAL-4-7
Changes since 1.12.2.1: +2 -2 lines
Diff to previous 1.12.2.1 , to branch point 1.12
#101970: image_scale() should not scale to identical sizes

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Dec 12 01:03:34 2006 UTC (2 years, 11 months ago) by unconed
Branch: MAIN
CVS Tags: DRUPAL-5-0-RC-1
Changes since 1.15: +2 -2 lines
Diff to previous 1.15
#101970: image_scale() should not scale to identical sizes

Revision 1.12.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 18 15:16:34 2006 UTC (3 years, 2 months ago) by killes
Branch: DRUPAL-4-7
CVS Tags: DRUPAL-4-7-4
Changes since 1.12: +8 -1 lines
Diff to previous 1.12
#59263 by stefan et al: bugfix, support PNGs with alpha layer. backport from HEAD

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 18 05:10:48 2006 UTC (3 years, 2 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-5-0-BETA-1, DRUPAL-5-0-BETA-2
Changes since 1.14: +8 -1 lines
Diff to previous 1.14
- Patch #59263 by stefan et al: bugfix, support PNGs with alpha layer.

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Aug 18 12:16:57 2006 UTC (3 years, 3 months ago) by unconed
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13
#76802: Introduce placeholder magic into t()
See: http://drupal.org/node/64279#t-placeholders

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 5 11:45:51 2006 UTC (3 years, 4 months ago) by dries
Branch: MAIN
Changes since 1.12: +19 -19 lines
Diff to previous 1.12
- Patch #72204 by nedjo: upper-cased all TRUE/FALSE/NULL constants.

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 14 20:06:41 2005 UTC (3 years, 11 months ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-4-7-0, DRUPAL-4-7-0-BETA-3, DRUPAL-4-7-0-BETA-4, DRUPAL-4-7-0-BETA-5, DRUPAL-4-7-0-BETA-6, DRUPAL-4-7-0-RC-1, DRUPAL-4-7-0-RC-2, DRUPAL-4-7-0-RC-3, DRUPAL-4-7-0-RC-4, DRUPAL-4-7-1, DRUPAL-4-7-2, DRUPAL-4-7-3
Branch point for: DRUPAL-4-7
Changes since 1.11: +2 -2 lines
Diff to previous 1.11
- Patch #40631 by Chris Johnson: is_array() slower than isset() or empty().

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 10 19:26:47 2005 UTC (3 years, 11 months ago) by dries
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10
- Patch #40393 by Richard: corrected permissions of menu/path settings on the content submission form.

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Oct 22 15:14:46 2005 UTC (4 years, 1 month ago) by dries
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9
- Patch #30930 by m3avrck/deekayen: cured PHP5 warnings.

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Sep 8 19:17:34 2005 UTC (4 years, 2 months ago) by dries
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8
- Patch #30122 by m3verick: changed include_once()'s to include "./$file"
  for performance's sake.

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 25 21:14:16 2005 UTC (4 years, 3 months ago) by dries
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7
- Patch #29385 by chx: no ?> add end of files.

Revision 1.4.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jul 31 10:16:28 2005 UTC (4 years, 3 months ago) by dries
Branch: DRUPAL-4-6
CVS Tags: DRUPAL-4-6-10, DRUPAL-4-6-11, DRUPAL-4-6-3, DRUPAL-4-6-4, DRUPAL-4-6-5, DRUPAL-4-6-6, DRUPAL-4-6-7, DRUPAL-4-6-8, DRUPAL-4-6-9
Changes since 1.4.2.1: +2 -2 lines
Diff to previous 1.4.2.1 , to branch point 1.4 , to next main 1.38
- Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy().  Could result in black images.

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jul 31 10:16:12 2005 UTC (4 years, 3 months ago) by dries
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6
- Patch #27863 by Robrecht: fixed order of parameters passed to imagecopy().  Could result in black images.

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jul 31 09:57:27 2005 UTC (4 years, 3 months ago) by dries
Branch: MAIN
Changes since 1.5: +4 -1 lines
Diff to previous 1.5
- Patch #27431 by Cvbge: add file size infomation to image_get_info()

Revision 1.4.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jun 19 08:59:31 2005 UTC (4 years, 5 months ago) by dries
Branch: DRUPAL-4-6
CVS Tags: DRUPAL-4-6-2
Changes since 1.4: +2 -2 lines
Diff to previous 1.4
- Patch #24157 by chx/Robin/...: changed file_exists() to is_file() to fix several problems with modules using theimage toolkit.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jun 19 08:59:06 2005 UTC (4 years, 5 months ago) by dries
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4
- Patch #24157 by chx/Robin/...: changed file_exists() to is_file() to fix several problems with modules using theimage toolkit.

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Mar 29 00:01:23 2005 UTC (4 years, 8 months ago) by unconed
Branch: MAIN
CVS Tags: DRUPAL-4-6-0, DRUPAL-4-6-1
Branch point for: DRUPAL-4-6
Changes since 1.3: +10 -10 lines
Diff to previous 1.3
- #19517: Fix GD2 toolkit error.
- Tweak code style.

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 23 20:26:21 2005 UTC (4 years, 8 months ago) by dries
Branch: MAIN
Changes since 1.2: +43 -41 lines
Diff to previous 1.2
- Patch #18700 by Stefan and James: removed GD1 calls, improved error/status reporting, etc.

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 21 04:16:46 2005 UTC (4 years, 9 months ago) by unconed
Branch: MAIN
Changes since 1.1: +15 -10 lines
Diff to previous 1.1
#17477: Remove dependency on GD for avatar uploading.

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 1 16:27:43 2005 UTC (4 years, 9 months ago) by dries
Branch: MAIN
- 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).

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2