Pierre Joye
98c6a27429
silent warning/unused args when codecs not enabled
2021-08-16 17:03:52 +07:00
Pierre Joye
c380ba2b78
Revert "Merge pull request #712 from me22bee/gdImageGdPtr"
...
This reverts commit bfc90ac2a6
, reversing
changes made to edaf39fe6f
.
2021-07-20 09:50:57 +07:00
maryam ebrahimzadeh
a9328b0125
gdImageGdPtr memory leak
2021-07-19 12:05:17 +04:30
Mike Frysinger
fd06f7f83c
clean up trailing whitespace/newlines
...
This is preparation for adding some linting checks for new commits from
people. Shouldn't be any functional changes here (tests still pass!).
2018-06-21 22:47:42 -04:00
Christoph M. Becker
2dbd8f6e66
Fix #383 (amendment)
...
When reading images in GD or GD2 format, we have to ensure that the
transparent color is not set, if it would refer to a non-extant palette
entry.
We back that up with respective regression tests.
2018-02-03 18:31:16 +01:00
Mike Frysinger
0be86e1926
gd/gd2: make sure transparent palette index is within bounds #383
...
The gd image formats allow for a palette of 256 colors,
so if the transparent index is out of range, disable it.
2018-01-31 14:50:16 -05:00
Mike Frysinger
14b8020dda
make gd/gd2 image formats optional #428
...
We still enable them by default, but we'll probably flip them off
in the next major release series.
2018-01-30 17:58:44 -05:00
Christoph M. Becker
712d9ec181
Fix #411 : gd_gd.c format documentation appears to be incorrect
...
The palette headers always consist of 256 palette entries, and if
`\377\377\377\377` is given for the transparency, that means that there
is no transparent color.
2017-09-07 15:27:18 +02:00
Christoph M. Becker
c39fa1e03c
Document GD 1.x image format
2017-09-03 15:50:42 +02:00
Christoph M. Becker
5ee392d6e8
First stab at documenting the GD and GD2 image formats
2016-08-14 20:01:19 +02:00
Christoph M. Becker
9a3bd7077e
Group the supported image formats in the menu of the docs
...
To do so we have to add Menu.txt to the project, but we can ignore
Languages.txt and Topics.txt, at least for now.
2016-08-14 16:11:05 +02:00
Christoph M. Becker
b0333689ef
Document all BGD_DECLARE'd functions
...
We add only minimal documentation comments for now, but at least that lets
Natural Docs add the function prototypes to the documentation.
2016-07-20 21:24:48 +02:00
Chris Reuter
275ac17bcc
Started importing the old manual into Naturaldocs comments.
...
This changeset imports documention for gdImage to gdImagePng*() into
Natural Docs. Documention is based on the text of the original
manual, version 2.0.36 but adapted to better suit the format.
Subsequent changesets will introduce docs for subsequent manual
entries.
naturaldocs, when present, is invoked by bootstrap.sh. The completed
manual will be in docs/naturaldocs/html/index.html. It can also be
explicitly invoked by running docs/naturaldocs/run_docs.sh.
This change also removed docs/naturaldocs/project/Menu.txt, since it
currently contains no non-generated content and is prone to introduce
noise into the changeset.
2014-01-07 15:29:06 -05:00
pierrejoye
e20413bf6b
- apply same CS everywhere
2013-04-03 14:23:11 +02:00
tabe
d4643d103e
fix ported from php r289557
...
- check max colors while loading gd palette image (patch by Tomas Hoger)
2009-11-10 22:56:51 +09:00
tabe
53d6320309
fixed possible segfaults when gdNewDynamicCtx() returns null
2009-06-25 19:05:45 +00:00
tabe
e27c3c7f2c
fix for FS#204
...
* gdImageCreateFrom*() returns null if null pointer given
* gdImage*() puts nothing if null pointer given
2009-06-18 13:35:26 +00:00
tabe
1abc30eb42
fixed typos.
2009-02-24 07:59:08 +00:00
mattias
d93586b409
- #105 , gdImageCreateFrom*Ptr() can crash if gdNewDynamicCtxEx() fails
2007-08-07 19:44:40 +00:00
mattias
dcd827f2cc
- #101 , _gdCreateFromFile() can crash if gdImageCreate fails
2007-08-06 18:32:26 +00:00
pierre
b163e4237d
- sync to 2.0.24
2006-04-05 15:52:22 +00:00
pierre
06e39b1bf5
- sync to 2.0.21
2006-04-05 15:50:59 +00:00
pierre
871d0d852c
- sync to 2.0.12
2006-04-05 15:47:57 +00:00
pierre
2399023b6c
- sync to 2.0.9
2006-04-05 15:46:42 +00:00
pierre
b0243fe7b1
- sync to 2.0.5
2006-04-05 15:44:56 +00:00
pierre
b623f93e30
- sync to 2.0.4
2006-04-05 15:44:17 +00:00
pierre
1cdea7482e
- sync to 2.0.1
2006-04-05 15:42:56 +00:00
pierre
fceb93d2b9
- sync to 2.0.0
2006-04-05 15:42:22 +00:00
pierre
6223ff8d81
- sync to 1.6.2
2006-04-05 15:37:05 +00:00
pierre
084ba37adc
- sync to 1.6.0
2006-04-05 15:35:53 +00:00
pierre
0b6804ee48
- sync to 1.5.0
2006-04-05 15:35:09 +00:00