Commit Graph

7149 Commits

Author SHA1 Message Date
Mukund Sivaraman 3623399b79 file-tiff-save: Fix for different buffer formats 2013-05-14 13:46:45 +05:30
Mukund Sivaraman 4955900a5c file-ps: Explicitly specify image precision during load
It works even without this patch, but it's better to specify the
precision when we know it.
2013-05-14 13:39:06 +05:30
Mukund Sivaraman 0ae7894f87 file-jpeg: Fix load/save for different precisions 2013-05-14 13:35:47 +05:30
Mukund Sivaraman df10419a16 file-tiff-save: GEGL convert TIFF saving code 2013-05-13 18:22:32 +05:30
Mukund Sivaraman 688d5d8b79 file-tiff-save: Wrap long lines
Also mark strings for translation.
2013-05-13 18:22:16 +05:30
Mukund Sivaraman a52e1fec51 file-ps: Remove an extra space 2013-05-13 18:19:23 +05:30
Mukund Sivaraman 75f1da04de file-ps: GEGL convert loading code
Also do some cleanups. We may also be able to support 16-bit
and other rendered output, but now's not the time.
2013-05-13 18:02:47 +05:30
Mukund Sivaraman a58abcee0d file-ps: Convert if statement to switch 2013-05-13 17:59:17 +05:30
Mukund Sivaraman a70f3c6146 file-xpm: Fix warning about uninitialized format string 2013-05-13 16:37:48 +05:30
Michael Natterer 7fbec0ea17 plug-ins: link file-jpeg against GEGL_LIBS 2013-05-13 09:11:09 +02:00
Mukund Sivaraman c4dcc517a4 file-jpeg: GEGL convert save functions 2013-05-13 12:25:32 +05:30
Mukund Sivaraman 3cb0b2f35e file-jpeg: unref GeglBuffer in case of a problem (contd.)
The duplicate code in load_image() and load_thumbnail_image() should be
merged at some point into a single function.
2013-05-13 11:50:03 +05:30
Mukund Sivaraman b6a2d45821 file-jpeg: unref GeglBuffer in case of a problem 2013-05-13 11:46:52 +05:30
Mukund Sivaraman 51680fb987 file-jpeg: GEGL convert load functions
drawable_global doesn't seem to be used anywhere. This commit removes
it.
2013-05-13 11:42:10 +05:30
Mukund Sivaraman 2592f57df4 file-png: Fix some compiler warnings 2013-05-10 11:37:14 +05:30
Mukund Sivaraman bf7508bcd7 file-png: Use proper enum types instead of ints 2013-05-10 11:36:50 +05:30
Michael Natterer e791765dbc plug-ins: remove EXR handling from file-gegl, we have our own plug-in now 2013-05-07 22:37:05 +02:00
Mukund Sivaraman 7946001235 file-exr: Fix loading of Fog.exr from openexr-images-1.7.0 2013-05-07 11:47:01 +05:30
Mukund Sivaraman 7a671d3157 file-exr: Fix a possible crash upon failure 2013-05-04 14:10:42 +05:30
Mukund Sivaraman 8d89efaff5 file-exr: Add initial implementation (loader)
This is a basic implementation of an OpenEXR loader. This
"infrastructure" is required for any further work. It consists of:

* The build system changes.

* A C wrapper around the OpenEXR library, which is necessary as it's not
  possible to intermix GIMP's code with C++ code.

* A basic image loader. Chroma is not supported currently, and some
  other weird files like multi-view files are unsupported. These can be
  added when necessary. There is no UI, but it should be straightforward
  to add new features like this on top of this work.
