Commit Graph

424 Commits

Author SHA1 Message Date
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
Ilia Alshanetsky
5c32e974aa Not a fatal error. 2005-12-29 21:59:39 +00:00
Pierre Joye
d07b094461 - MFH: raise warnings instead of errors in colormatch 2005-12-25 20:33:05 +00:00
Pierre Joye
f5a7694305 - MFH: fix segfault/leak in imagecolormatch
- MFH: test for imagecolormatch
2005-12-25 19:39:53 +00:00
Pierre Joye
1024844a41 - MFH:
- fix leaks and wrong error when invalid/empty string are given to
  imagecreatefromstring
- add test for imagecreatefromstring
- add test for palettecopy
2005-12-17 17:46:59 +00:00
Pierre Joye
ce90a27a48 - MFH, PNG compression support exposed 2005-12-09 18:07:57 +00:00
foobar
3e669bc950 MFH: nuke php3 legacy 2005-12-06 02:28:41 +00:00
foobar
4e874820e9 MFH: nuke php3 legacy 2005-12-06 01:21:28 +00:00
foobar
289402edc6 MFH: - Added missing safe-mode checks
# Added by replacing the existing open_basedir checks with a macro
# Also, the filename passed might be null, etc. so it's not very good
# idea to pass to php_error_docref() (catch by Ilia)
2005-11-01 17:05:09 +00:00
Antony Dovgal
5b502880b6 MFH: fix #34996 (ImageTrueColorToPalette() crashes when ncolors is zero) 2005-10-26 21:38:20 +00:00
Pierre Joye
af888a4807 - fix #34980, divisor and offset never passed correctly (s/float/double/) 2005-10-25 23:00:19 +00:00
Ilia Alshanetsky
71bd44ac02 MFH: Added missing safe_mode checks. 2005-10-06 20:47:41 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Antony Dovgal
0a830b33fc fix off-by-one in _php_image_output()
and prevent such errors in php_do_open_temporary_file()
2005-05-06 16:48:30 +00:00
Derick Rethans
bb8988109d - Fixed bug #32735 (Compile error in GD extension). 2005-04-17 10:17:03 +00:00
Pierre Joye
3963ba649d - export imageconvolution to userland, making people happy to do not
use the predefined ones :)
2005-04-16 12:12:24 +00:00
Andrey Hristov
d9f5f1ee08 fix memory corruption on 64bit in imagefttext(),
domdocument::load() and domdocument::loadxml()
2005-04-10 21:37:17 +00:00
Pierre Joye
c8ce18c155 - allow to keep or ignore the transparent color in imagerotate (thx
Ken Coar to report this "bug")
- be sure to restore alphablending in imagefill
- use zend_parse_parameter in imagerotate
2005-03-27 23:43:52 +00:00
foobar
e82eb93cf2 - Added some sanity checks by changing to the parameter parsing API 2005-01-17 17:07:28 +00:00
foobar
0e9866bfd6 ws fix 2005-01-15 04:34:30 +00:00
foobar
330746480e - Fixed bug #31060 (imageftbbox() does not use linespacing parameter) 2005-01-14 23:07:46 +00:00
foobar
68ca0ed6d8 - Fixed bug #30120 (imagettftext() and imagettfbbox() accept too many parameters) 2005-01-14 22:43:15 +00:00
foobar
a2177b2e8e - Fixed bug #31396 (compile fails with gd 2.0.33 without freetype) 2005-01-04 06:51:45 +00:00
Ilia Alshanetsky
12c2113b3e Fixed compiler warnings. 2004-12-29 21:40:34 +00:00
Ilia Alshanetsky
3f79dfbb04 Don't forget to unload t1lib. 2004-12-29 21:07:59 +00:00
Ilia Alshanetsky
8091bfb84c MFB: Fixed bug #30658 (Ensure that temporary files created by GD are removed). 2004-11-02 16:41:41 +00:00
Ilia Alshanetsky
4d360ead0c Fixed bug #29594 (Use PHP's own tmpfile() implementation). 2004-08-16 23:07:42 +00:00
Ilia Alshanetsky
69a5253284 Fixed bug #29349 (imagecreatefromstring() crashes with external GD library)
Original Patch By: adconrad at debian dot org
2004-07-27 00:27:06 +00:00
Edin Kadribasic
67c42a4a9b Updated version number 2004-07-23 02:28:18 +00:00
Andi Gutmans
56f8195fe5 - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
used to return "" and not bool(false). It's not worth keeping it because
  STR_FREE() and zval_dtor() always have to check for it and it slows down
  the general case. In addition, it seems that empty_string has been abused
  quite a lot, and was used not only for setting zval's but generally in
  PHP code instead of "", which wasn't the intention. Last but not least,
  nuking empty_string should improve stability as I doubt every place
  correctly checked if they are not mistakenly erealloc()'ing it or
  calling efree() on it.
  NOTE: Some code is probably broken. Each extension maintainer should
  check and see that my changes are OK. Also, I haven't had time to touch
  PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Ilia Alshanetsky
