gimp/plug-ins/common
Alx Sa dd10433c37 plug-ins: Fix indexed transparent PNG export
Resolves #9933.

We used png_get_valid (pp, info, PNG_INFO_tRNS) to check if
an indexed PNG had transparency when exporting.
However, this function does not return TRUE/FALSE but instead
the contents of that PNG chunk. Since we use index 0 for transparency,
this function always returns 0. The non-transparent indexed export code
ran regardless, creating incorrect PNGs.
We set pngg.has_trns earlier if the image has transparency, so it's safer
to use this variable instead.
2023-12-23 21:40:14 +00:00
..
align-layers.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
animation-optimize.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
animation-play.c plug-ins: replace gimp_[sg]et_data() with an aux bytes argument in animation-play. 2023-10-25 19:01:02 +02:00
blinds.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
border-average.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
busy-dialog.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
checkerboard.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
cml-explorer.c plug-ins: various improvements to cml-explorer. 2023-10-24 22:28:37 +02:00
colormap-remap.c libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
compose.c app, plug-ins: make missing tooltips translatable 2023-12-19 17:56:30 +00:00
contrast-retinex.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
crop-zealous.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
curve-bend.c plug-ins: replace gimp_[sg]et_data() with an aux bytes argument in curve-bend. 2023-10-25 22:47:45 +02:00
decompose.c app, plug-ins: make missing tooltips translatable 2023-12-19 17:56:30 +00:00
depth-merge.c app, plug-ins: make missing tooltips translatable 2023-12-19 17:56:30 +00:00
despeckle.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
destripe.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-aa.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-cel.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-compressor.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-csource.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-desktop-link.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-dicom.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-farbfeld.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-gbr.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-gegl.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-gif-load.c plug-ins: Add loop count to GIF parasite 2023-11-17 21:07:05 +00:00
file-gif-save.c plug-ins: Save GIF animation when overwriting 2023-11-12 12:10:34 +00:00
file-gih.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-glob.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-header.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-heif.c plug-ins: HEJ2 format loading 2023-11-20 20:16:01 +01:00
file-html-table.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-iff.c plug-ins: Set pixel aspect ratio for IFF images 2023-11-01 10:36:06 +00:00
file-jp2-load.c plug-ins: Removing "args" reference from file-jp2-load 2023-10-01 21:02:33 +02:00
file-jpegxl.c plug-ins: force metadata loading via libjxl 2023-11-04 20:34:01 +01:00
file-mng.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-pat.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-pcx.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-pdf-load.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-pdf-save.c plug-ins: make pdf export strings translatable 2023-12-17 03:02:25 +00:00
file-pix.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-png.c plug-ins: Fix indexed transparent PNG export 2023-12-23 21:40:14 +00:00
file-pnm.c plug-ins: fix typo in file-png 2023-10-31 11:37:28 -04:00
file-ps.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-psp.c plug-ins: Load guides and grid info for PSP files 2023-10-19 19:36:52 +00:00
file-qoi.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-raw-data.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-sunras.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-svg.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-tga.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-wbmp.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-wmf.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-xbm.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-xmc.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-xpm.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
file-xwd.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
film.c app, plug-ins: mark missing strings as translatable 2023-12-13 17:44:35 +00:00
gimprc.common plug-ins: fix generated common plug-in files and file-wbmp localization. 2022-07-07 21:27:39 +02:00
gradient-map.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
grid.c libgimp, plug-ins, extensions: gimp_image_procedure_new2() renamed gimp_image_procedure_new(). 2023-10-01 21:02:34 +02:00
guillotine.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
hot.c app, plug-ins: mark missing strings as translatable 2023-12-13 17:44:35 +00:00
jigsaw.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
mail.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
meson.build app, devel-docs, libgimp: updating gimp_text_layer_[gs]et_font() and new… 2023-10-01 21:02:34 +02:00
nl-filter.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
plugin-browser.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
procedure-browser.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
qbist.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
sample-colorize.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
smooth-palette.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
sparkle.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
sphere-designer.c plug-ins: replace gimp_[sg]et_data() with an aux bytes argument. 2023-10-24 23:46:53 +02:00
tile-small.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
tile.c app, plug-ins: mark missing strings as translatable 2023-12-13 17:44:35 +00:00
unit-editor.c plug-ins: get rid of hardcoded colors for built-in units. 2023-10-01 21:02:34 +02:00
van-gogh-lic.c plug-ins: Fix broken macro for van-gogh-lic 2023-11-01 23:31:06 +00:00
warp.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
wavelet-decompose.c app, plug-ins: make missing tooltips translatable 2023-12-19 17:56:30 +00:00
web-browser.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00
web-page.c plug-ins: fix some broken macros with a massive search-and-replace. 2023-10-18 18:29:37 +02:00