summaryrefslogtreecommitdiff
path: root/src/cairo-image-info-private.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix using signed types where unsigned ones were neededAnton Danilkin2021-04-111-1/+1
|
* Revert "Correctly decode Adobe CMYK JPEGs in PDF export"Bryce Harrington2018-10-161-1/+0
| | | | | | | | | | | | | | | | From further testing and investigation it appears that many PDF viewers already have a workaround to invert Adobe CMYK JPEGs, so our generated PDFs display incorrectly with those viewers due to double-inversion. Further investigation will be needed to find a better solution that doesn't cause regression for some PDF viewers; perhaps PDF viewers that lack this inversion workaround should be changed to include it. For now we'll drop the patch to avoid shipping the regression in 1.16.0. This reverts commit b207a932a2d3740984319dffd58a0791580597cd. Reference: https://bugs.freedesktop.org/show_bug.cgi?id=97612 Fixes: https://gitlab.freedesktop.org/cairo/cairo/issues/156
* Correctly decode Adobe CMYK JPEGs in PDF exportPeter TB Brett2016-09-091-0/+1
| | | | | | | | | | | | | Adobe PhotoShop generates CMYK JPEG files with inverted CMYK. When a JPEG file with this format is included in a PDF file, a `/Decode` array must be included to convert to "normal" CMYK. These JPEG files can be detected via the presence of the APP14 "Adobe" marker. However, PDF viewers are not required to detect and handle this private marker, so it must be detected and handled (by adding a `/Decode`) by the PDF generator. Signed-Off-By: Peter TB Brett <peter.brett@livecode.com>
* pdf: support JBIG2 mime dataAdrian Johnson2013-09-151-0/+5
| | | | | | | | | | JBIG2 images may have shared global data that is stored in a separate stream in PDF. The CAIRO_MIME_TYPE_JBIG2 mime type is for the JBIG2 data for each image. All images that use global data must also set CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID to a unique identifier. One of the images must also set CAIRO_MIME_TYPE_JBIG2_GLOBAL to the global data. The global data will be shared by all JBIG2 images with the same CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID.
* Convert mime data length to use unsigned longChris Wilson2010-07-101-3/+3
| | | | | | | What we want to use is size_t, but we don't want the implied POSIX dependency. However, POSIX does say that size_t is an unsigned integer that is no longer than a long, so it would appear safe to use an unsigned long as a replacement. Safer at least than unsigned int.
* Update FSF addressAndrea Canciani2010-04-271-1/+1
| | | | | | | | | | | I updated the Free Software Foundation address using the following script. for i in $(git grep Temple | cut -d: -f1 ) do sed -e 's/59 Temple Place[, -]* Suite 330, Boston, MA *02111-1307[, ]* USA/51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA/' -i "$i" done Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21356
* Add PNG get info functionAdrian Johnson2008-11-241-0/+5
|
* Add JPEG2000 mimetype and image info functionAdrian Johnson2008-11-231-0/+4
|
* Move cairo-jpeg-info.c to cairo-image-info.cAdrian Johnson2008-11-231-0/+54
Other image formats will be added to the same file.