9cccfa57b6 Fixed stream leak on error. 2004-05-20 23:37:59 +00:00
Ilia Alshanetsky
d3fda74acf Fixed bug #28267 (php_image_filter_contrast calls gdImageBrightness). 2004-05-09 17:39:20 +00:00
Ilia Alshanetsky
6e9c4b3125 Upgrade bundled GD library to 2.0.23.
Fixed bug #28175 (build problem for people using FreeType 2.1.0-2.1.2).
2004-05-09 17:33:50 +00:00
Edin Kadribasic
31de856abb Allow compilation with gdlib 1.8 2004-04-07 22:27:32 +00:00
Ilia Alshanetsky
3b27b0f18b Fixed a bug that prevented building of gd extension against external GD
lib 1.X.
2004-04-04 17:59:08 +00:00
Ilia Alshanetsky
8b079070a3 Synchronized bundled GD library with GD 2.0.22. 2004-03-29 18:20:33 +00:00
Ilia Alshanetsky
52b962ca2f wbmp conversion warning fix. 2004-02-22 18:03:09 +00:00
Ilia Alshanetsky
cc2dc6c85e Set correct default threshold for image2wbmp(). 2004-02-21 16:49:39 +00:00
Ilia Alshanetsky
cb5c9156c2 Fixed bug #27293 (two crashes inside image2wbmp()). 2004-02-17 21:30:00 +00:00
Ilia Alshanetsky
472a3a2446 Fixed bug #27056 (ints used instead of longs inside some GD functions). 2004-01-28 01:36:53 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
8ec2fd0c54 Last bit of CS fixes. 2003-12-28 21:08:46 +00:00
Ilia Alshanetsky
8d6cfb797b Synchronized bundled GD library with GD 2.0.17
. GD is now thread-safe thanks to wrappers around freetype library
 . Significant optimization to png writing code.
 . Miscellaneous fixes.