2013-05-04 13:02:54 +05:30
Alexia Death 6e332505ca plugin: Fix gih exporter to default first rank equal to number of cells 2013-04-28 22:21:45 +03:00
Jehan 2368763ddf plug-ins: add some default shortcuts for animation preview.
"space" for play/pause, "f" for next frame and "d" for previous frame.
2013-04-21 08:42:25 +09:00
Jehan 5c38715cce Bug 338380: zoom and scrolling feature on animation playback plugin. 2013-04-21 08:28:18 +09:00
Jehan 4c341ff67e plug-ins: animation playback settings are now saved all along the GIMP session. 2013-04-21 08:16:14 +09:00
Jehan 2bfae573ad plug-ins: give animation playback ability to take into account image updates.
This includes a much better code organization where initialization part can be reused
to free up memory and refresh the display on the fly.
This refresh feature has a UI button and a shortcut (ctrl-r) associated.
It implies any kind of change, additional or removed layers, new image size, etc.
2013-04-21 08:08:06 +09:00
Jehan efe4320074 Bug 688380 : drop-down in animation playback to select the default frame disposal. 2013-04-21 07:59:34 +09:00
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
Kevin Cozens 0703a5889c Applied changes from SVN version 98 of official version of TinyScheme
Updated the CHANGES file and bumped the version number for the 1.41 release.
2013-04-14 15:48:09 -04:00
Kevin Cozens c828ac3de2 Applied changes from SVN version 97 of official version of TinyScheme
Updated "hack.txt" with modified version of information from CMarinier.
2013-04-14 15:48:09 -04:00
Kevin Cozens 3a6ae1fe73 Applied changes from SVN version 96 of official version of TinyScheme
Eliminated some compiler warnings when compiled with pedantic.
2013-04-14 15:48:09 -04:00
Mukund Sivaraman 0e0ed6e1ef imagemap: Rebuild parsers (after .y update) 2013-04-11 20:55:48 +05:30
Mukund Sivaraman db95e20b0b imagemap: Don't use strcpy() in unescape_text() (#649172)
strcpy() doesn't like overlapping strings and this causes other failures
in this unescaping code.

