summaryrefslogtreecommitdiff
path: root/src/png.c
AgeCommit message (Collapse)Author
2024-11-24Fix undefined NULL with image support disabledRodrigo Arias Mallo
2024-11-24Add support to read png versionRodrigo Arias Mallo
2024-06-01Handle PNG warnings as non-fatalRodrigo Arias Mallo
The libpng library may emit warnings when decoding a PNG image, which are non-fatal. So far we were handling them as errors and stopping the decoding process, which prevents Dillo from decoding some images. In particular, images that emit the warning: > iCCP: known incorrect sRGB profile Fixes: https://github.com/dillo-browser/dillo/issues/179 Authored-by: dogma
2024-03-09Use Doxygen comments for C filesRodrigo Arias Mallo
2014-09-10png error handler MSG include URLcorvid
2014-06-21Ensure png, jpeg and gif decoders don't use DilloImage after set_parms()Jorge Arellano Cid
This allows reuse of the dicache entry after repush changes DilloImage.
2013-06-17use gamma value from png files (if available)Johannes Hofmann
2013-06-17Corrections of gamma.Sebastian Geerken
2013-06-17Added gamma correction value to dw::core::ImgBuf.Sebastian Geerken
2013-01-12clean up struct typedefsp37sitdu, corvid
2012-10-05clean up png structcorvid
2012-02-15unused definescorvid
2011-04-04clearer MSG for suspicious image sizecorvid
I saw a MSG with size 0x[something], and of course I thought it was complaining that a size was given in hex notation.
2010-09-06use png_uint_32 for png width and heightcorvid
For libpng-1.2, png_uint_32 is an unsigned long. For libpng-1.4, it's normally an unsigned int. With 1.4, gcc complained because png_get_IHDR() wants a ptr to whatever a png_uint_32 is, and dillo gave a ptr to an unsigned long.
2010-04-27spellingcorvid
2010-02-14use png_sig_cmp()corvid
It seems that libpng 1.4 got rid of png_check_sig() (http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt) The CHANGES doc that came with my libpng says that it was already obsolete by at least January 1999 (v. 1.0.2a). I checked 1.0.0 from March 98, and it has png_sig_cmp. I checked ummm... 0.89c, I think it was (it was from May 96, in any case), and it did not have it yet. I imagine we can ignore pre-1.0 from more than twelve years ago...
2009-06-29use IMAGE_MAX_AREA instead of IMAGE_MAX_W and IMAGE_MAX_HJohannes Hofmann
2009-06-26Image size sanity checks (part 1)Jorge Arellano Cid
2009-06-22remove system includescorvid
2009-06-19Added image size sanity checksrelease-2_1Jorge Arellano Cid
2009-06-19Added a limit for PNG image sizeJorge Arellano Cid
2009-05-13Silence the last image-debugging messagesJorge Arellano Cid
2009-05-11Cleanup: image debugging messagesJeremy Henty
2009-05-08Fix a memory leak when stopping an image-decoding processJorge Arellano Cid
2009-04-23Remove unused parameter in a_Dicache_write()corvid
2009-03-09needn't include web.hhcorvid
2009-03-09needn't include prefs.hcorvid
2009-01-31Minor tricks to avoid a couple compiler warnings in png.cJorge Arellano Cid
2009-01-31Set dicache as MIME dispatcher for image/{gif,jpg,png}. +refactor and cleanupsJorge Arellano Cid
2009-01-14Make now-unused debug messages silent.Jorge Arellano Cid
2009-01-09Backed out changeset abdae95b1c9eJohannes Hofmann
The optimization was causing crashes.
2009-01-05 These optimizations are for repeated images in a page.Jorge Arellano Cid
1.- Every repeated cache-served-image is decoded. The patch adds an extra reference to the dicache entry, so only one of them is decoded, and the imgbuf deletion is left to a_Dicache_cleanup. 2.- Every repeated cache-served-image call copyRow for each row. The patch avoids that. This is common with small images (e.g. bullets), but the overhead may be not worth the patch...
2009-01-03[mq]: dicache-cleanup7Jorge Arellano Cid
2009-01-01imported patch dicache-cleanup5Jorge Arellano Cid
2008-12-27[mq]: dicache-cleanup1Jorge Arellano Cid
2008-12-25Started code cleanup of the image code mainly in dicache.c. part#1Jorge Arellano Cid
2008-09-30- s/todo:/TODO:/gjcid
2008-09-28- Switched from DEBUG_MSG to MSG.jcid
2008-09-14- Made several cleanups according to compiler warnings with "-W -Wall".jcid
2008-02-29+ Added a MSG_WARN to non-png URLs served as png.jcid
2008-01-16 - Added support for progressive display of progressive jpegs.jcid
- Fixed progressive display of interlaced pngs.
2007-10-07Initial revisionjcid