Commit Graph

6790 Commits

Author SHA1 Message Date
Michael Natterer 07107fe214 plug-ins: port animation-play to GEGL 2012-09-22 00:46:05 +02:00
Michael Natterer cc817670ed plug-ins: port print to GEGL 2012-09-21 23:33:01 +02:00
Michael Natterer 244b3766bd plug-ins: port file-bmp to GEGL 2012-09-21 19:19:03 +02:00
Mukund Sivaraman 800f967930 file-bmp: Fix order of data in RGBA_8888 images
See #678250, #678252, etc. for example bug reports.

This fix should be sufficient in fixing BMP output, but it looks
like some apps like Firefox have broken BMP loaders which do not
care for the masks. We would have to change the masks for them.
2012-09-21 20:11:31 +05:30
Mukund Sivaraman b100b14111 file-bmp: All 16 and 32-bpp files need the masks to be written
See #678250, #678252, etc. for example bug reports.
2012-09-21 20:09:51 +05:30
Michael Natterer fd53a33de9 plug-ins: port file-faxg3 to GEGL 2012-09-17 23:31:02 +02:00
Michael Natterer 809521557a plug-ins: formatting and untabify in file-faxg3 2012-09-17 22:27:15 +02:00
Michael Natterer 59418b8a21 plug-ins: port file-gif-load to GEGL 2012-09-15 22:08:20 +02:00
Michael Natterer 654af22c0f plug-ins: undeprecate align-layers: no need to use gimp_drawable_get() 2012-09-15 21:56:05 +02:00
Michael Natterer e84d04d229 plug-ins: port file-aa to GEGL, and support indexed images 2012-09-15 09:34:25 +02:00
Michael Natterer 16f46dd0d4 plug-ins: port file-gbr to GEGL
This is only undeprecation and doesn't add high bitdepth brush support
or anything, not even for loaded half-float CinePaint brushes.
2012-09-13 22:36:31 +02:00
Kevin Cozens a2e037fb00 Corrected spelling errors spotted by Ari Pollak (Mostly fixes bug #683694)
Still need to address the "allows to" grammatical error.
2012-09-10 12:22:12 -04:00
Michael Natterer aecef113ab Bug 655684 - After saving an image with geotags you cannot...
Apply patch from Hartmut Kuhse which fixes encoding of
XMP_TYPE_GPS_COORDINATE.
2012-09-09 00:54:49 +02:00
Nils Philippsen 96ce2c936d file-cel: make generating thumbnails more robust
Ran non-interactively, file-cel could crash e.g. if loading an image to
generate a thumbnail, because there is no way to specify a palette file
in that case.
2012-09-06 12:42:48 +02:00
Mukund Sivaraman 1981cb9a82 value-propogate: Rearrange operands 2012-09-06 07:29:54 +05:30
Mukund Sivaraman 24139cf453 value-propogate: Fix condition (cppcheck report) 2012-09-06 07:29:16 +05:30
Mukund Sivaraman b3d0ec400e gfig: Remove redundant code (cppcheck report) 2012-09-06 07:25:50 +05:30
Mukund Sivaraman dde1ed4d3c file-save-pdf: Remove redundant code (cppcheck report) 2012-09-06 07:23:05 +05:30
Michael Natterer a366fd76e5 Revert "Bug 683381 - Inverted alpha behavior of 16-bit Targa files"
This reverts commit dc00fb57a0.
2012-09-05 23:34:11 +02:00
Mike Gran dc00fb57a0 Bug 683381 - Inverted alpha behavior of 16-bit Targa files
file-tga.c (upsample): swap alpha behavior
2012-09-05 22:47:35 +02:00
Massimo Valentini c59ab4d817 lcms: oversight 2012-09-04 17:53:06 +02:00
Michael Natterer 8bbfc9e5cf Bug 675558 - switch from lcms-1 to lcms-2
Applied modified patch from Hartmut Kuhse which ports to lcms-2.
2012-09-03 20:03:53 +02:00
Michael Natterer ed94e55be9 plig-ins: build file-compressor only if all compressions libs are there 2012-09-02 22:25:04 +02:00
Michael Natterer e49a5db5b4 plug-ins: formatting in file-compressor.c 2012-09-02 19:18:56 +02:00
Mukund Sivaraman 310e07465b file-compressor: Fix compiler warning 2012-09-02 05:05:24 +05:30
Mukund Sivaraman fc4a192f23 file-compressor: Add support for xz compressed files (bug #683159)
This commit causes a compiler warning because string literals are of
type signed char, and we use a character out of the signed range in the
mimetype for xz.  It can be fixed by changing the data type of the mime
string to (unsigned char *), and not using string literals, but that's
a bit too much for this commit.
2012-09-02 04:43:06 +05:30
Simon Budig 3d739b0cd2 assume gamma-data in tiffs. 2012-08-29 19:04:13 +02:00
Simon Budig da992cd62b small bugfix for planar, removal of dead code. 2012-08-29 18:20:34 +02:00
Massimo Valentini c09414b8b7 Bug 682454: Plug-in crashed
plug-in-metadata-decode-exif makes use of the exif parasite
attached to the image few lines above.

and exif_data->size is the size of the thumbnail buffer that
starts at exif_data->data and not at exif_data.

==4677== Invalid read of size 1
==4677==    at 0x4A0A130: memcpy@@GLIBC_2.14 (/builddir/build/BUILD/valgrind-3.7.0/memcheck/mc_replace_strmem.c:837)
==4677==    by 0x4E440F8: gimp_write (gimp-2-8/libgimp/gimp.c:1726)
==4677==    by 0x5BDD27E: gimp_wire_write (gimp-2-8/libgimpbase/gimpwire.c:174)
==4677==    by 0x5BD9D41: _gp_params_write (gimp-2-8/libgimpbase/gimpprotocol.c:1748)
==4677==    by 0x5BDDA46: gimp_wire_write_msg (gimp-2-8/libgimpbase/gimpwire.c:296)
==4677==    by 0x5BDAE17: gp_proc_run_write (gimp-2-8/libgimpbase/gimpprotocol.c:305)
==4677==    by 0x4E4513E: gimp_run_procedure2 (gimp-2-8/libgimp/gimp.c:993)
==4677==    by 0x4E4544B: gimp_run_procedure (gimp-2-8/libgimp/gimp.c:926)
==4677==    by 0x40BD36: gimp_metadata_store_exif (gimp-2-8/plug-ins/file-jpeg/gimpexif.c:69)
==4677==    by 0x406EA4: load_image (gimp-2-8/plug-ins/file-jpeg/jpeg-load.c:343)
==4677==    by 0x405A2E: run (gimp-2-8/plug-ins/file-jpeg/jpeg.c:235)
==4677==    by 0x4E44AD8: gimp_main (gimp-2-8/libgimp/gimp.c:1992)
==4677==    by 0x30A0421734: (below main) (in /usr/lib64/libc-2.15.so)
==4677==  Address 0x8f75e01 is 1 bytes after a block of size 64 alloc'd
==4677==    at 0x4A06F18: calloc (/builddir/build/BUILD/valgrind-3.7.0/coregrind/m_replacemalloc/vg_replace_malloc.c:566)
==4677==    by 0x8AC304B: exif_data_new_mem (/home/massimo/libexif/libexif/exif-data.c:111)
==4677==    by 0x8AC312D: exif_data_new (/home/massimo/libexif/libexif/exif-data.c:95)
==4677==    by 0x407224: load_image (gimp-2-8/plug-ins/file-jpeg/jpeg-load.c:311)
2012-08-26 17:41:25 +02:00
Alexandre Prokoudine 6f3cbcbbd9 Adjusted default values in the Drop Shadow script to help people produce less ugly artwork 2012-08-25 20:14:02 +04:00
Mikael Magnusson f6f22ed431 Remove stray semicolons 2012-08-20 15:22:20 +02:00
Nils Philippsen 43fc9dbd8e file-gif-load: fix type overflow (CVE-2012-3481)
Cast variables properly to avoid overflowing when computing how much
memory to allocate.
2012-08-16 12:07:40 +02:00
Jan Lieskovsky d95c2f0bcb file-gif-load: limit len and height (CVE-2012-3481)
Ensure values of len and height can't overflow g_malloc() argument type.
2012-08-16 12:06:31 +02:00
Nils Philippsen 86f4cd39bd file-cel: use g_set_error() for errors instead of g_message() 2012-08-14 12:03:59 +02:00
Nils Philippsen 69b98191cf file-cel: use statically allocated palette buffer 2012-08-14 12:03:59 +02:00
Nils Philippsen b772d1b84c file-cel: validate header data (CVE-2012-3403) 2012-08-14 12:03:59 +02:00
Nils Philippsen 797db58b94 file-cel: check fread()/g_fopen() return values and pass on errors 2012-08-14 12:03:58 +02:00
Michael Natterer 73fc1df8ff Bug 678297 - Cannot find Page Setup in Gimp 2.8
Embed the page setup dialog only on non-windows systems. This
effectively reverts bdc3f7e7e0 but puts
the diff in #if[n]def EMBED_PAGE_SETUP which is defined as
!G_OS_WIN32. Did not revert the bug fixes that were mixed with
the original embedding patch.
2012-08-07 16:03:42 +02:00
Michael Natterer c207e395fd Bug 680432 - metadata.exe keeps dying
Based on a patch by Hartmut Kuhse, run all strings through
gimp_any_to_utf8() which always returns something that's UTF-8, even
if it's only "(invalid UTF-8 String)". Better than crashing.
2012-07-31 15:14:20 +02:00
Massimo Valentini 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
Massimo Valentini d76394775f Bug 677040: PDF export does not appear to handle font size...
...correctly unless image flattened

Font size was wrong unless in pixels and
gimp_drawable_type returns a GimpImageType
2012-06-21 19:04:32 +02:00
Mikael Magnusson a4cd8637af metadata: fix length passed to base64 decoder 2012-06-13 02:12:27 +02:00
Matthias Wenzel 9e97e5c26a plug-ins: add 1, 2, 4, 8 bit grayscale loading to file-raw
and put the preview into a scrolled window.

mitch: cleaned up the patch and made the preview area properly
follow the loaded image's size.
2012-06-12 20:10:36 +02:00
Massimo Valentini 03e819de24 Bug 673729: tiff plug in not working 2.8.0-RC1 windows install
implement win32 filename Unicode management in the plug-ins
to work-around a problem in libtiff TIFFFdOpen.

Based on a patch from Hartmut Kuhse.
2012-06-09 15:36:53 +02:00
Massimo Valentini be5b969c00 Bug 677637: PDF export plug-in does not work
use g_fopen and cairo_pdf_surface_create_for_stream
to avoid file name encoding issues on Windows.
2012-06-09 15:36:53 +02:00
Simon Budig 24b834627e slight progress for planar loading... 2012-06-07 01:53:46 +02:00
Simon Budig e0497c5173 treat tiff samples as linear instead of gamma corrected 2012-06-06 21:53:50 +02:00
Michael Natterer ace4563159 Bug 676804 - file handling DoS for fit file format
Apply patch from joe@reactionis.co.uk which fixes a buffer overflow on
broken/malicious fits files.
2012-06-06 21:21:10 +02:00
Massimo Valentini 321a113212 Bug 676916: Filename garbled when you save .xcf.bz2...
or .xcf.gz files using non-ASCII characters
2012-05-31 19:35:23 +02:00
Massimo Valentini 2f10aee65d Bug 676871: GIMP reports false positive plugin crash after...
entering "quit()" in Python Console.
2012-05-29 13:10:05 +02:00