Commit Graph

110 Commits

Author SHA1 Message Date
264d09b417 Rename colour and greyscale to color and grayscale respectively 2013-06-06 23:26:16 +02:00
2592f57df4 file-png: Fix some compiler warnings 2013-05-10 11:37:14 +05:30
bf7508bcd7 file-png: Use proper enum types instead of ints 2013-05-10 11:36:50 +05:30
14bb38da3f plug-ins: fix a memory leak in file-png
Found using clang's scan-build.
2013-01-14 17:36:43 -05:00
4d4905cc0e Revert "plug-ins: clean out compilation warning about types used by libpng."
This reverts commit a02facf41e.
It broke the build against other libpng versions.
2013-01-05 17:15:19 +01:00
a02facf41e plug-ins: clean out compilation warning about types used by libpng.
iCCP profile was changed from png_charpp to png_bytepp in 1.5.x (cf.
libpng manual). Older versions of libpng still works of course, but
we fix warnings for recent versions.
2013-01-04 20:40:26 +09:00
67dda14e77 plug-ins: cleanup in the recently GEGL-ported plug-ins
Mostly formatting consistency paranoia.
2012-11-27 20:58:05 +01:00
fe19ad9706 Bug 683694 - Spelling errors
Reworded all places that used to say "allows to".
2012-11-11 15:50:25 +01:00
d3e68fc995 plug-ins: don't crash loading a transparent indexed png
with no text chunk, in that case 'i' == tile_height and

*** glibc detected *** ...2.0/plug-ins/file-png:
  double free or corruption (out): 0x00000000011af590 ***
2012-07-09 18:04:08 +02:00
a13765e2a7 remove obsolete workaround for gegl 2012-05-03 01:16:21 +02:00
ab1bf6fcee clean up png plugin some more. 2012-05-02 17:51:22 +02:00
87abc72832 file-png: use gegl iterators for some of the code 2012-05-02 17:51:21 +02:00
7f45819202 ==== remove obsolete warning ==== 2012-05-02 17:51:21 +02:00
641848ea0b Fix the palette handling in gimp_drawable_get_format() 2012-05-02 17:51:21 +02:00
1549dd00ba file-png: implement PNG indexed saving/loading 2012-05-02 17:51:20 +02:00
89113fed51 code formatting fixes, some simplifications 2012-05-02 17:51:18 +02:00
64ad69e331 first shot at GEGL-based png-save 2012-05-02 17:51:18 +02:00
5edf1b1972 first shot at PNG loading with GEGL
Doesn't work yet for 16bit PNGs, there is a weird crash in libgimp
but I didn't do anything...

This closely follows the old pixel region based code, which might
be suboptimal for gegl, but has the advantage of keeping metadata intact.

