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
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Hartmut Holzgraefe
552ee2a247
proto fixes
2001-12-06 18:37:05 +00:00
Hartmut Holzgraefe
250aded265
proto fixes
2001-12-06 17:51:48 +00:00
Rasmus Lerdorf
e68a9c6bfa
Use the macro here and add an E_NOTICE
2001-11-16 11:59:04 +00:00
Rasmus Lerdorf
a9fe559f60
Be explicit here and cast it
2001-11-13 13:53:11 +00:00
Rasmus Lerdorf
e202deaec4
# More low-oxygen plane hacking
...
Fix ImageColorsForIndex() and ImageColorAt() to work for TrueColor images.
@- Fix ImageColorsForIndex() and ImageColorAt() to work for TrueColor
@ images. (Rasmus)
2001-11-10 15:06:09 +00:00
foobar
35ace375a9
Fixed logic bug introduced by me. Bug: #13796
2001-10-24 10:42:31 +00:00
foobar
eea391830a
ws fix.
2001-10-13 13:12:30 +00:00
Stig Bakken
689252082c
* zend_module_entry change: apino, debug and zts are moved first,
...
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Egon Schmid
116671a8fb
Fixed some protos.
2001-10-08 18:39:42 +00:00
Rasmus Lerdorf
94d789e5d7
I could have sworn I test compiled this when I committed it a couple of
...
days ago. Must have been hallucinating.
2001-09-30 04:42:08 +00:00
Rasmus Lerdorf
c8280238de
Fix segfault and check for truecolor image in ImageColorAt
...
@- Fix segfault and check for truecolor image in ImageColorAt (Rasmus)
2001-09-27 07:36:34 +00:00
Jeroen van Wolffelaar
6cfba2a3ea
2nd phase in back-substitution those macro's
...
I've got pretty much everything now...
2001-09-25 22:49:04 +00:00
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
2001-09-25 21:58:48 +00:00
Hartmut Holzgraefe
03f7406711
proto fixes "double" -> "float"
2001-09-21 21:59:27 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
foobar
3c64473b71
Fixed bug: #13172
2001-09-06 23:10:37 +00:00
Rasmus Lerdorf
70c581b820
Test your changes please Jani
2001-08-26 01:10:10 +00:00
foobar
f03a871d93
Fixed bug: #12948 , #12945
2001-08-24 20:05:58 +00:00
foobar
5296d29b59
Killed a compile warning.
2001-08-22 08:34:04 +00:00
Rasmus Lerdorf
4d11d90880
Track down a few more functions that don't check for 0 args and use
...
faster mechanism
2001-08-13 07:55:39 +00:00
Rasmus Lerdorf
8c497f05c4
We don't consistently check for args passed to functions that don't
...
take any args. In some cases we probably want to skip the check for
performance reasons, but in other cases where performance is unlikely
to be a factor, not throwing a warning on the wrong number of args passed
to a function is at best inconsistent, and at worst it could hide a bug.
So, add a few such checks. There are still lots of cases out there.
2001-08-13 06:43:47 +00:00
Zeev Suraski
f6f6c4d7e6
Whitespace
2001-08-11 16:39:07 +00:00
foobar
e53100fc7a
php_sig_gd2 is only needed for GD extension.
2001-08-07 16:35:35 +00:00
foobar
27fcd0509a
@- Added support for GD2 image type for ImageCreateFromString() (Jani)
2001-08-07 16:15:45 +00:00
Sascha Schumann
b349df6364
some more eliminate-fetches-or-escalate-them-at-least
2001-08-05 16:21:33 +00:00
Zeev Suraski
1159c84ab7
- TSRMLS_FETCH work
...
- whitespace fixes
2001-08-05 01:43:02 +00:00
Zeev Suraski
b1de7fc900
More TSRMLS_FETCH annihilation. Enough for today...
2001-07-31 07:09:49 +00:00
Zeev Suraski
aa1772ca72
More TSRMLS_FETCH annihilation
2001-07-31 05:44:11 +00:00
foobar
75e835017a
Make this extension compile in ZTS mode. Also killed 2 compile warnings.
2001-07-30 20:27:11 +00:00
Zeev Suraski
bde4e0cedf
Fix GD build, and clean it tup
2001-07-30 17:29:57 +00:00
Zeev Suraski
c43806f415
Zend compatibility patch
2001-07-30 08:24:42 +00:00
Zeev Suraski
d87cc976e1
Redesigned thread safety mechanism - nua nua
2001-07-28 11:36:37 +00:00
Daniel Beulshausen
aa032e2e4c
fix font handling in vdir mode
2001-07-20 11:25:13 +00:00
Wez Furlong
36e008ee66
Fix for bug #12065
...
# Was that it??
2001-07-14 12:59:46 +00:00
Wez Furlong
79ce305d1a
Made imagegammacorrect() work on true-color images.
...
Added support for new ImageStringFTEx function (due in GD 2.0.2).
2001-07-05 21:23:28 +00:00
foobar
610ebfe3de
Missing constant.
2001-07-02 12:49:21 +00:00
foobar
73bfcd8a8a
this should be here..styles must be array
2001-06-11 15:21:47 +00:00
foobar
8b15d97a31
fixed proto
2001-06-11 14:39:13 +00:00
foobar
ffd1c31b53
Partial fix bug: #11333
2001-06-11 13:57:47 +00:00
foobar
c2f4987ebd
Removed some ws and couple of useless comments.
2001-06-07 13:17:02 +00:00
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d
vim-6 does folding - clean up a bunch of missing folding tags plus
...
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
foobar
0c5d5a513b
Added missing GD/GD2 image handling functions.
2001-05-29 07:46:07 +00:00
Stig Bakken
1beda9ee1e
* include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build)
2001-05-24 10:07:29 +00:00
foobar
af5c5ecee1
fixed bug: #10593
2001-05-21 19:28:22 +00:00
James Moore
1dbab5bb33
Remove unused variable from imagesetstyle
2001-05-21 18:50:05 +00:00
Sterling Hughes
02d4567bb7
nuke last remnants of the old globals stuff
...
# oops
2001-05-19 17:45:36 +00:00
Sterling Hughes
3c8140d97b
@ Added the IMG_ARC_ROUNDED option for the ImageFilledArc() function, which
...
@ specified that the drawn curve should be rounded. (Sterling)
2001-05-18 20:52:40 +00:00
Sterling Hughes
8f97b4d62f
remove more php3 ts stuff
2001-05-18 20:37:21 +00:00
Sterling Hughes
4812388278
Remove the remnants of old global macro's
2001-05-18 20:29:47 +00:00
Andi Gutmans
4c823e8a89
- Change macros from V_ to VCWD_ because of AIX name clash
2001-04-30 12:45:02 +00:00
Wez Furlong
e9731903d1
Added GD 2.0.1 support.
2001-04-13 12:00:12 +00:00
foobar
84e5576f97
Killed some compile warnings.
2001-04-06 18:01:52 +00:00
foobar
78390894e9
According to GD documentation the macros should be used instead..
2001-04-01 06:20:45 +00:00
foobar
f663f1edab
Fixed bug #8137 and killed some compile warnings.
2001-04-01 05:42:07 +00:00
Alexander Feldman
1791658112
A small fix to make the function imageloadfont portable.
2001-03-12 13:57:53 +00:00
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
2001-02-26 06:11:02 +00:00
Daniel Beulshausen
721d59948e
make gd work again under win32
2001-02-20 18:00:44 +00:00
Thies C. Arntzen
8499b430cf
@- Fixed some modules to allow using output-buffering. (Thies)
...
i nuked all unneded calls to php_header() - i'm not too sure how we do
handle HEAD Requests as they were only detected via php_header(). but calling
php_header from a module makes output-buffering unusable.
NOTICE: there is some EBSDIC stuff in gd.c - i think it's obsolete.
2001-02-15 14:49:01 +00:00
Hartmut Holzgraefe
766bdbc919
make _php_image_convert configuration-aware
2001-02-09 21:14:30 +00:00
Hartmut Holzgraefe
d8a83a3722
libjpeg-not-installed protection
2001-02-09 21:04:45 +00:00
Stanislav Malyshev
bb6d3e60e8
Allow usage of GD contexts and not tempfiles in output functions
2001-02-01 15:40:35 +00:00
Egon Schmid
5b57490772
File formats in uppercase characters.
2001-01-27 14:20:06 +00:00
Hartmut Holzgraefe
7ca330741b
gd didn't work if no WBMP was available after rev 1.107 -> fixed
2001-01-25 20:52:52 +00:00
Stanislav Malyshev
773b582b1a
Fix crash in stdout image output
...
# Basically, this code sucks. It should use GD contexts, not temp files
2001-01-25 14:35:36 +00:00
Egon Schmid
5ad27928ac
Protos fixed.
2001-01-24 09:42:17 +00:00
Derick Rethans
c5b67e119c
- Commited a patch that adds support for converting Images to WBMP format.
...
(Thanx to Denis Gasparin <denis@editnet.it>)
@- Added support for converting images from JPG/PNG on the fly with the GD
@ extension, which is usefull for creating dynamic WAP-sites (Derick)
2001-01-24 09:24:26 +00:00
foobar
625978cd9c
Fixed bug #8733
2001-01-16 22:34:19 +00:00
Daniel Beulshausen
93b2587876
made gd working correct under win32
...
# fixes the issues when running php threadsafe
2000-11-29 15:25:42 +00:00
foobar
a216a9ad7e
Fixed Bug #7939 + some cleaning.
2000-11-23 14:56:09 +00:00
James Moore
2116cfedf3
Stopping Compile Warnings when using old GD
2000-11-18 18:09:42 +00:00
Mathieu Kooiman
3e2fa2781a
E_WARNING into E_ERROR, Last commit (today)! I PROMISE! :-)
2000-11-08 18:41:22 +00:00
Mathieu Kooiman
63cdbbd56e
Alert user if they're trying to use
...
ImageCreateFromString() with GD < 1.5..
Sorry, should've added this last commit.
2000-11-08 16:08:42 +00:00
Mathieu Kooiman
5e7041615a
- Made gd extension build when using gd version < 1.5
2000-11-08 14:56:09 +00:00
David Hedbor
44ecf58519
(ImageCreateFromString) Added forgotten GDLS_FETCH() needed for ZTS.
2000-11-06 22:00:07 +00:00
Mathieu Kooiman
d6e7b4fefa
- ImageCreateFromString(): Fixed segfault that occured if an image was tried to be
...
generate while there was no support for such an image type.
2000-11-04 20:43:53 +00:00
Derick Rethans
848d353880
- Fixed gd by adding a define
2000-11-03 20:44:04 +00:00
Derick Rethans
0d04945bfa
- Fixing Mathieu's indentation problems
...
# It does not build, undefined references to getmbi and skipheader
2000-11-03 20:31:36 +00:00
Mathieu Kooiman
f391eb7423
- Introduced ImageCreateFromString() function,
...
works for GIF/JPEG/PNG and WBMP ..
(Note: This built with the latest snapshot I grabbed
tonight; Derick seemed to have trouble though..)
@-Introduced ImageCreateFromString(), creates an image
@ stream out of eg a MySQL blob. (Mathieu)
2000-11-03 19:53:42 +00:00
foobar
d6d3f5e9b6
Add line of possible XBM support to the phpinfo()
2000-11-01 04:38:28 +00:00
Andrei Zmievski
f1dcb32c9f
Use zend_register_list_destructors_ex() instead.
2000-10-25 17:44:02 +00:00
foobar
1026416153
gdImageWBMP has some bug in it. Using the php-internal one works.
2000-10-25 17:35:29 +00:00
Sascha Schumann
8fe7cf26fc
Add explicit format string
2000-10-20 23:39:16 +00:00
Andrei Zmievski
7b4983c8f8
Mega-patch to get better resource information for modules.
...
* Fixed a bug in zend_rsrc_list_get_rsrc_type()
* Switched register_list_destructors() to use
zend_register_list_destructors_ex() instead
* Updated all relevant modules to provide the resource type name
to register_list_destructors() call
* Updated var_dump() to output resource type name instead of number
@- Made resource type names visible, e.g. var_dump() and
@ get_resource_type() display "file" for file resources. (Andrei)
2000-10-20 18:25:16 +00:00
Rui Hirokawa
4de105ae4a
added a option to use the truetype string handling function in gd.\n it is useful for japanese because the truetype string function in gd supports some japanese encodings.
2000-10-16 13:50:30 +00:00
Daniel Beulshausen
ef1dea5e1e
uses php.h define
2000-09-30 16:32:11 +00:00
Daniel Beulshausen
1c4207a1f8
made win32 compile
2000-09-30 13:32:25 +00:00
Stanislav Malyshev
9ff7f19e32
Add URL support for GD
2000-09-26 09:08:02 +00:00
Andi Gutmans
d0e48e92b6
- Cleanup imagetransparent in the GD library
2000-08-22 04:11:57 +00:00
Stanislav Malyshev
4bed072f11
Fix crash in one-argument imagecolortransparent
2000-08-21 14:11:19 +00:00
Rasmus Lerdorf
3c10e038e2
Add IMG_GIF, IMG_JPG, IMG_JPEG, IMG_PNG and IMG_WBMP constants for
...
imagetypes() function
@ Add IMG_GIF, IMG_JPG, IMG_JPEG, IMG_PNG and IMG_WBMP constants for
@ imagetypes() function (Rasmus)
2000-07-14 22:07:57 +00:00