Stanislav Malyshev
b7a7b1a624
trailing whitespace removal
2015-01-10 15:07:38 -08:00
Veres Lajos
06fdf359e3
typo fixes - https://github.com/vlajos/misspell_fixer
2014-11-23 14:52:47 -08:00
Scott MacVicar
796bfb0bd0
imagettftext() uses the last charactermap it found and not the one you want
...
Summary:
This caused issues when you picked a font with multiple maps, it wouldn't
pick the unicode version but instead pick the last one it saw. Change so
we cache on a per encoding level. There was even a todo list item in the code.
In an ideal world we can probably iterate through at font write time.
Test Plan:
See said unit test, it's Apache Licensed font included
2014-02-16 22:49:31 -08:00
Remi Collet
b0cf340eef
Merge branch 'PHP-5.5'
...
* PHP-5.5:
Fixed bug #64707 missing declaration after dd0399f
2013-04-25 06:41:01 +02:00
Remi Collet
182fef46a9
Fixed bug #64707 missing declaration after dd0399f
2013-04-25 06:40:55 +02:00
Remi Collet
5897696a02
Merge branch 'PHP-5.5'
...
* PHP-5.5:
We need both gdImageCreateFromJpeg* and gdImageCreateFromJpeg*Ex
gd: fix proto comment
2013-04-24 16:11:34 +02:00
Remi Collet
dd0399f5c6
We need both gdImageCreateFromJpeg* and gdImageCreateFromJpeg*Ex
...
The new (Ex) functions are used with the new ignore_warning parameter
The standard functions are used in _php_image_create_from_string,
sent as a function pointer, and call without this optional parameter.
2013-04-24 16:07:50 +02:00
Pierre Joye
111123af4f
conflict
2013-03-26 11:24:00 +01:00
Pierre Joye
5ae6f582fb
fix regression, take #2 (merge issue due to git 1.8 default setting changes)
2013-03-26 11:23:15 +01:00
Pierre Joye
f05972ddbf
- fix regression bug24155.phpt and bug39366.phpt
2013-03-22 09:21:11 +01:00
Pierre Joye
780c6e0a9c
- add affine matrix helper for translate, scale, rotate and shear
2013-03-20 11:01:37 +01:00
Pierre Joye
22159fb7b7
- add new interpolation method
...
. imagescale
. imageaffine
. replace imagerotate with new generic and optimized new implementations
. imagesetinterpolationmethod, to set the default interpolation to be
used with the new functions
. add imagepalettetotruecolor
2013-03-20 07:46:59 +01:00
Pierre Joye
0c32a18d4c
- clean and enable threshold
2013-02-28 19:22:06 +01:00
Pierre Joye
a991360344
- add image crop support
2013-02-28 17:24:23 +01:00
Pierre Joye
af5bf879aa
- add image flip API support
2013-02-27 10:39:09 +01:00
Pierre Joye
cccc349aa5
- initial webp support, rely on libpx, final version will be either w/o dep or using libwebp (to be released by g)
2010-10-04 22:30:35 +00:00
Pierre Joye
6b3e2b1910
- expose gdImageGetTrueColorPixel in bundled lib
...
- fix bundled lib build
2009-05-26 13:08:59 +00:00
Pierre Joye
24225b88bd
- silent warning or possible linker error on win
2009-04-07 13:01:27 +00:00
Takeshi Abe
40d3b2f7f3
MFH: added pixelate filter.
2009-01-14 19:06:12 +00:00
Pierre Joye
789eb9cc9a
- fix build on linux (static)
...
- add gd[Format]Version[Int|String] first methods to work around the png
header issues
2008-11-06 10:14:37 +00:00
Ilia Alshanetsky
79325e3c55
MFH: Fixed function definition
2007-09-11 23:34:25 +00:00
Pierre Joye
256de924c7
- MFH: @DOC add constants GD_MAJOR_VERSION, GD_MINOR_VERSION, GD_RELEASE_VERSION
...
GD_EXTRA_VERSION and GD_VERSION_STRING
2007-06-03 17:46:18 +00:00
Scott MacVicar
65408b1520
MFH: Fixed bug #40130 (TTF usage doesn't work properly under Netware).
2007-04-23 15:17:47 +00:00
Pierre Joye
6ef9642b16
- MFH:
...
- remove double lock (tween colors cache is created in each thread, the
cache mutex is already locked earlier)
- #40858 , other TS improvements for gd freetype cache management
cache initialization and shutdown is now done in MINIT and MSHUTDOWN.
2007-04-04 00:47:55 +00:00
Nuno Lopes
d43c9c11f4
fix compiler warnings introduced in my previous commit
2006-09-16 19:07:46 +00:00
Nuno Lopes
fe9d3b16c5
mark some huge arrays as read-only
2006-09-15 15:11:54 +00:00
Pierre Joye
6f632a77c3
- MFH: add a weak/tolerant mode to the jpeg loader
2006-02-05 15:53:58 +00:00
Pierre Joye
1b546b9f77
- MFH: add filter option to imagepng
...
- add constants
PS: If someone can check why #include "png.h" fails, it will be cleaner
2006-01-27 13:36:30 +00:00
Pierre Joye
5dd9ad8f53
-fix build as shared or separate from main build (bfrance)
2005-10-09 12:06:27 +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
Joe Orton
0d3884fed1
Move global symbols defined by bundled copy of libgd into private
...
php_gd_* namespace, to avoid symbol conflicts with, for instance,
another Apache module which loads a different copy of libgd.
2004-08-31 16:41:29 +00:00
Stefan Esser
e58e6efd4d
Merge changes from GD 2.0.28
2004-07-22 22:38:59 +00:00
Ilia Alshanetsky
9a50bd2de1
Missing part of the upgrade patch.
2004-05-10 02:18:49 +00:00
Derick Rethans
2c259a7979
- Add fontpath for win98/XP (Patch by Friedhelm Betz)
2004-04-12 21:42:42 +00:00
Ilia Alshanetsky
8b079070a3
Synchronized bundled GD library with GD 2.0.22.
2004-03-29 18:20:33 +00:00
Ilia Alshanetsky
36db28c8db
CS fixes.
2003-12-28 20:11:08 +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
Marcus Boerger
8fd5e11ff4
Add ImageXBM
2003-06-15 20:00:08 +00:00
Ilia Alshanetsky
7029ef01b3
Added missing bit from gd2.0.12 sync.
2003-04-09 01:55:48 +00:00
Ilia Alshanetsky
61026e391c
Syncronized bunbled GD library with gd 2.0.12
...
# One very useful feature that I still need to add support for in our
# interface to the lib is the support for png compression for imagepng().
2003-04-05 17:23:55 +00:00
Pierre Joye
a5f35ef94a
Add gdImageEllipse
...
Replace gdImageFilledEllipse by a new function (backported from
the new phpgd)
the new gdImageFilledEllipse fix bug bug #22103 (ellipse part)
2003-02-08 08:41:43 +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
b52eb8f14a
Fixed bug #21445 .
2003-01-06 00:47:40 +00:00
Pierre Joye
983d8e5efd
Add antialias flag to image structure
...
Add AA support
2002-12-11 20:47:26 +00:00
Ilia Alshanetsky
5779f9bb0f
Made imagecreatefromxpm() work once again.
2002-12-04 20:58:04 +00:00
Marcus Boerger
fa38a6af6f
No more (f)printf for errors and warnings instead use php_error_docref.
2002-12-01 11:43:54 +00:00
Ilia Alshanetsky
9251486567
Synchronized bundled gd library with the latest stable GD, 2.0.6
...
Fixed a configuration problem with xpm.
Fixed 2 possible memory leaks in fontFetch().
2002-11-25 01:51: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
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