Indexed currently is disabled, needs resurrecting.
2012-05-02 17:51:17 +02:00
257224ff99 Bug 674024: Store in .png does not compress
The slider did not always show the values effectively used
2012-04-14 18:39:49 +02:00
f07b9606d8 Bug 658610 - Warn when importing PNG images with an offse
Added a dialog about offsets to the PNG loader
2012-02-12 20:49:52 +01:00
e78ea68f69 file-png: Display a readable string when error message is unavailable 2011-12-06 20:48:09 +05:30
e410fe09e7 file-png: Mark string for translation 2011-12-06 20:47:37 +05:30
f40453be3c file-png: Remove redundant assignment 2011-10-11 10:22:24 +05:30
e0298effdf file-png: Move comment to correct function 2011-10-11 10:22:00 +05:30
5769acd3db file-png: Add comments about the struct checks 2011-09-27 19:22:50 +05:30
ff2b9ee727 file-png: Return correct type of error value 2011-09-21 17:16:54 +05:30
1ac6c7b85c file-png: Check that PNG structs are created properly
If there's a version mismatch between compiled version (header) and
installed shared libpng library, structs are not created and NULL is
returned.
2011-09-21 17:08:56 +05:30
5b999ab3f9 file-png: Indent some code 2011-05-06 19:33:46 +05:30
ae654a7aae file-png: Update comment for png_set_IHDR() 2011-05-05 20:47:53 +05:30
fbbeb8d629 file-png: Call png_set_*() functions after png_set_IHDR() 2011-05-05 20:36:45 +05:30
dbecc7b705 file-png: Move setting the comment text after IHDR is set 2011-05-05 20:15:02 +05:30
4fa2bbabf9 file-png: Specify the interlace type explicitly 2011-05-05 18:53:11 +05:30
5b5d88a2f1 file-png: Get num_colors properly before passing it on 2011-04-26 15:18:27 +05:30
92684a25e9 file-png: Don't access inside PNG structs directly (contd.) 2011-04-26 08:06:27 +05:30
a1c7606d51 file-png: Conditionally declare text_length 2011-04-25 20:15:39 +05:30
f610aa4375 file-png: Don't access inside PNG structs directly 2011-04-25 20:15:39 +05:30
8ff66342b8 plug-ins: set progress to 1.0 when done 2011-04-10 19:28:43 +02:00
8c4d99f883 Bug 645456 - Inconsistent window (role) naming scheme
Applied patch from Christoph Kappel which adds a "gimp-" prefix to all
plug-in dialog window roles.
2011-04-08 20:31:34 +02:00
bb6436cb44 libgimp: deprecate and rename the global pararasite functions
just as it was done for items and images. Remove the "parasite" PDB
group completely.
2011-03-08 14:31:04 +01:00
87646e9ace libgimp: deprecate and rename the image parasite functions
in exactly the way the drawable functios were turned into item ones.
2011-03-08 13:19:21 +01:00
ed872c7c6e Bug 599065 - PNG output: omit unwanted chunks (sRGB)
If the image has neither a gamma set nor a color profile set, then we
should leave the image untagged. We should not tag as sRGB by default
because it is too arbitrary.
2011-02-02 08:34:39 +01:00
bbd7ec6b5c plug-ins: port from gimp_image_add_foo() to gimp_image_insert_foo()
I'm sure some plug-ins need to add their items *not* at the toplevel,
but since making plug-ins really tree-aware is a lot more work than
just fixing insert positions, I went for passing -1 as parent in
almost all cases. And because of laziness...
2010-09-06 11:40:46 +02:00
ff221e679c Bug 624275 - Image saved from google docs generates a 'gimp-image-set-resolution' error message
Only set the image resolution if the resolution in the PNG file
is greater than zero.
2010-07-13 22:20:15 +02:00
d2406fd4c3 plug-ins: move the UI file to datadir/ui/plug-ins/plug-in-file-png.ui 2010-01-12 22:02:51 +01:00
9317bb4548 plug-ins: fix error reporting and a compiler warning 2010-01-12 21:12:40 +01:00
7c32f5442a plug-ins: Check for errors when loading file-png.ui
Check for errors when loading file-png.ui. Still continue execution
though even if an error occurs, because the user can still export.
2010-01-09 20:03:58 +01:00
0abf5cc4f0 Use Glade + GtkBuilder for file-png.c save_dialog()
To give us experience with Glade + GtkBuilder, use it for the save
dialog in the PNG plug-in. The layout is as good as
identical. Mnemonics still works and strings are still translated.
2010-01-08 21:16:10 +01:00
018e8b0d29 Build with GSEAL_ENABLE and #undef it where accessors are missing 2009-10-17 20:31:57 +02:00
19fe919dce plug-ins: Port file plug-ins to new export API 2009-07-21 16:03:58 +02:00
65c21b6bc3 Bug 567466 – PNG comment not found if more than 1 tEXt chunks
Fix an oversight: only the first tEXt chunk of a PNG was considered,
though repeatedly, when looking for the comment.
2009-07-16 22:24:59 +02:00