Also cleanup the code to follow our coding style.
2013-04-11 14:11:07 +05:30
Martin Husemann bc8a6123c7 imagemap: Unescape simple xml encodings when reading csim format image maps (GB#649172) 2013-04-11 14:09:50 +05:30
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
Kevin Cozens c953368164 Only TinyScheme should translate strings in script files. Fixes bug #696790. 2013-04-07 12:58:21 -04:00
Kevin Cozens 1e85ae981a Applied changes from SVN version 95 of official version of TinyScheme
Added missing "const" in scheme_registerable structure.
2013-04-07 12:58:21 -04: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 Henning 8fdfd56904 file-fits: fix image compositing with high bit depths 2013-03-28 19:47:23 -04: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
Michael Natterer 7f31929bee Bug 694585 - Export directly to remote ftp completes but reports failed
Fix handling of save errors in file-uri in two ways:

- don't try to check if saving to a directly mounted file succeeded,
  the mount (e.g. via FUSE) might allow writing, but not stat()ing.
  Instead, rely on the return value of gimp_file_save().

- for non-mounted files, provide a separate error message for the case
  where the temporary file contains nothing, which is IMO useless
  paranoia, but the check was probably added for a reason, so keep
  it around.
2013-03-24 18:41:57 +01:00
Nils Philippsen 82c3ef5f41 pagecurl: clean up generated header file again 2013-03-22 14:06:44 +01:00
Nils Philippsen 968b3ffb43 pagecurl: fix build order for generated headers
don't distribute these headers either
2013-03-22 13:49:57 +01:00
Michael Natterer 39eadbe64d plug-ins: port ifs-compose to GEGL 2013-03-15 23:52:38 +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
Michael Henning 40c2b8fc52 file-fits: Add support for saving high bitdepth files. 2013-03-02 11:45:00 -05: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
Michael Henning 8d1c28d59e file-fits: add support for high bit depths 2013-02-17 18:35:41 -05:00
Téo Mazars b4b85cf853 Bug 683153 - Lighting effects - bump mapping: top two rows of pixels are...
Init and interpolate the topmost row to avoid the use of a zero array.
2013-02-16 21:39:47 +01:00
Michael Natterer 086793d040 Make it harder to "save" to foo.png.gz or "export" to foo.xcf.gz
Remove plain .gz .bz2 .xz from the extensions the file-compressor
plug-in registers, and make sure is only ends up in "save_procs", so
at least "exporting" to foo.xcf.gz is not possible any longer. With
some effort, one can still "save" to foo.png.gz tho, but it's much
harder now.
2013-02-15 00:01:27 +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
Michael Natterer 5d07d8052c file-fits: more cleanup 2013-01-20 00:51:48 +01:00
Michael Natterer 9cff6a663c file-fits: change data types to CamelCase and constants to CAPS 2013-01-20 00:34:32 +01:00
Michael Natterer 95d7edf72b Bug 675069 - "Value" in po-plug-ins/ja.po is conflicted
Add a translation context to "Value" in the metadata plug-in.
2013-01-19 22:48:31 +01:00
Michael Natterer 2eae4c42e8 metadata: indentation in interface.c 2013-01-19 22:46:14 +01: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
Ludovic Rousseau 5379a2377e Bug 675510 - tw_func.h contains windows-specific types
Put the stuff in #ifdef G_OS_WIN32
2013-01-19 18:39:15 +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
Mukund Sivaraman 5d1c8726a3 imagemap: Don't use fixed size buffer to print statusbar messages (#691386) 2013-01-16 17:23:52 +05:30
Michael Henning 0f6044ef2b plug-ins: fix memory leak in psd-save
Found using clang's scan-build.
2013-01-15 17:10:33 -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 69fd08dbf8 plug-ins: remove some more totally unused cruft from imagemap
with the nice side effect that it now compiles without further
changes on GTK+ 3.x
2013-01-14 01:25:01 +01:00
Michael Natterer 7fa0321afc Bug 691183 - GIMP uses deprecated GtkHandleBox widget
Simply get rid of the handle boxes now instead of waiting
for GTK+ 3.x, they were entirely pointless in this case anyway.
2013-01-14 01:08:57 +01:00
Michael Natterer d41f7f1300 plug-ins: more cleanup in fits-io 2013-01-13 23:14:13 +01: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 Natterer 24f2a24b99 plug-ins: completely reformat fits-io.* 2013-01-12 00:46:09 +01:00
Michael Natterer 1f22d11256 plug-ins: port file-fits to GEGL 2013-01-11 00:49:31 +01:00
Michael Natterer cfbf83161b plug-ins: untabify file-fits 2013-01-10 23:17:57 +01:00
Michael Natterer c758bdc9e5 plug-ins: clean up formatting in file-fits 2013-01-10 23:10:16 +01: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 Henning 57740d107d plug-ins: fix memory leak in flame/rect.c
Found using clang's scan-build.
2013-01-08 16:14:37 -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
Kevin Cozens cc20c8d7f6 Fixed several typos. Minor whitespace changes. 2012-12-14 17:43:10 -05:00
Kevin Cozens df30fd6e68 R5RS compatability fix for string->number and number->string (SF bug #3399335)
Optional radix parameter from SVN version 92 of official version of TinyScheme.
2012-12-14 17:43:10 -05:00
Kevin Cozens 82f2c0b1ce R5RS compatability fix for parser (SourceForge bug #2866196) 2012-12-14 17:43:09 -05: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
Ionutz Borcoman 24ff958580 Bug 583778 - change script-fu-server to return the output of executed...
Return the output of the command for the client to parse instead of
always a useless "Success".
2012-12-14 19:06:49 +01:00
Liam Quin a268b7e03f Bug 689712 - Change default units of rotate colors plugin (rcm) from...
Degrees makes much more sense as default unit than radians.
2012-12-06 00:39:10 +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 5f2afe333f plug-ins: port file-ico to GEGL 2012-11-30 01:38:23 +01:00
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 d9539bf244 plug-ins: port selection-to-path to GEGL 2012-11-21 00:45:07 +01:00
Michael Natterer 9932e05c9b plug-ins: remove file-xjt
It will never hold high bit depths using JPEG compression, and nobody
is going to port it to layer groups and whatever either.  Wolfgang
says it's obsolete, whoever needs to convert old files can use 2.8.
2012-11-21 00:12:36 +01:00
Michael Natterer c54169c9b5 plug-ins: port file-fli to GEGL 2012-11-20 23:37:09 +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 83de53ee4d Bug 677776 - filter popup windows get hidden behind main image window
Apply modified patch from Simone Karin Lehmann which makes sure
script-fu gets properly hidden after the dialog is done.
2012-11-13 00:47:34 +01:00
Michael Natterer 908f727f0a Chain up unconditionally in GObject::constructed()
It's supported since GLib 2.28.
2012-11-12 21:51:22 +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
Michael Natterer 579a1a259a Bug 687552 - Improve palette sorting functionality
Apply patch from David Gowers that adds more options to the sort
palette plug-in.
2012-11-07 22:51:22 +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
Massimo Valentini ef5cd8d80a Bug 686379: In the JPEG save dialog, checking/unchecking XMP...
saving, don't update JPEG size
2012-10-22 18:26:05 +02:00
Michael Natterer 890ae48330 Bug 686602 - missing EXIF_CFLAGS when building plug-ins/file-psd
Apply patch from John Hein which adds EXIF_CFLAGS to INCLUDES.
2012-10-22 14:59:51 +02: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
Michael Natterer e8eaeb606f Bug 686103 - Incorrect gimpfu documentation
Add missing "None" default values to PF_IMAGE and PF_DRAWABLE
parameters in the procedure registration example.
2012-10-14 21:31:07 +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
Mukund Sivaraman 610aac1dac file-bmp: Don't use alpha channel with BI_RGB compression type
Don't use alpha channel with BI_RGB compression type in
BITMAPINFOHEADER images (bug #573090, bug #674398).
2012-10-08 09:12:25 +05:30
Mukund Sivaraman a19bbee5cb file-bmp: Reject compression type BI_ALPHABITFIELDS as unsupported
These were erroneously parsed before. Now we reject them.  It is
trivial to implement support for them, but we can't test it unless
someone comes up with a sample BMP file.  They don't seem to be
available in the wild.
2012-10-08 09:09:04 +05:30
Mukund Sivaraman 9818c4706a file-bmp: Change order of bytes (and the masks correspondingly) to please Firefox 2012-10-08 08:03:57 +05:30
Michael Natterer 8e5beb6d83 Bug 575830 - script-fu-refresh crashes Script-Fu when called from a script
Did the most stupid fix of simply not calling the procedure if it is
"script-fu-refresh-scripts". This is really not a use case that
warrants complicating lots of code.
2012-10-07 17:04:54 +02:00
Michael Natterer fe5366c455 Bug 565268 - unlocalizable string in script-fu-carve-it
Simplify blurb and mark it for translation.
2012-10-07 16:40:40 +02:00
Michael Natterer a2c8759fbf Bug 684923 - Fix script-fu build on OpenBSD/NetBSD
Apply patch from Brad Smith which defines AI_ADDRCONFIG
if it doesn't exist.
2012-10-02 22:11:27 +02:00
Michael Natterer 2a30a2bb74 Bug 684698 - Preferences-Folders: only 15 folder items accepted
Raise "max_paths" from 16 to 256 in all calls to gimp_path_parse().
2012-09-26 23:29:51 +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 784a98d170 plug-ins: port file-sgi to GEGL 2012-09-22 20:14:58 +02:00
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
Mukund Sivaraman 49d7b05fed file-compressor: Bug #676916 - Use g_open() and g_fopen() instead of libc 2012-05-28 20:42:59 +05:30
Simon Budig 2ebdd5f550 remove obvious code duplication 2012-05-19 15:32:05 +02:00
Simon Budig abf4693a3d further untested loading code... 2012-05-19 02:52:47 +02:00
Simon Budig b2e579ad21 stab at the tiff plugin. Die! die! die! 2012-05-19 02:52:45 +02:00
Massimo Valentini cac0504f29 Bug 675981: Export as JPEG "save defaults" "load defaults" doesn't work
oversight
2012-05-18 17:20:52 +02:00
Øyvind Kolås 9b7860cbfc plug-ins: remove normalize plugin from menus
This is the same as auto-levels
2012-05-14 19:13:10 +02:00
Alexandre Prokoudine eb48617a38 Replaced old Difference of Gaussians, Laplace and Sobel filters with new GEGL operations 2012-05-13 06:41:19 +04:00
Alexandre Prokoudine ac85c84a0f Replaced old Ripple and Lens Distortion filters with new GEGL operations 2012-05-13 06:15:24 +04:00
Alexandre Prokoudine 20ae491b21 Replaced the old Unsharp Mask filter with the new GEGL operation 2012-05-13 05:38:24 +04:00
Øyvind Kolås 7cfb9b2012 plugins: remove diffraction pattern from menus 2012-05-08 21:07:25 +02:00
Øyvind Kolås 7e6b27609e plugins: remove smooth-palette from menus 2012-05-08 21:07:25 +02:00
Michael Natterer 54bb3c4473 plug-ins: port screenshot cursor drawing to GEGL 2012-05-08 01:44:13 +02:00
Øyvind Kolås 6c3372cefb plugins: remove mail plug-in from menus 2012-05-07 12:21:13 +02:00
Øyvind Kolås 37127d79cb plugins: hide gimpressionist from menus 2012-05-07 09:37:26 +02:00
Øyvind Kolås 54db741e1b plugins: remove sphere designer from menus 2012-05-07 09:36:51 +02:00
Michael Natterer 4b24194907 Bug 588936 - a visual feedback should be produced after screenshot is done
Beep after a screenshot with delay was taken.
2012-05-07 02:18:32 +02:00
Øyvind Kolås d96cab20d7 plugins: remove warp plug-in from menus 2012-05-06 21:44:43 +02:00
Øyvind Kolås 1be09c737e plugins: remove paper tile from menus 2012-05-06 21:42:39 +02:00
Øyvind Kolås c938e4c85c plugins: remove laplace/sobel from menu
The generic edge detect plug-in convers both _and_ is more configurable.
For GEGL it _might_ make sense to internally have laplace/sobel, though
it is not important to have it visible in a end user/photographer menu.
2012-05-06 21:33:48 +02:00
Øyvind Kolås 96ab6aa88e scripts: remove the entries registered in the create menu 2012-05-06 21:16:40 +02:00
Øyvind Kolås 77f76728f5 plugins: remove filter-pack from menus 2012-05-06 21:16:40 +02:00
Øyvind Kolås 8f640e8084 plugins: remove max-rgb from menus 2012-05-06 21:06:12 +02:00
Øyvind Kolås 5dbbb02bfb plugins: remove colorcube-analysis from menus 2012-05-06 20:47:40 +02:00
Michael Natterer f1a771439a Replace the semi-flatten plug-in by a GEGL operation 2012-05-04 23:56:10 +02:00
Michael Natterer f24445efbc Replace the threshold-slpha plug-in by a GEGL operation 2012-05-04 17:59:36 +02:00
Michael Natterer 0c4c095a57 plug-ins: hide colorify from the menus, we have the colorize tool 2012-05-03 15:02:34 +02:00
Michael Muré 9966bcfd13 remove now useless and deprecated g_thread_init
Warning

g_thread_init has been deprecated since version 2.32 and should not be used in newly-written code. This function is no longer necessary. The GLib threading system is automatically initialized at the start of your program.
2012-05-03 20:44:07 +09:00
Øyvind Kolås 1fe7b39dda plugins: remove map-object from menus 2012-05-03 04:34:08 +02:00
Øyvind Kolås b165893c2b plugins: hide tile-small from menus 2012-05-03 04:34:08 +02:00
Øyvind Kolås 5a851c3c9b plugins: hide blinds operation 2012-05-03 04:34:07 +02:00
Øyvind Kolås b3776e2591 plugins: hide blur plug-in from menus 2012-05-03 04:34:07 +02:00
Øyvind Kolås 1d6a3b337f plugins: hide sharpen from menus 2012-05-03 04:34:07 +02:00
Michael Natterer 3ad73b3658 libgimpcolor: add GdkPixbuf <-> GeglBuffer utility functions
and update tons of includes in libgimp and app.
2012-05-03 03:37:20 +02:00
Simon Budig a13765e2a7 remove obsolete workaround for gegl 2012-05-03 01:16:21 +02:00
Michael Natterer 7d6ff4dccb pygimp: use g_get_user_special_dir() in pygimp_user_directory() 2012-05-03 00:47:00 +02:00
Simon Budig 97d4307891 file-gegl: implement saving 2012-05-02 17:51:22 +02:00
Simon Budig 28f70039ab file-gegl: a simple gegl based file loading plugin 2012-05-02 17:51:22 +02:00
Simon Budig ab1bf6fcee clean up png plugin some more. 2012-05-02 17:51:22 +02:00
Simon Budig 87abc72832 file-png: use gegl iterators for some of the code 2012-05-02 17:51:21 +02:00
Simon Budig 7f45819202 ==== remove obsolete warning ==== 2012-05-02 17:51:21 +02:00
Simon Budig 641848ea0b Fix the palette handling in gimp_drawable_get_format() 2012-05-02 17:51:21 +02:00