Commit Graph

3317 Commits

Author SHA1 Message Date
Jehan e42ff36dff Bug 466958 (plug-ins): step-back button for animation playback. 2013-04-21 07:47:56 +09:00
Jehan b0a081bc91 plug-ins: the animated frames are generated at initialization, ready for render.
Additionaly a bug on shaping the window around moving non-alpha pixel is fixed.
2013-04-21 07:47:48 +09:00
Téo Mazars 35cc644765 Bug 695418 - Unsharp mask crashes for large radii
Make sure we are working on the image range
2013-04-08 18:53:01 +02:00
Téo Mazars 65d34b7b27 Bug 683713 - Align visible layers does not work when layers ...
This is a complete rework of the plug-in, the behaviour remains
unchanged.

The implementation spreads all visible layers into one contiguous
array, then applies a simplified rework of the legacy algorithm.
2013-03-30 15:33:47 +01:00
Michael Natterer 720d8fa77a Bug 692939 - Zealous crop does nothing
Treat completely transparent pixels as equal, ignoring the hidden
color information.
2013-03-26 23:38:25 +01:00
Mukund Sivaraman f86655bb1f file-gif-load: Fix incorrect out-of-input-bits condition (#695513)
GetCode() erroneously assumes that it has run out of input bits, because
it's off by 1 in its size calculation. At the end of the block, if the
End-of-Information code is exactly at the block boundary, it calculates
that it needs to read an extra bit, and tries to read beyond the end of
the block. It fails then, and the End-of-Information code is not
processed, and other warnings/errors are generated.
2013-03-12 13:11:48 +05:30
Michael Natterer e21e3bce5c plug-ins, pdb: remove plug-in noise-randomize
and implement its procedures as compat wrappers around GEGL ops.
2013-03-08 17:06:53 +01:00
Elle Stone ceebfe5d01 Bug 694679 - lcms plug-in half-floating point support
Again, this time in an #ifdef: add support for half-floating point ICC
profile conversions.
2013-02-26 09:12:02 +01:00
Michael Natterer 1e6d984c66 Revert "plug-ins: add support for half-floating point ICC profile conversions to lcms"
This reverts commit fd5a017633.

We can't depend on lcms 2.4 yet.
2013-02-25 23:25:27 +01:00
Elle Stone fd5a017633 plug-ins: add support for half-floating point ICC profile conversions to lcms 2013-02-25 22:50:23 +01:00
Téo Mazars 4a5a6ef914 Bug 684330 - Rectangle tool's "fixed size" option is off-by-one
ROUND() is consistent only on positive values, and bad rounding
creates an offset when negative values are involved. Introduce
SIGNED_ROUND() and use it in gimprectangletool.c. It should probably
be used in much more places.
2013-02-13 00:08:39 +01:00
Ville Skyttä 6b0d1038cc Bug 692641 - Various spelling fixes 2013-01-27 18:59:02 +01:00
Massimo Valentini 94a404ed24 Bug 639920: Gaussian blur can't work on specified selection
In presence of a selection extend the area processed
2013-01-27 17:04:04 +01:00
Jehan 9fa112f6b3 Bug 690728: file-gif-save plug-in crops the actual image the user is working on.
Destructive behavior fixed by duplicating the image first, then deleting
the duplicate at the end.
2013-01-20 16:17:55 +09:00
Kővágó, Zoltán cfe5dd8bd4 file-xwd: support 32bit (ARGB) xwd import
No saving for now...
2013-01-19 22:03:06 +01:00
Michael Natterer dfabfb9664 Bug 572997 - gih description alter when re-saving
Undeprecate, clean up and apply patch from Eric Lamarque which adds a
"gimp-brush-pipe-name" parasite to remember the description.
2013-01-19 20:54:08 +01:00
Massimo Valentini d93d2e71c3 Bug 670226 - pbm image non-interactive different from interactive
Properly set the "pbm" flag in non-interactive mode, also add a
missing "break" so non-interactive actually behaves like
non-interactive.
2013-01-19 18:46:53 +01:00
Michael Henning 2999e30901 plug-ins: fix memory leak in file-html-table
Found using clang's scan-build.
2013-01-18 23:12:15 -05:00
Michael Henning 0357f83658 plug-ins: fix memory leak in file-mng
Found using clang's scan-build.
2013-01-17 19:23:51 -05:00
Michael Henning a9b014c3dd plug-ins: fix memory leak in file-xbm
Found using clang's scan-build.
2013-01-16 18:49:09 -05:00
Michael Natterer c44c33f667 plug-ins: forgot gegl_init() in file-pdf-save 2013-01-15 14:25:15 +01:00
Michael Henning 14bb38da3f plug-ins: fix a memory leak in file-png
Found using clang's scan-build.
2013-01-14 17:36:43 -05:00
Michael Henning f4bf93dac9 plug-ins: fix memory leak in file-tiff-save
Found using clang's scan-build.
2013-01-13 21:38:12 -05:00
Michael Natterer fda8c63a2b plug-ins: remove trailing whitespace in file-tiff-load 2013-01-13 22:27:22 +01:00
Michael Henning 7d6f6a2692 plug-ins: fix memory leak in file-tiff-load
Found using clang's scan-build.
2013-01-12 22:52:42 -05:00
Michael Henning e87971e850 plug-ins: fix memory leak in edge-neon
Found using clang's scan-build.
2013-01-11 21:02:00 -05:00
Michael Henning c59e569e50 plug-ins: don't free a pointer allocated with g_newa in file-pdf-save
Found using clang's scan-build.
2013-01-09 17:02:43 -05:00
Michael Natterer 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
Jehan 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
Michael Natterer b47107123a plug-ins: fix indexed palette handling in lcms.c
gimp_image_get/set_colormap() returns/takes the number of bytes in the
colormap, not the number of colors.
2012-12-14 21:12:36 +01:00
Mukund Sivaraman baf856e79d file-tga: Simplify has_alpha expression
Also fix variable name that changed from gimp-2-8 to master. This and
the last commit were cherry-picked from the gimp-2-8 branch.
2012-12-05 09:07:57 +05:30
Mukund Sivaraman 6d09237ca1 file-tga: Handle 16-bit palettes with transparency (#687802)
Primarily, this fixes a buffer overflow in the colormap buffer.

* We promote such images to GIMP_RGBA_IMAGE now.
* The alpha handling for the colormap to RGBA conversion has been
  fixed.
* Inverted transparency in upsampling has been fixed.
2012-12-05 08:51:12 +05:30
Mukund Sivaraman 3477fc0bdd file-tiff-load: Fix loading of TIFFs containing old-style JPEG images (#688761)
This commit also moves the updated section of code, so that based on
worst_case, the image type and layer type are updated.
2012-12-04 13:54:42 +05:30
Michael Natterer 20477b6c08 plug-ins: port file-mng to GEGL 2012-11-29 01:30:34 +01:00
Michael Natterer 9c371064b7 plug-ins: fix the build in lcms.c 2012-11-28 09:25:34 +01:00
Michael Natterer 97e07e6476 Bug 662739 - Port to lcms2 for icc V4 profile support
Need to copy the alpha channel manually, lcms doesn't touch it.
Fixes converting layers with alpha.
2012-11-28 00:44:46 +01:00
Michael Natterer c77fc779db libgimp, plug-ins: use g_strfreev() to free PDB string arrays 2012-11-27 21:16:26 +01:00
Michael Natterer 67dda14e77 plug-ins: cleanup in the recently GEGL-ported plug-ins
Mostly formatting consistency paranoia.
2012-11-27 20:58:05 +01:00
Michael Natterer 9247c89852 plug-ins: port file-xpm to GEGL 2012-11-26 02:39:44 +01:00
Michael Natterer 0b48c55fc3 plug-ins: port file-pnm to GEGL 2012-11-26 01:32:12 +01:00
Michael Natterer d7ca2da6ce Bug 662739 - Port to lcms2 for icc V4 profile support
Fix undo in the lcms plugin.
2012-11-25 20:21:11 +01:00
Elle Stone e27b70aaed Bug 662739 - Port to lcms2 for icc V4 profile support
Patch from Elle, with bits from some others, that should finally
do the trick. Please everybody test this.
2012-11-25 20:12:42 +01:00
Michael Natterer 759142d82a plug-ins: port file-tga to GEGL 2012-11-22 00:04:28 +01:00
Michael Natterer 987d795ab9 plug-ins: port file-pdf-save to GEGL 2012-11-21 18:51:41 +01:00
Michael Natterer ee9467d259 plug-ins: more file-pdf-save cleanup, mostly formatting
Also, don't alpha-threshold indexed layers any longer.
2012-11-21 16:18:33 +01:00
Michael Natterer 55a9eb0d1a plug-ins: lots of cleanup in file-pdf-save before porting to GEGL 2012-11-21 15:04:15 +01:00
Michael Natterer 9dfe9111ef plug-ins: use g_thread_new(), g_thread_create() is deprecated 2012-11-21 01:47:11 +01:00
Michael Natterer a60914ec35 plug-ins: port file-dicom to GEGL 2012-11-21 01:14:08 +01:00
Michael Natterer 4c6c08e68d plug-ins: port file-pix to GEGL 2012-11-19 22:45:20 +01:00
Michael Natterer d48f0046fc plug-ins: port file-pcx to GEGL 2012-11-19 22:26:04 +01:00
Michael Natterer 699343c137 plug-ins: port file-html-table to GEGL 2012-11-19 19:34:33 +01:00
Michael Natterer 840fbe9d62 plug-ins: port file-cel to GEGL 2012-11-19 18:43:35 +01:00
Michael Natterer f20ae81626 plug-ins: clean up the new GIO code in file-gbr and file-pat 2012-11-19 09:08:32 +01:00
Michael Natterer 0dc55b1237 plug-ins: port file-gih to GIO and clean it up quite a bit
Also remove support for loading version 1 brushes, I have no clue why
this code was even there, because the plug-in never saved such
brushes.
2012-11-19 09:06:18 +01:00
Michael Natterer 7f6fde5c0f plug-ins: port file-gih to GEGL 2012-11-19 01:28:42 +01:00
Michael Natterer 756f276a96 plug-ins: port file-header to GEGL 2012-11-19 00:34:36 +01:00
Michael Natterer 88e4a462ba plug-ins: port file-csource to GEGL 2012-11-19 00:25:10 +01:00
Michael Natterer 8c72ad9bd7 plug-ins: port file-psp to GEGL 2012-11-19 00:10:17 +01:00
Michael Natterer 1c88116e31 plug-ins: port file-jp2-load to GEGL 2012-11-18 23:48:31 +01:00
Michael Natterer 5d5c73de98 plug-ins: port file-xbm to GEGL 2012-11-18 23:22:07 +01:00
Michael Natterer 8ee9e53163 plug-ins: some cleanup in file-pat and file-gbr 2012-11-18 23:20:36 +01:00
Michael Natterer 7a2c8c2491 plug-ins: port file-gbr to GIO 2012-11-18 22:56:29 +01:00
Michael Natterer bc22e902ad plug-ins: use the read_all()/write_all() API of the input/output streams
This avoids the manual looping added below.
2012-11-18 18:26:19 +01:00
Michael Natterer b208911b23 plug-ins: make file-pat work properly when GIO returns partial data
Loop around g_[input|output]_stream_[read|write](). This really needs
abstraction to avoid copying that in all file plug-ins.
2012-11-18 00:27:08 +01:00
Michael Natterer ffff1ff9ea plug-ins: port file-pat to handling URIs
which for me hilariously fails on sftp:// and only loads
partial data. Please test!
2012-11-17 21:35:28 +01:00
Michael Natterer 9de0ba8114 plug-ins: port file-pat to GIO
This can now serve as proper example for both GIO and GEGL porting of
a file plug-in.
2012-11-17 12:51:12 +01:00
Michael Natterer fe19ad9706 Bug 683694 - Spelling errors
Reworded all places that used to say "allows to".
2012-11-11 15:50:25 +01:00
Michael Natterer 0b35f6a082 Bug 687392 - Memory corruption vulnerability when reading XWD files
Applied and enhanced patch from andres which makes file-xwd detect
this kind of file corruption and abort loading with an error message.
2012-11-08 00:16:31 +01:00
Jehan 7978506eb4 plug-ins: change the icon when playing in animation-play.
Change the STOCK id from GTK_STOCK_MEDIA_PLAY to GTK_STOCK_MEDIA_PAUSE
when playing, and revert when pausing.
2012-11-02 23:53:41 +01:00
Michael Natterer a4ab1fe97c plug-ins: use !strcmp() not strcmp() to match strings, gah... 2012-11-02 13:53:40 +01:00
Michael Natterer 9615f233ba Bug 677733 - Export image: duplicate list item for TIFF export
Don't register a mime-type for the alternative file-tiff-save2
procedure, it's not supposed to be registered as file procedure, and
only usable from scripts anyway.
2012-11-01 19:21:24 +01:00
Michael Natterer f3f72b720c Bug 677733 - Export image: duplicate list item for TIFF export
Don't register a second file procedure for extension-less exporting as
XMC, this approach is totally bogus. Fixes the duplicate XMC entry in
File->Export.
2012-11-01 19:17:53 +01:00
Michael Natterer 569e42d79c plug-ins: refactor file-gegl so it can handle multiple file types
and add support for NEF (Nikon RAW format). Also cleanup everything a
bit.
2012-10-29 23:40:11 +01:00
Michael Natterer bc87bf5fe9 plug-ins: fix #ifdefs to fix build error and warnings in screenshot.c 2012-10-17 11:53:45 +02:00
Simone Karin Lehmann 85445c88c3 Bug 683617 - Can't take screenshots (Mac OS)
Use the standard Mac OS X screenshot utulity, it supports
everything: delay, capture decoration, capture region, even
the mouse pointer.
2012-10-14 17:07:42 +02:00
Richard Allen b88f1b04dd Bug 673315 - raw RGB565 bitmap loader is endian-specific
Split raw RGB565 into RGB565LE/RGB565BE/BGR565LE/BGR565BE

This change splits the raw file importing to handle the two different
endiannesses natively. This fixes a bug where the same image would
import different on different CPUs or even on different operating
systems on the same CPU. This also adds the ability to directly open
BRG565 files from the raw file import dialog.
2012-09-26 23:10:30 +02:00
Michael Natterer aa0a24164c plug-ins: port file-gif-save to GEGL 2012-09-22 23:19:32 +02:00
Michael Natterer 6452a95125 Remove plug-in crop-auto and add compat PDB wrappers to replace it 2012-09-22 20:59:17 +02:00
Michael Natterer 07107fe214 plug-ins: port animation-play to GEGL 2012-09-22 00:46:05 +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
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 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
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
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