Commit Graph

170 Commits

Author SHA1 Message Date
Pierre Joye
154507f6bc - #37360, bad gif size 2006-05-08 11:49:33 +00:00
Pierre Joye
9d07689c67 - CS (spaces > tabs) 2006-05-08 11:46:13 +00:00
Pierre Joye
fc91929f94 - MFB: #37346, invalid colormap format 2006-05-07 17:21:11 +00:00
Pierre Joye
ff2822a82b - MFB: #36697, truecolor image lost im->transparent 2006-03-14 03:46:59 +00:00
Pierre Joye
ccaa5eaab2 - remove libjpeg direct output and wrap them in php warnings 2006-02-04 14:56:58 +00:00
Pierre Joye
bc436e2fd3 - add a weak/tolerant mode to the jpeg loader
* new INI option to enable it (off by default)
   gd.jpeg_ignore_warning (0|1)
 * The default mode is the current behavior
 * if the warning mode is enabled, the image may be loaded succesfully
   but the jpeg warnings will be raise as notices
2006-02-02 20:30:54 +00:00
Pierre Joye
64d07968de - add filter mode support for imagepng
imagepng("file", $comp_mode, $filter_mode);
  The filters are defined in the libpng docs for png_set_filter
  allow to divide the size of png images by more than 2. Constants
  will be added later

  BC kept, by default no filter are set

Fine to MFH? With the constants?
2006-01-27 01:59:26 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Pierre Joye
e45ec1e460 - ensure that x1<x2 or y1<y2 2005-12-30 09:53:05 +00:00
Pierre Joye
3afdc2e490 - add some basic optimisations, usefull when you draw many horizontal or
vertical lines like in charts
2005-12-30 01:19:32 +00:00
Pierre Joye
65df8e80ea - fix leak/segfaults in imagecolormatch
- add tests for imagecolorexact and imagecolormatch
  The later is only about the segv
2005-12-25 19:21:58 +00:00
Pierre Joye
9c6a41fbdb - drop freetype1 support 2005-10-02 18:01:51 +00:00
Pierre Joye
00953d1a15 - MFB: #33125, alpha emulation broken 2005-09-30 20:58:41 +00:00
Pierre Joye
97bad74c0f - #33220, fix infinite loop while loading invalid gif, this patch fixes
at least many cases (nlopess)
2005-09-24 14:37:49 +00:00
foobar
b385e0ad39 Nuke EOLs from error messages 2005-08-18 12:54:32 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Pierre Joye
9859780570 - fix #33794 imagerotate rotates only CCW
introduced by transparent color patch
2005-07-23 16:41:38 +00:00
Ilia Alshanetsky
353e07f57b Fixed memory corruption. 2005-06-16 22:50:32 +00:00
Pierre Joye
90ee88e090 - MFB: #32891, init old y positions to non possible values. -1 being used
if the center start a (x,0)
2005-05-01 06:01:56 +00:00
Rasmus Lerdorf
4162bd8b21 I think this is a cleaner emboss filter. Less fringing. 2005-04-16 09:20:59 +00:00
Rasmus Lerdorf
d0f4028194 The emboss and edge detection matrices are swapped 2005-04-16 00:04:52 +00:00
Pierre Joye
d8824f2d5c - remove "debug" code 2005-03-28 08:17:17 +00:00
Pierre Joye
6d46acfc70 - MFB, imagerectangle draws 2x each corners (alpha channel uglyness) 2005-03-28 08:14:30 +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
Pierre Joye
f3b74fe9ac - Attempt to fix #28598, bug introduced in GD (around php 4.3.4)
The way they fix MS Symbol are wrong, multiple faces support hould added
  later, safer.

  Please test it with your weird fonts, if it works, MFH will be done.
2004-11-20 13:09:45 +00:00
Pierre Joye
32ff83e4da - Really fix imagefill, part of my previous (old) fix was not applied
(blame me), bak the alphablending and restore it on exit
2004-11-17 20:19:35 +00:00
Pierre Joye
d9f08cb7ce - MFB: fix #30739, imagefill did not set back alphablending mode 2004-11-17 17:21:22 +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
Ilia Alshanetsky
61d60153b2 Fixed memory leak. 2004-08-11 23:25:50 +00:00
Stefan Esser
e58e6efd4d Merge changes from GD 2.0.28 2004-07-22 22:38:59 +00:00
Ilia Alshanetsky
f0ffe7c85b Fixed bug #28175 (Allow bundled GD to compile against freetype 2.1.2). 2004-06-09 14:50:05 +00:00
Pierre Joye
5b71225f1b - Fix #28506, negative angle returns "random arcs"
while (angle < 0) angle += 2*M_PI is used now
2004-05-24 19:52:28 +00:00
Ilia Alshanetsky
9a50bd2de1 Missing part of the upgrade patch. 2004-05-10 02:18:49 +00:00
Ilia Alshanetsky
f11d064b6a Fixed bug #28304 (Missing bounds check inside imagefilter()). 2004-05-09 18:25:33 +00:00
Ilia Alshanetsky
9557b4013a Fixed bug #28311 (Transparency detection code is off by 1). 2004-05-09 17:47:31 +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
Ilia Alshanetsky
c527cc8708 Fixed bug #28184 (C++ comments in GD library sources). 2004-04-27 14:59:07 +00:00
Derick Rethans
c452e275e7 - MFB: Fixed bug #28147 (Crash with drawing anti-alised lines) 2004-04-25 19:45:02 +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
fc419f10ef Revert patch to imagefillborder. 2004-03-22 17:26:03 +00:00
Ilia Alshanetsky
ac7283a602 Fixed a possible crash inside libgd's gdImageFillToBorder() due to a stack
overflow.
2004-03-21 18:02:19 +00:00
Pierre Joye
f223262bcd - Fix crash when an invalid color index is used with imagecolortransparent 2004-03-17 17:07:31 +00:00
Pierre Joye
197b48322e - restore too the alphablending if we do not reach the end of the function
Notice: This function still crashes (stack overflow), to reproduce it
  see bug27582_2.phpt
2004-03-13 23:21:25 +00:00
Pierre Joye
9fc9639c83 - fix #27582 (http://bugs.php.net/bug.php?id=27582)
The problem was that the colors were changed endlessly, blending over
  and over. An endless loop and recursive calls filled the stack=>segfault
2004-03-13 18:28:19 +00:00
Ilia Alshanetsky
53e56151fe Fixed bug #27437 (wrong freetype include inside GD library). 2004-03-06 18:24:41 +00:00
Derick Rethans
596efe5197 - Fixed bug in gdImageFilledRectangle in the bundled GD library, that required
x1 < x2 and y1 < y2 for coordinates.
2004-03-02 21:56:30 +00:00
Tim Toohey
b851f37123 (gdImageSetPixel) Tidied 'normal' blending effect
# libgd-2.0.12 fixed the problem with alpha-blending on semi-transparent backgrounds so
# gdFullAlphaBlend() and friends are no longer needed
2004-01-17 09:19:14 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
f4a07dd9a5 Replace regular malloc with safe_emalloc in several places. 2003-12-31 01:01:44 +00:00