Fixed memory leak inside php_imagettftext_common()
Make ext/gd compile with GD 2.0.17+ (gdFreeFontCache() is not avaliable)
2003-12-25 22:12:12 +00:00
Rasmus Lerdorf
749cf47ef7 Fix remaining gd build issue 2003-12-18 08:17:45 +00:00
Ilia Alshanetsky
44e180b286 Fixed bug #26309 (Fixed argument parsing for imageftbbox()). 2003-11-19 15:49:55 +00:00
Moriyoshi Koizumi
676755da54 FREETYPE_PATCH is not always defined.
# will likely fix Sebastian's build :)
2003-09-15 07:27:18 +00:00
Moriyoshi Koizumi
36e89f6deb Add an phpinfo entry showing which version of freetype is linked to gd. 2003-09-09 19:08:30 +00:00
Andrey Hristov
b2eb454171 format string fixes 2003-08-28 21:00:24 +00:00
Ilia Alshanetsky
93bcd55eaf emalloc -> safe_emalloc 2003-08-12 00:58:52 +00:00
Ilia Alshanetsky
aeadf9bd4a Fixed a crash inside php_imagettftext_common(); 2003-06-19 15:47:46 +00:00
Marcus Boerger
8fd5e11ff4 Add ImageXBM 2003-06-15 20:00:08 +00:00
Andrey Hristov
eb33adf139 proto fixes 2003-06-15 15:29:46 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Ilia Alshanetsky
f2a9f31160 GD 2.0.15 sync 2003-06-04 00:20:19 +00:00
Ilia Alshanetsky
e1b8cad26f Syncronize bunbled GD with gd 2.0.14 2003-06-03 23:54:56 +00:00
Ilia Alshanetsky
b9215a1538 Fixed bug #23527 (PostScript Type 1 font do not render properly) 2003-05-15 02:25:50 +00:00
Moriyoshi Koizumi
6be2406b63 Made phpinfo() / gd_info() indicate availability of JIS feature 2003-04-19 07:44:16 +00:00
Marcus Boerger
448d361290 Collate version handling and bump up version (noticed by Peter Neuman) 2003-04-05 20:43:53 +00:00
Ilia Alshanetsky
5ec34bcd82 Might as well disallow 0x0 images.
Thanks Marcus.
2003-04-04 01:33:57 +00:00
Ilia Alshanetsky
925bc0fd7d Fix segfault in imagecopyresized(). 2003-04-04 00:16:47 +00:00
foobar
74868f3a45 - Better errors for T1lib.
- Sanity check into imagepsextendfont().
# Patches by John Coggeshall <john@coggeshall.org>
2003-04-04 00:09:23 +00:00
foobar
2063094acc Use php_error_docref. 2003-04-03 23:10:08 +00:00
Sascha Schumann
c2e2423838 Fix segfaults in imagecreate/imagecreatetruecolor 2003-04-03 19:18:57 +00:00
foobar
1d3542a6bc cleanup 2003-03-31 08:49:19 +00:00
Sebastian Bergmann
a9b479612f Eliminate TSRMLS_FETCH() call in php_find_gd_font(). 2003-03-26 06:30:45 +00:00
foobar
c8791084db CS fix 2003-03-20 01:17:05 +00:00
foobar
0af32bc1ac WS & CS fixes 2003-03-20 01:12:57 +00:00
Stig Bakken
0e6fca4f22 * email address change 2003-03-18 12:06:09 +00:00
Hartmut Holzgraefe
3343327ea1 fixing my proto fix :| 2003-03-17 13:50:27 +00:00
Hartmut Holzgraefe
212abb4996 proto fix 2003-03-17 13:00:13 +00:00
foobar
bf90cdeff9 Added the type constants for imagegd2() 2003-03-12 04:29:51 +00:00
foobar
2fee56b2a2 Fix bug #22646 2003-03-12 04:15:28 +00:00
Ilia Alshanetsky
d31fa3da61 Better identification of bundled GD library. 2003-03-05 16:08:01 +00:00
Pierre Joye
972c04e50b add imagesavealpha wrapper (Jukka Holappa <jukkaho@mail.student.oulu.fi>,
2 Pierre-Alain Joye)
2003-02-26 23:22:09 +00:00
Marcus Boerger
129bd74b45 Show if XPM support is available & Set availability bit only when available. 2003-02-01 23:23:59 +00:00
Sara Golemon
3ad9839f2f Feature Request #21784 Added: imagecolorallocatealpha (pollita@php.net,jasper@pointless.net) 2003-01-26 01:15:02 +00:00
Ilia Alshanetsky
383171b11b Fixed bug #21533 (a rare condition where error can remain undefined and
result in undefined behavior when it is used without being initialized).
2003-01-24 19:23:53 +00:00
Ilia Alshanetsky
95bfbfe1c1 Fixed compile warning. 2003-01-24 16:23:11 +00:00
Ilia Alshanetsky
d24148f3d0 Fixed a crash when invalid color is passed to imagepstext(). 2003-01-22 19:53:29 +00:00
Ilia Alshanetsky
833473d1de Removed pointless checks of array_init() return value. 2003-01-17 21:37:56 +00:00
Ilia Alshanetsky
169eb85e0a Syncronize bundled GD library with latest GD (2.0.11). 2003-01-17 18:34:07 +00:00
Ilia Alshanetsky
17e51c5946 Fixed bug #21518.
Fixed memory in leak ImageCreateFromString().
Fixed a bug that prevented proper identification of WBMP images and thus
prevented ImageCreateFromString() from working on those images.
2003-01-08 18:11:40 +00:00
Pierre Joye
a9999190c6 Fix line drawed twice (L. Atkinson) 2003-01-07 22:34:00 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Ilia Alshanetsky
7a282ddcfd Fixed bug #20974 (added missing sanity check). 2002-12-12 21:17:36 +00:00
Ilia Alshanetsky
67aca57c3b Fixed build with non-bundled GD. Hidden the anti-alias functions when
non-bundled GD is used and made imagecreatefromxpm() unavailable because
of a bug in the external GD library.
2002-12-11 22:25:23 +00:00
Pierre Joye
4d522e3686 Add imageantialias(im, flag)
Add AA support for bundled imageline
2002-12-11 20:44:44 +00:00
Ilia Alshanetsky
2b063828e0 Fixed build with GD 1.8.4 2002-12-10 19:45:58 +00:00
Ilia Alshanetsky
99f2b9674f Fixed build with GD 1.8.4 2002-12-10 17:57:41 +00:00
Pierre Joye
dda7acaad5 Add imageistruecolor 2002-12-06 02:16:06 +00:00
Rasmus Lerdorf
4c749f08c0 Fix build 2002-12-04 23:21:30 +00:00
Ilia Alshanetsky
5779f9bb0f Made imagecreatefromxpm() work once again. 2002-12-04 20:58:04 +00:00
Ilia Alshanetsky
143e46ae28 WS fixes. 2002-12-04 16:29:48 +00:00
Pierre Joye
00881ea504 Fix imagegd stdoutput
Typo 256 colors
2002-12-04 02:48:23 +00:00
Pierre Joye
e8e2420042 Fix imagegd crashes when used with truecolor image (from jpeg,png, or imagecreatetruecolor)
may we add parameters to imagegd to let user specify the palette size and dither (set to 256 and true) ?
2002-12-04 02:37:21 +00:00
Marcus Boerger
0a7487e32d Conversion fixes 2002-11-28 22:48:20 +00:00
Moriyoshi Koizumi
9db2512418 Fixed the macro so this can be compiled with ft1 2002-11-24 00:59:41 +00:00
Moriyoshi Koizumi
4124672edf Fixed leaks. Other leaks are originated in libgd. 2002-11-23 22:11:59 +00:00
foobar
5e429447b1 ws fix 2002-11-23 19:20:44 +00:00
Moriyoshi Koizumi
715ad2730c Fixed tab positions. 2002-11-23 11:20:51 +00:00
Rasmus Lerdorf
761bcbd751 Applied imagedeallocate() fix 2002-11-22 23:25:14 +00:00
Marcus Boerger
f986cb84f3 Fix TSRM build 2002-11-14 15:09:53 +00:00
Ilia Alshanetsky
901980b3ab Added imagefilter() function by Pierre-Alain Joye (paj@pearfr.org). This
function allows negate, grayscale, brightness, contrast, colorize, selective blur,
Gaussian blur, edge detect, smooth, sharpen and emboss filters to be applied
on an image.
2002-11-13 20:02:58 +00:00
Marcus Boerger
597acbc3d3 new function gd_info() returns an associative array of gd support options. # The index names are those from the minfo function. Therefore it is
# easy to look into phpinfo() to see which index names are possible.
2002-11-12 11:49:11 +00:00
Marcus Boerger
536c34ebc9 fix warnings 2002-10-30 17:54:36 +00:00
Ilia Alshanetsky
7150658615 This patch allows compilation of gd against non-bundled gd library older
then 2.0.4.
2002-10-30 01:05:16 +00:00
Rasmus Lerdorf
a24534a1ed Update bundled gd library with relevant changes from gd-2.0.4
I still need to add a configure check for the gdIOCtx struct
changes so building against older external gd libs will work again.
2002-10-29 23:08:01 +00:00
Ilia Alshanetsky
e34ea3adb4 Added a patch by Pierre-Alain Joye <paj@pearfr.org>, which implements the
imagerotate() that allows rotation of images in gd.
2002-10-29 01:15:44 +00:00
Derick Rethans
5a6243a4b5 - Change constant name 2002-10-11 13:09:48 +00:00
Derick Rethans
7713b4097d - Add indetified for bundled GD 2002-10-11 09:49:38 +00:00
Ilia Alshanetsky
f119fd6498 Fixed bug #19487 2002-09-20 01:25:55 +00:00
foobar
4a39f70a9a Added missing convert_to_* funcs. (should fix some crashes) 2002-09-20 00:47:00 +00:00
foobar
fb9bd8d20a ws fix 2002-09-12 21:42:33 +00:00
foobar
ba057e9bf3 Fix build with GD < 2.0.x 2002-09-05 00:22:40 +00:00
Marcus Boerger
1ab90386cf Some requirements engineering: today necessary defines exists where
needed.
2002-08-27 20:10:46 +00:00
Marcus Boerger
d1b56bf810 php_error_docref
BUT didn't we decide to disable those functions when not supported
instead of displaying an error?
2002-08-27 19:40:55 +00:00
Rasmus Lerdorf
53e6c07907 stream closing bug here too 2002-08-23 17:53:03 +00:00
Wez Furlong
533c16e21e Fix segfault reported by Rasmus. 2002-08-23 17:45:46 +00:00
Marcus Boerger
17743955d0 more php_error_docref 2002-08-22 19:14:27 +00:00
Marcus Boerger
727067f59c php_error_docref... 2002-08-22 18:38:44 +00:00
Marcus Boerger
9b9052f27a fix zts build 2002-08-22 14:02:08 +00:00
Tim Toohey
266193159b (PHP imagecolormatch) makes a palette image match the colours in the
true-color version.
(PHP imagelayereffect) extended alpha-channel mixing effects for the
                       bundled GD library
