summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fix tests based on coverity reports (#819)Pierre Joye2022-02-011-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Partial #818, unused arg * Partial #818, init var * partail #818, fix va_args usage * partail #818, handle f* calls and avoid possible call to malloc with negative values * partail #818, prevent double free * partail #818, resource leak if test fail * partail #818, null deref fix * partail #818, avoid double free on fp failure * Partial #818, fix error msg * Partial #818, leak on error * Partial #818, null deref * Partial #818, avoid possible negative index on failure * partial #818, does not free if we return if requested new size overflow * partial #818, avoid double free, free where the alloc happened
* docs: Fix a few typosTim Gates2021-09-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | There are small typos in: - examples/copyrotated.c - src/gd.c - src/gd.h - src/gd_avif.c - src/gd_nnquant.c - src/gd_tga.c - src/gd_topal.c - src/wbmp.c - tests/avif/compare_avif_to_png.c Fixes: - Should read `requires` rather than `reqiures`. - Should read `of the` rather than `ofthe`. - Should read `memory` rather than `memmory`. - Should read `maximum` rather than `maxmum`. - Should read `intersection` rather than `intertersection`. - Should read `hypotenuse` rather than `hypothenus`. - Should read `flexibility` rather than `flexibilty`. - Should read `always` rather than `alwasy`. - Should read `also` rather than `alos`.
* Add image scale examplePierre Joye2021-08-162-1/+83
|
* add HEIC examplePierre Joye2021-08-142-0/+67
|
* AVIF support (#671)Ben Morss2021-03-034-0/+268
| | | | | | | | | | | | | | | | | | | | | | | Demand for AVIF support on the web is growing, as the word gets out about this new file format which allows higher-quality encoding at smaller sizes. Core contributors to major open-source CMSs are interested in auto-generating AVIF images! They've been simply waiting for support to appear in libgd. This PR aims to meet the growing demand, and to help bring smaller, more beautiful images to more of the web - to sites created by experienced developers and CMS users alike. This PR adds support by incorporating libavif in addition to the existing libheif support. It's generally felt that libavif has more complete support for the AVIF format. libavif is also used by the Chromium project and squoosh.app. In this PR, I've endeavored to incorporate the latest research into best practices for AVIF encoding - not just for default quantizer values, but also an algorithm for determining the number of horizontal tiles, vertical tiles, and threads. Fixes #557.
* Remove Git ident attributesPeter Kokot2018-06-278-10/+0
| | | | | | | | Git ident attributes were in most cases utilized with SVN and keywords substitutions, where $Id$ were replaced with certain revision from the repository. In Git this functionality is different. Each $Id$ needs to be defined in .gitattributes file to be effective. This patch removes unused and outdated attributes.
* examples: fix build errors in previous cleanup hereMike Frysinger2018-06-261-4/+9
| | | | | | There was a double paste error in the name "nnquant", and the link line needs to come after we add programs. This was missed locally due to the conditional logic (blah).
* move (redundant) ifdef checks from source to build filesMike Frysinger2018-06-215-39/+14
| | | | | | We've been tracking program deps in the build files, so it ends up being redundant for a lot of our test/example programs. Clean them up, and update some of the cmake/automake files as needed.
* clean up trailing whitespace/newlinesMike Frysinger2018-06-212-2/+2
| | | | | This is preparation for adding some linting checks for new commits from people. Shouldn't be any functional changes here (tests still pass!).
* Fix #440: new_width & new_height exception handlingHaegul Pyun2018-04-181-2/+2
| | | | | Since the cos range is a real number range, there is a possibility of negative numbers. - handling fabs new_width & new_height
* Make BUILD_SHARED_LIBS configurableLeo Yang2015-08-271-3/+9
| | | | | As previously build both shared and static if BUILD_SHARED_LIBS is ON. Otherwise build static only.
* new example "resize"Remi Collet2014-03-121-0/+59
|
* Make distcheck work (fixes #54)Ondřej Surý2013-05-041-1/+0
|
* avoid non init'ed im if no png supportPierre Joye2013-04-041-0/+1
|
* fix examples buildPierre Joye2013-04-044-4/+23
|
* - apply same CS everywherepierrejoye2013-04-039-129/+124
|
* simplify code with LIST(APPEND ...)Takeshi Abe2013-03-081-10/+2
|
* drop duplicate entry in TEST_FILESTakeshi Abe2013-02-211-1/+0
|
* fix -Wuninitializedtabe2013-02-112-2/+0
|
* fix -Wreturn-typetabe2013-02-113-0/+3
|
* fix -Wunused-but-set-variabletabe2013-02-111-3/+3
|
* fix -Wunused-variabletabe2013-02-111-4/+1
|
* fix -Wunused-parametertabe2013-02-111-1/+1
|
* remove missing entries; sort linestabe2013-02-101-8/+3
|
* add dependency on libm for copyrotated (refs gd-libgd #8)tabe2013-02-091-0/+6
|
* drop obsolete .cvsignoretabe2013-02-071-7/+0
|
* - add Makefile.am (dist)pajoye2008-05-101-0/+1
|
* - encoding messpajoye2008-04-201-17/+18
|
* - fix window example buildpajoye2008-04-201-1/+1
|
* - fix windows GDI example build with mingwpajoye2008-04-171-8/+11
|
* - add "win32" flag for the windows GUI examplepajoye2008-04-171-6/+5
|
* - #136, update the threshold crop to use color distance in the rgb cubepajoye2008-03-141-13/+1
| | | | (3d distance) and normalize the threshold level from 0..1.0
* - resize example not yet commitedpajoye2008-03-141-1/+1
|
* - add arc examplepajoye2008-03-141-0/+29
|
* - don't double convert to radianpajoye2008-02-281-5/+13
|
* - add copyRotated examplepajoye2008-02-282-4/+88
|
* - #129:pajoye2008-02-272-3/+88
| | | | | | | - revert horizontal/vertical, was too confusing, it acts now like any application (ie. gimp/ps) instead of talking about h/v axis - optimize both - add simple example
* - wrong comment, copy/paste evilnesspajoye2008-01-281-5/+0
|
* - add animated GIF example with a palette per frame (local palette)pajoye2008-01-222-1/+54
|
* - enable the bezier curve and animation of the bezier control points selectionpajoye2008-01-201-5/+5
|
* - fix crash when the window is resizedpajoye2008-01-201-98/+168
| | | | - cleanup (smaller and proper code)
* - add windows example (draw in a window)pajoye2008-01-152-0/+251
|
* - drop commentpajoye2008-01-151-5/+0
|
* - don't try to build when jpeg support is not availablepajoye2008-01-151-0/+5
|
* - add nnquant to the buildpajoye2008-01-151-0/+1
|
* *** empty log message ***pajoye2008-01-131-2/+15
|
* - cleanuppajoye2008-01-051-3/+0
| | | | - nuke unused var
* - remove useless includepajoye2008-01-011-1/+0
|
* - #58, Add new dithering alogirthm based on nthony Dekker's neuquantpajoye2007-12-312-0/+65
| | | | algorithm using http://pngnq.sourceforge.net/ with alpha support
* - nuke unused variablespajoye2007-12-281-4/+2
|