@Added ImageColorMatch() and ImageLayerEffect() functions
@which work with the bundled GD library (ttoohey)
2002-08-22 07:28:26 +00:00
Marcus Boerger
0b6074a343 forgot to move imeageellipse out of #ifdef HAVE_LIBGD20 2002-07-28 10:00:37 +00:00
Marcus Boerger
b0b2226352 reapply patch for imageellipse beeing wrappet to imagearc if missing
# derick: the rest of the patch wasn't removed
2002-07-26 13:24:45 +00:00
Derick Rethans
06ad4767e3 - Fix GD build with GD 1.8.3 2002-06-29 15:54:02 +00:00
foobar
29a2967936 t1lib.h needs to be included here now. 2002-06-28 12:46:07 +00:00
foobar
e2eaa0261a Moved all gd.h related stuff to gd.c 2002-06-28 12:35:30 +00:00
foobar
32e08c7e52 Fix bug: #14735 2002-06-28 09:53:25 +00:00
foobar
ab0d5fecd3 Fix bug: #17528, do not crash with empty string. 2002-06-28 09:23:50 +00:00
Derick Rethans
b24c24969c Unify error messages 2002-06-28 06:43:17 +00:00
foobar
1f2c1d8093 Consistency fix. 2002-06-27 23:05:11 +00:00
Derick Rethans
b5c0408594 - Fix build
#- Please test next time! This file is never installed with a default gd
#  install
2002-06-26 18:32:27 +00:00
Marcus Boerger
67bfbbe881 map imageellipse to imagearc if missing
fix warnings
2002-06-25 22:23:41 +00:00
Marcus Boerger
33b5d72f6c imageellipse is removed in 2.01
#maybe someone reintroduces this one in bundled lib?
2002-06-25 09:00:09 +00:00
Derick Rethans
2a6980a720 - Make functions not exist when they are not available. This means you can
now safely do function_exists() on all gd functions.
2002-06-24 19:31:44 +00:00
Markus Fischer
1aac85becd - Be more verbose which index causes the warning. 2002-06-15 18:14:19 +00:00
Markus Fischer
9fea4c1f5f - Don't forget to close the stream. 2002-06-15 17:46:44 +00:00
Sander Roobol
c5dc21f8c2 Made phpinfo() show if we're using the bundled version of GD 2002-06-09 12:44:33 +00:00
foobar
1528a3d1fb Fixed bug: #17535 2002-06-04 02:33:10 +00:00
Harald Radi
6f22159aa2 fixed type 2002-04-11 20:32:03 +00:00
Markus Fischer
1d75089d8b *** empty log message *** 2002-03-21 22:35:02 +00:00
Wez Furlong
d2d8762267 Streams now make more use of the memory manager, so tracking down
leaking streams should be easier.
# I hate these big commits
2002-03-17 22:50:59 +00:00
Wez Furlong
30647934a4 Tweak the API to be more consistent.
Update docs.
2002-03-16 13:48:57 +00:00
Wez Furlong
09213d7bf8 change * formatting 2002-03-16 01:28:57 +00:00
Wez Furlong
0f65280cb5 New PHP streams... 2002-03-15 21:03:08 +00:00
Derick Rethans
d5fee0cb0c - Make GD functions only available if they really exist (Patch by
matslin@orakel.ntnu.no)
2002-03-02 12:32:31 +00:00
Rasmus Lerdorf
38b3e061a7 Change fatal errors to warnings - fix bug #15797 2002-02-28 23:08:48 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Derick Rethans
32e9ea6c64 - Fix for bug 14899 (patch by Sander Roobol <sander@php.net>) 2002-02-01 08:53:47 +00:00
jim winstead
8e6a16984a jpeg2wbmp,png2wbmp: fix prototypes; _php_image_convert: simplify argument count checking 2002-01-02 01:25:48 +00:00