Commit Graph

3775 Commits

Author SHA1 Message Date
Jehan ad339d3bad plug-ins: tab cleaning. 2016-11-23 00:39:53 +01:00
Thomas Manni 8b25891ddd plug-ins: port smooth-palette to gegl 2016-11-22 19:56:44 +01:00
Jehan 9ab041d36a plug-ins: small typo fix - s/framese/frames/ 2016-11-08 01:39:42 +01:00
Pascal Massimino 21d8c00d16 plug-ins: make file_gif_spin_button_int_init() generic.
Use the `value_pointer` parameter instead of modifying the globale
`gsvals.default_delay`. This doesn't change anything in current code
where file_gif_spin_button_int_init() is only used for connecting this
variable to the delay spin button, but could have been a problem if it
were reused in the future.
2016-11-06 18:04:32 +01:00
Elle Stone ccb30a625c Bug 765850 - Deal with libpng error gracefully when exporting...
...an image with the color profile "sRGB IEC61966-2.1"

Eliminate libpng warnings about known incorrect sRGB profiles.

These "known incorrect sRGB profiles" are only considered "incorrect"
by libpng. Such profiles are perfectly good sRGB profiles currently
being embedded by PhotoShop 5 and 6 and also already embedded in many,
many images on the web.
2016-10-31 09:41:28 +01:00
Michael Natterer f5ecc53f3e Fix a lot of warnings all over the place
Deprecated stuff, unused variables. Includes parts of a patch from
Shlomi Fish from bug #768855.
2016-10-31 01:36:35 +01:00
Michael Natterer 43e218859b Bug 773382 - --without-librsvg broken by tools/Makefile.am
Fixed by making librsvg a hard dependency.
2016-10-30 19:44:28 +01:00
Michael Natterer 4df9a1d568 Get rid of gtk_misc_set_alignment(label) and use gtk_label_set_x,yalign() 2016-09-08 19:11:20 +02:00
Kristian Rietveld b462418dfc plug-ins: common: fix scripts to generate Makefile.am correctly
This complements the preceding commit "plug-ins: fix the build on OS X".
2016-09-07 22:10:19 +02:00
Michael Natterer 4033415a79 app, libgimpwidgets, plug-ins: kill gtk_scrolled_window_add_with_viewport()
It's deprecated in GTK+ 3.x, so we get rid of some deprecation
warnings. Also, it has always only been a utility function that hides
what is really going on in the widget hierarchy.
2016-09-07 20:12:28 +02:00
Kristian Rietveld 51d26b06db plug-ins: fix the build on OS X
We need to have -xobjective-c specified only for compile commands
that will perform compilation. Otherwise, for compile commands
that only link the compiler interprets .o files as C source ...
2016-09-07 10:32:15 +02:00
Michael Natterer 308efbb514 Bug 767830 - Help browser does not launch on OS X
Try harder to show help when webkit is missing or the help browser
won't start:

- offer to switch to the web browser when the help browser is
  present, but won't start for some reason
- in prefs, don't bother showing the help browser GUI when webkit
  is missing, otherwise show a warning label if the help browser
  is not installed even though webkit is there. Switch to the web
  browser in both cases (modified patch from lisanet)
- add OS X replacement for gtk_show_uri() in plug-in-web-browser
  (modified patch from lisanet)
2016-09-06 20:51:47 +02:00
Michael Natterer ee49c0b700 plug-ins: latest perl or whatever seems to need "require './plugin-defs.pl';"
instead of just "require 'plugin-defs.pl';".
2016-09-05 19:35:35 +02:00
Michael Natterer e404e6ba93 Bug 770853 - Opening and overwriting a linear gamma png produces wrong colors
Add support for writing linear PNGs. But only if we also save a color
profile, otherwise we would get loaders confused. Please test, I might
have a knot in my brain...

Also clean up some formatting and fix compile warnings, now let's wait
for bugs about shit libpng versions which break the build.
2016-09-05 01:04:09 +02:00
Mihail Zenkov 3ab1389b9b Bug 770600 - Fix broken export to PBM
Use the drawable's (indexed bitmap) format instead of "Y' u8" when
exporting to PBM, this got broken when porting to GEGL.
2016-09-04 17:20:52 +02:00
Michael Natterer a9c436ea0b plug-ins: disable the WebP loader/saver in file-gegl
so the new dedicated WebP plug-in is used.
2016-08-10 21:49:23 +02:00
Michael Natterer 45922c71c7 plug-ins: fix some formatting in border-average.c 2016-08-03 23:42:37 +02:00
Jehan 99a22418b9 Bug 769340 - GIF export dialog: false memory.
"As animation" is checked while being insensitive on a single-layer
image when previously exporting a GIF animation in the same session.
2016-07-31 06:26:48 +02:00
Akkana Peck df6034884a Fix variable used uninitialized warnings.
Set upper bound to the size of the image, though the size_entry
seems to ignore upper and lower bounds anyway.
2016-07-30 21:17:16 -06:00
Björn Kautler 1ca556972e Bug 728633 - Improvements to the file-raw plugin.
Allow non-interactive and last-vals call of raw image data export.
2016-06-13 23:31:36 +02:00
Björn Kautler 827f72bba5 Bug 728633 - Improvements to the file-raw plugin.
Save and restore last selected values and provide settable default selections for the raw image data export dialog.
2016-06-13 23:07:50 +02:00
Björn Kautler 2395e99a1b Bug 728633 - Improvements to the file-raw plugin.
Use GtkBuilder for raw image data export dialog.
2016-06-13 23:06:31 +02:00
klausstaedtler 628e9feb19 icons: Bug 759904 revert patch file-pdf-save.c 2016-06-10 13:50:45 +02:00
klausstaedtler 8b1ea3cc13 icons: Bug 759904
add
gimp-cancel
gimp-save

patch
gimpstatusbar.c
fil-pdf-save.c
gimpicons.c
gimpicons.h
2016-06-10 13:50:45 +02:00
Michael Natterer 372a985d2b plug-ins: link file-compressor against GIO
mkgen.pl: add support for "gio => 1" in plug-in-desf.pl,

Regenerate Makefile.am
2016-06-05 22:10:56 +02:00
Massimo Valentini ffd97c0eb8 Bug 766886: the save bar keeps saving even whit a full bar
get_file_info is copied from plug-ins/common/file-raw-data.c
2016-06-05 18:52:47 +02:00
Jehan 0a8c322ef8 plug-ins: if --with-sendmail is set with a value, use it. (2)
I should always test my patches thoroughly! Commit 912fcec was not
working as planned. This is!
2016-06-02 18:17:09 +02:00
Jehan 8a37c928eb app, plug-ins, libgimp*: clean out all remaining trailing spaces/tabs.
Rather than just discovering them by chance, a simple grep and some
search and replace are much more efficient! :-)
Cleaning only done on C and automake files.
2016-06-02 02:04:26 +02:00
Jehan 912fcec37f plug-ins: if --with-sendmail is set with a value, use it.
Assume sendmail has to be installed in the path which was (optionally)
given at build time. If no path is given at build, simply search in the
$PATH.
2016-06-02 01:14:15 +02:00
Jehan 0d8d5a0cfe plug-ins: sendmail is also a runtime dependency.
Such as `xdg-email`, if --with-sendmail is set, sendmail presence should
actually be checked at runtime and not be a blocker during build.
2016-05-28 00:52:38 +02:00
Jehan c0aff6b0f0 plug-ins: enter in the filename field activates email sending. 2016-05-27 22:09:18 +02:00
Jehan 22905e7174 plug-ins: fix sendmail alternative.
Oups! I should have retested --with-sendmail before pushing, after the
changes in commit 05f7726.
2016-05-27 22:09:18 +02:00
Jehan cef26867c5 plug-ins: redirect stdout to /dev/null when checking xdg-email presence. 2016-05-27 21:45:19 +02:00
Jehan 59f1b18a93 plug-ins: do not show all fields in dialog for xdg-email.
xdg-email would usually open an email client where you can edit all
fields, like recipients, mail title, etc. Setting it first in GIMP
is redundant.
Of course, these fields can still be set in non-interactive mode (in
which case, maybe xdg-email could be set to some non-interactive email
client as well).
2016-05-27 21:45:05 +02:00
Jehan 05f7726eab plug-ins: xdg-email is a runtime dependency. 2016-05-27 21:44:52 +02:00
Jehan 8c4d03ada8 plug-ins: email plugin brought back from the dead.
By default, it will now use xdg-email to select the user's preferred
email client, which means it only works on platforms with xdg-email.
The sendmail implementation is still available if requested explicitly
with --with-sendmail.
2016-05-27 21:44:45 +02:00
Adrian Likins bf9b33ece2 Bug 749044 - Exporting as KISS - CELL (*.cel) results in error 2016-05-26 03:51:38 +02:00
Michael Natterer 79cdbadc95 plug-ins: replace some gimp_spin_button_new() by plain GTK+ calls 2016-05-18 09:49:22 +02:00
João S. O. Bueno 207e904d7a Bug 765685: Disambiguates octal-escaped output in c-source image output
Fixes the plug-in output to render decimal digit
characters as octal escaped, so they can't be acidentally
combined in preceding escaped sequences. (i.e. the sequence
of values '255, 49'  is now rendered as '\377\049' instead of
 '\3771')

Thanks Steve Baker for noticing and reporting the issue.
2016-04-27 23:46:19 -03:00
Michael Natterer c4551cf1d2 plug-ins: fix error from manual patch applying (height instead of width) 2016-04-20 01:34:09 +01:00
Tobias Ellinghaus 74a249cabe
plug-ins: Don't leak the gegl buffer in pnm loader 2016-04-19 01:20:28 +01:00
Tobias Ellinghaus fc0f42def4 plug-ins: add new plug-in file-darktable
Which loads raw files by having them developed in darktable.
Also disable NEF support in file-gegl.
2016-04-19 00:21:15 +01:00
Andrew Worsley 455a91819b plug-ins: add back some menu entries for plugins
So we see what we have. Need some other way of dealing with this stuff...
2016-04-18 21:06:16 +01:00
Andrew Worsley cfa9132c4d Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Remove calls to gimp_drawable_mask_bounds() from most plug-ins.
This just leaves a python gimp interface plug-in.
2016-04-18 21:02:32 +01:00
Andrew Worsley d7efab3daf fix missing semicolon in emboss 2016-04-18 12:45:08 +01:00
Andrew Worsley 4f99c7294a Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Remove gimp_drawable_mask_bounds() from several plug-ins

Also avoid null pointer crash by returning if called with null
drawable which appears to happen once on the initial update. Instead
prints a message for some one who might want to fix it

Change gimp_drawable_mask_intersect() to check return value

We still get some GIMP Error and Warnings but no crashes now
2016-04-17 21:42:49 +01:00
Michael Natterer ba8dd17396 plug-ins: port file-gif-save to GIO 2016-04-14 18:49:30 +01:00
Michael Natterer b85d03eaab plug-ins: cleanup in file-gif-save
From the book of stashes, chapter 42.
2016-04-14 16:54:08 +01:00
Elle Stone 96d8397114 Bug 763996 - Where appropriate, change "gamma correction" to "gamma adjustment"
Gamma correction refers to correcting how an image is displayed on
various devices. Gamma adjustment is a more general phrase that also
applies to adjusting gamma as a step in image enhancement in a
color-managed workflow.
2016-03-28 14:57:24 +02:00
Michael Natterer 47ef3be145 Initialize GValues with G_VALUE_INIT instead of { 0, } 2016-03-26 15:59:26 +01:00
Michael Natterer 1c9e5d62fc Bug 763766 - Suggest changing "Postscript" to "PostScript"
We were already using "PostScript" almost everywhere, fix the
remaining strings too.
2016-03-19 22:45:16 +01:00
Thomas Manni 3f5881875a Bug 758915 - port Tile to gegl 2016-02-16 18:56:09 +01:00
Jehan ec27b539ea plug-ins: various s/save/export/ replacement on visible strings. 2016-02-16 02:35:43 +01:00
Michael Natterer 26ff8eb40d Bug 761573 - Problem with Raw Image Loader plugin
Use g_file_query_info() to get the file's size, stat() has some
windows 64 bit problem I've forgotten.
2016-02-12 00:36:11 +01:00
Michael Natterer 48046d258a configure.ac, plug-ins: make libtiff a hard dependency
so file-tiff-load and file-tiff-save are always built. Also move them
to their own folder plug-ins/file-tiff/ because they will soon share
some common GIO code.
2015-12-02 12:33:31 +01:00
Michael Natterer 16a0421894 plug-ins, pdb: remove the blur-gauss-selective plug-in, add a PDB compat proc 2015-11-29 22:01:53 +01:00
Michael Natterer a69b68de40 plug-ins: formatting cleanup in compose/decompose 2015-11-24 23:56:54 +01:00
Elle Stone f78dec232a Bug 755270 - Decompose/Compose LAB: scaling code produces odd L, a, and b values
Decompose/compose to/from LCH: remove unconditional CLAMP (only clamp
if the component really needs clamping), change LAB AB range.
2015-11-24 12:45:32 +01:00
Michael Natterer bc980cd73a Bug 757783 - When opening linear gamma pngs or tiffs...
...many operations give wrong results

Same fix for TIFF: get the color profile first, then create a linear
image if the profile says so.
2015-11-23 22:29:06 +01:00
Michael Natterer 3cc80b0a5c Bug 757783 - When opening linear gamma pngs or tiffs...
...many operations give wrong results

Fix PNG loading to get the embedded profile first, and create a
linear RGB image if the profile says so.
2015-11-23 18:44:17 +01:00
Michael Natterer 4446954e27 Bug 757773 - Filters->Edge Detect->Neon... crashes
As in e3b24af3d0, don't use a
GimpDrawablePreview's GimpDrawable if it was not created using the
deprecated GimpDrawabl-based API. Spotted by Massimo.
2015-11-08 14:15:44 +01:00
Michael Natterer e1c4314a8e Bug 757687 - Screenshot functionality broken under Wayland
Move the screenshot plug-in to its own directory, it's about to be
split up into multiple files.
2015-11-07 15:52:44 +01:00
Michael Natterer feb0790cc4 plug-ins: file-xmc: use GeglRectangle instead of GimpParamRegion 2015-10-31 19:10:51 +01:00
Michael Natterer eb5094b9f7 plug-ins: decompose: move "run_mode" to a local scope
and some tiny cleanups.
2015-10-25 23:47:43 +01:00
Michael Natterer 0cfd6d2d01 Bug 756701 - Decomposing to HSL produces HSV layers
Fix the name of the decomposed lightness layer to "lightness", it used
to be "value" due to a copy/paste error. Spotted by Massimo.
2015-10-22 20:16:25 +02:00
Michael Natterer f5f88b8134 plug-ins: fix some compiler warnings in file-xmc
and some minor formatting cleanup.
2015-10-22 19:29:35 +02:00
Michael Natterer 7e62875d48 plug-ins: port file-xwd-save to GIO
and properly format all prototypes in the file.
2015-10-18 14:26:25 +02:00
Michael Natterer 195d5c760b plug-ins: pedantic function reordering in file-header.c 2015-10-17 23:28:45 +02:00
Michael Natterer 940349c564 plug-ins: add the legacy difference of gaussians back to the menus
until we have sorted out the differences to the new GEGL op.
2015-10-14 23:10:03 +02:00
Andrew Worsley cc9c7aa3b3 plug-ins: fix 2 bugs in fractal-trace
- crashes when computing % 0 when selection height < 100
- used y2 instead of x2 when computing width
- crash when selection in lower left corner
2015-10-10 21:43:03 +02:00
Andrew Worsley 24d844c9f1 Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Remove gimp_drawable_mask_bounds() from color-cube-analyze.c, also add
menu entry to access it.
2015-10-10 17:16:48 +02:00
Louis Benazet e7715dca35 Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Mask intersect fix for photocopy plug-in.
2015-10-10 17:13:10 +02:00
Andrew Worsley a3f2b1ab68 Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Remove gimp_drawable_mask_bounds() from border-average.c
2015-10-10 17:07:31 +02:00
Jonathan Tait 3c717ac483 Bug 756030 - file-pdf-save-multi PDB API is mis-specified
file-pdf-save-multi did not honor the PDB array passing standard.
2015-10-08 18:39:20 +02:00
Michael Natterer e3b24af3d0 plug-ins: fix crash in blur-gauss-selective.c
Must not call the deprecated gimp_drawable_preview_get_drawable() on a
preview that was not also created using the deprecated
gimp_drawable_preview_new(). Instead, pass the GimpDrawable to
preview_update() using the signal's user_data.
2015-10-08 12:15:06 +02:00
Michael Natterer 7f2d5ebbc5 plug-ins: use the new drawable_ID-based GimpAspectPreview API 2015-09-17 00:28:09 +02:00
Michael Natterer e18aae18c2 plug-ins: use the new drawable_ID-based GimpDrawablePreview API 2015-09-15 00:50:16 +02:00
Michael Natterer 9a8878ed6e plug-ins: use the new drawable_ID-based GimpZoomPreview API 2015-09-14 22:16:21 +02:00
Michael Natterer d7b2d1c372 plug-ins: fix file-tiff-load's load_rgb() which I broke two commits earlier 2015-09-13 20:20:35 +02:00
Michael Natterer 9a1f94e9b2 plug-ins: don't add alpha to all but the loaded tiff's background layer
That's not needed any longer.
2015-09-13 20:14:22 +02:00
Michael Natterer 701aff3c8a plug-ins: lots of cleanup in file-tiff-load
Move variables to local scopes, saner variable names, comment
formatting, indentation, whatnot...
2015-09-13 20:12:02 +02:00
Michael Natterer 1243e1f93b Bug 743034 - file-tiff-load crashes if I try to open a BigTIFF file
Use a Babl format that actually exists for extra channels. Makes the
plug-in load black pages from the mentioned "Rome" BigTIFF, so this
only fixes the plug-in crash but doesn't fix loading of BigTIFF
images, whatever they are...
2015-09-13 16:21:35 +02:00
Michael Natterer b430a2d0f6 Bug 750867 - loading of CCiTT4 tiff images broken
Revive and partly reimplement the code that loads indexed and b/w
images. Seems to work on the fax attached to the bug, and on a random
indexed RGB image.
2015-09-13 00:12:42 +02:00
Jehan 0593eaa7c3 plug-ins: GEGL buffers leaked when canceling gif export.
Delete the duplicated sanitized image when canceling in the gif options
dialog.
2015-09-04 18:26:35 +02:00
Jehan 6b33491ce4 plug-ins: returned value of gimp_image_get_layers() must be freed. 2015-09-04 18:24:21 +02:00
Jehan 765975dfd6 plug-ins: gif export should not carry on when sanity_check() fails.
This specific crash was only occuring when GIMP_INTERACTIVE_EXPORT=1
and canceling the first dialog. So that should not happen too often,
but well, now it's fixed…
2015-09-03 15:33:22 +02:00
Hartmut Kuhse 938f421e85 Bug 729952 - Re-opened TIFF re-exported/overwritten saved with two pages...
...one green

Don't write the TIFF thumbnail using metadata functions, instead write
it as a TIFF sub-image.
2015-08-30 20:07:27 +02:00
Michael Natterer e83d5e7090 plug-ins, pdb: remove the lcms plug-in and add PDB compat procedures 2015-08-27 22:06:25 +02:00
Michael Natterer 77dac3ea60 Bug 555562 - GIMP should ask before applying working space profile
Get rid of the "configurable RGB working space profile".

Instead, turn GimpColorConfig's "rgb-profile" property into a
"Preferred RGB profile" thing that is only a hint and never used
without explicit user interaction. Present it next to the built-in
profile in the profile combo boxes and call it "Preferred" in the
prefs dialog and its tooltip.

Most importantly, don't use it as the image's profile when the image
is not tagged with a profile. Untagged images are now always in the
sRGB or linear RGB built-in color spaces.

This commit reduces the "Apply color profile" dialog on file import to
a simple "Convert to built-in RGB", but that dialog is about to be
moved to the core and improved anyway.
2015-08-20 16:02:22 +02:00
Michael Natterer 1d37c67879 plug-ins: use the GimpColorProfile API instead of the "icc-profile" parasite 2015-08-20 11:15:26 +02:00
Michael Natterer fa5d28aad3 plug-ins, pdb: remove "set" and "set-rgb" from the lcms plug-in
and add PDB compat procedures.
2015-08-05 01:03:33 +02:00
Michael Natterer 4034157774 plug-ins: remove the "set" and "apply" dialogs from the lcms plug-in
The "apply working space profile" dialog is still there.
2015-08-04 22:45:02 +02:00
Michael Natterer 5672e80ea1 libgimpwidgets: port GimpColorProfileStore and -ComboBox to GFile
and deprecate the old filename-based API. Port everything to use the
new GFile functions.
2015-08-01 16:20:14 +02:00
João S. O. Bueno 7829177e3c plug-ins: Apply the context-background color on exporting to pdf
PDF files have no transparency, still, transparent areas of
exported images would always display white, regardless of the
current background color.
(The misbehavior was found while checking BUG #752819,
 but that is a cairo issue and is not fixed by this)
2015-07-25 03:26:56 -03:00
Michael Natterer 0693298d63 libgimpcolor, *: change all GimpColorConfig getters to return const gchar*
instead of a gchar* which has to be freed. Cache all the strings in
the GimpColorConfig instance.
2015-07-12 14:10:18 +02:00
Michael Natterer c102dde92b libgimpcolor, *: change GimpColorProfile to be a GObject
it used to be a typedef to gpointer and actually was a cmsHPROFILE.

Change its API to be more "standard", remove the public close()
function. The object caches both the cmsHPROFILE and the data/length
ICC blob, so conversions between the two become obsolete (simply call
get_lcms_profile() or get_icc_profile()).

Adapt everything to the new API, but port it in a naive way for now,
the code doesn't take advantage of the new possibilities yet (like
refcounting).
2015-07-10 22:53:59 +02:00
Massimo Valentini f72f8f20e5 Bug 751089: Part PNG files are not opened properly 2015-06-30 19:42:07 +02:00
Thomas Manni 82223783a3 plug-ins, pdb: remove the bump-map plug-in and add 2 PDB compat procs 2015-06-30 12:02:48 +02:00
Thomas Manni 3436ae4674 plug-ins, pdb: remove the displace plug-in and add 2 PDB compat procs 2015-06-30 10:02:28 +02:00
Michael Natterer ba1318dda9 app, menus, plug-ins: add new Submenu Image -> Color Management
and move the color profile menu entries there. Add a mapping so 3rd
party plug-ins get moved to the new location automatically.

Also, add a separator after "Duplicate" and move the "Transform"
submenu to the top of the group that has "Scale", "Resize" etc.
2015-06-15 13:20:04 +02:00
Thomas Manni 769bc933d4 plug-ins, pdb: remove the wind plug-in and add a PDB compat proc 2015-06-11 11:31:36 +02:00
Michael Natterer f279fd02da plug-ins: use gimp_image_convert_color_profile() in lcms.c 2015-06-10 02:05:14 +02:00
Michael Natterer d1102d2be9 pdb, plug-ins: remove two procedures from lcms.c and add PDB compat procs
The lcms plug-in is on its way out: add compat procedures implementing
plug-in-icc-profile-info and plug-in-icc-profile-file-info and remove
that code from lcms.c.
2015-06-07 12:52:37 +02:00
Michael Natterer 0d01cfd56b plug-ins: use gimp_image_get_effective_color_profile() in the lcms plug-in 2015-06-07 01:58:10 +02:00
Michael Natterer 87cfbd8d21 plug-ins: use gimp_image_set_color_profile() in the lcms plug-in 2015-06-06 17:05:00 +02:00
Michael Natterer 5efab4c99b plug-ins: use gimp_image_get_color_profile() in the lcms plug-in 2015-06-05 13:21:56 +02:00
Michael Natterer 3565b33019 libgimpconfig: rename the new GimpColorConfig profile accessor functions
gimp_color_config_get_foo_profile() -> get_foo_color_profile()

because the old names clash with possible future accessors for the raw
filename properties.
2015-06-03 09:57:34 +02:00
Michael Natterer 4910c28957 libgimpcolor: rename the gimp_lcms_*() functions to gimp_color_profile_*()
because it doesn't make sense to call the typedef GimpColorProfile
but the function namespace gimp_lcms_*().
2015-06-03 09:41:23 +02:00
Michael Natterer 08b19a9bbc plug-ins: minor simplifications because GimpColorConfig has an API now 2015-05-26 08:09:29 +02:00
Øyvind Kolås 7e6320497e follow gegl api changes from commit af5361ca8d, with an abyss policy argument
to gegl_buffer_copy.
2015-05-25 01:27:31 +02:00
Michael Natterer f939818c4d plug-ins: use gimp_lcms_get_format() in the lcms plug-in 2015-05-08 12:53:43 +02:00
Michael Natterer 6c800db1cc Use the newly added profile utility functions all over the place 2015-05-06 16:38:57 +02:00
Michael Natterer b52c0657ae plug-ins: use the image's name for the metadata dialog's title
not its URI's basename. The name is the same string that is shown in
the image window title.
2015-05-02 16:31:36 -04:00
Michael Natterer e6703aa6b8 plug-ins, pdb: remove the papertile plug-in and add a PDB compat proc 2015-04-30 17:18:01 -04:00
Michael Natterer bc4cf9918f Bug 673501 - Issue with Overlay
GIMP's OVERLAY mode was identical to SOFTLIGHT. This commit fixes the
issue and introduces a NEW_OVERLAY mode and enum value.

- change gimp:overlay-mode to be a real (svg-ish) overlay mode
- when compositing, map OVERLAY to gimp:softlight-mode
- when compisiting, map NEW_OVERLAY to gimp:overlay-mode
- bump the XCF version when NEW_OVERLAY is used
- map OVERLAY to SOFTLIGHT when loading and saving XCF
- map OVERLAY to softlight in all PDB setters
- map OVERLAY to softlight when deserializing a GimpContext
- change all paint mode menus to show an entry for NEW_OVERLAY
  instead of OVERLAY
- change PSP, PSD and OpenRaster to use NEW_OVERLAY

These changes should (redundantly) make sure that no OVERLAY enum
value is used in the core any longer because it gets mapped to
SOFTLIGHT at all entry points, with the downside of introducing a
setter/getter asymmetry when OVERLAY was set in a PDB api.
2015-04-29 13:32:58 -04:00
David Gowers 97bbd6330d Bug 747389 - Adjust maximum zoom for animation-play plugin up slightly
Change maximum zoom from 300% to 400%, improves usability for sprite
or tile animations.
2015-04-27 23:28:59 -04:00
Michael Natterer e1baaa0677 Bug 742821 - Grayscale-mode image malformed when exported as planar raw image data
Fix saving of planar data by taking the actual number of components of
the drawable into account, instead of always assuming 3 (RGB).
2015-03-04 22:32:07 +01:00
Michael Natterer 573f0f69bb plug-ins, pdb: remove the edge plug-in and add a PDB compat procedure 2015-03-03 23:18:53 +01:00
Elle Stone 783bbab8a8 plug-ins: fix lcms.c plug-in half conversion 2015-02-27 19:14:11 +01:00
Michael Natterer a0398e5028 configure.ac, plug-ins: require lcms >= 2.6 and remove #ifdef from lcms.c 2015-02-21 00:33:37 +01:00
Mukund Sivaraman a51ead0aa5 file-gegl: Fix typo 2015-02-18 13:46:22 +05:30
Mukund Sivaraman 09f64866c2 file-gegl: Add OpenEXR saving through file-gegl 2015-02-18 13:40:34 +05:30
Michael Natterer 6a079b980b plug-ins: format prototypes in file-gif-save 2015-02-15 22:52:37 +01:00
Michael Natterer b856a8ba76 plug-ins, pdb: remove the value-propagate plug-in and add PDB compat procedures 2015-02-08 23:09:06 +01:00
Michael Natterer c2371a2de9 app: implement Dilate and Erode as wrappers around gegl:value-propagate
Add them to the "drawable" actions. Remove menu registration for
the value-propagate plug-in's dilate and erode procedures.
2015-02-08 19:56:45 +01:00
Massimo Valentini a215fbda56 Bug 681895: PDF export does not save fonts properly
Set the resolution of the PangoFontMap from which the
PangoContext is created, set cairo font options only
on the PangoContext, explicitely set wrap mode and
do not force a layout height.
2015-01-28 19:31:32 +01:00
Mukund Sivaraman 9ef4d6c061 file-compressor: Fix xz's mime magic 2015-01-22 20:50:06 +05:30
Michael Natterer 9be37aaa91 plug-ins, pdb: remove the diffraction plug-in and add a PDB compat procedure 2015-01-21 22:51:49 +01:00
Mukund Sivaraman 932401e051 file-pnm: Don't write comments into PFM files 2015-01-21 15:24:22 +05:30
Mukund Sivaraman 2b4152037d file-tiff-load: Fix rowstride for edge tiles (#743034 comment #3)
The following images demonstrate the issue:

tiger-75-gray-jpg.tiff
tiger-75-rgb-jpg.tiff
2015-01-21 09:36:36 +05:30
Mukund Sivaraman 51e4491fbf file-pnm: Add support for saving PFM (portable floatmap) files in color and gray 2015-01-20 21:44:06 +05:30
Mukund Sivaraman b6095b6fa5 file-pnm: Fix direction of progressbar during load ;) 2015-01-20 21:07:59 +05:30
Mukund Sivaraman 19f4843c66 file-pnm: Bump rate of progress update when saving 2015-01-20 21:03:24 +05:30
Mukund Sivaraman c05853885a file-pnm: Pass format to gegl_buffer_get() to fix saving from other formats 2015-01-20 21:00:08 +05:30
Mukund Sivaraman 013e943b6c file-pnm: Wrap to 80 columns 2015-01-18 06:55:56 +05:30
Tobias Ellinghaus 1c283737e5 plug-ins: add PFM reading support to file-pnm
Thanks muks for cleaning this up
2015-01-16 15:37:24 +01:00
Michael Natterer b87d97ae68 plug-ins, pdb: remove the lens-flare plug-in and add a PDB compat procedure 2015-01-08 23:39:03 +01:00
Mukund Sivaraman ddda6a15c3 file-tga: Use the colormap origin / first entry index field 2014-12-20 23:24:20 +05:30
Michael Natterer 4d5e42ac1a plug-ins, pdb: remove the engrave plug-in and add a PDB compat procedure 2014-12-15 23:54:35 +01:00
Michael Natterer ed15ea8775 plug-ins: common/Makefile.am is generated, changed plugin-defs.pl 2014-12-11 11:40:36 +01:00
Thomas Manni f8073e6946 plug-ins: port crop-zealous to GEGL 2014-12-11 10:10:35 +01:00
Massimo Valentini 068745dc5c Bug 741179: Export does not remember compression of input...
for Deflated TIFF

similar to commit 91738c3b9
2014-12-09 18:13:35 +01:00
Michael Natterer 7313cb559e plug-ins, pdb: remove the illusion plug-in and add a PDB compat procedure 2014-12-04 20:42:15 +01:00
Michael Natterer 212b44cf2f plug-ins, pdb: remove the Solid Noise plug-in and add a PDB compat procedure 2014-11-22 21:04:31 +01:00
Michael Natterer b49e8098d4 plug-ins, pdb: remove the sinus plug-in and add a PDB compat procedure 2014-11-21 22:11:15 +01:00
Michael Natterer b94ba871ac plug-ins, pdb: remove the nova plug-in and add a PDB compat procedure 2014-11-18 21:05:32 +01:00
Michael Natterer e78540e581 plug-ins, pdb: remove the video plug-in and add a PDB compat procedure 2014-11-16 22:08:51 +01:00
Michael Natterer effeefb84a plug-ins, pdb: remove the color-exchange plug-in
and add a PDB compat procedure.
2014-11-10 22:40:58 +01:00
Michael Natterer efd8fee58c plug-ins: remove the IWarp plug-in 2014-11-08 00:53:17 +01:00
Michael Natterer 84182125cf Bug 739488 - Set default brush, brush pipe, pattern name to the file's basename
If there is no gimp-[brush|pattern|brush-pipe]-name parasite,
default to the file's basename without extension, instead of
always "GIMP Brush" etc.

Also clean up the code, and make the plug-ins do the same things the
same way.
2014-11-05 02:38:04 +01:00
Michael Natterer 51c35d4c78 Bug 739486 - Enter doesn't confirm "export image as brush"
Set the "activates-default" property on the spinbutton and entry in
the file-gbr-save dialog.
2014-11-01 15:00:08 +01:00
Michael Natterer fab87871a7 plug-ins: port file-cel-save to GIO 2014-10-27 23:08:41 +01:00
Michael Natterer 591b2d356b plug-ins: port file-ps' saving code to GIO 2014-10-26 19:02:49 +01:00
Michael Natterer e4171c5bff plug-ins, PDB: remove edge-sobel and add a PDB compat procedure 2014-10-11 19:41:49 +02:00
Michael Natterer fe8cb9788b Bug 738037 - Wrong order of parameters in the Sobel plugin
Get the parameters from the right PDB arguments (parameter index was
off-by-one).
2014-10-07 13:22:19 +02:00
Michael Natterer 2e79dfc8da plug-ins: port file-xbm-save to GIO 2014-10-05 18:06:03 +02:00
Michael Natterer aed2742bdb plug-ins: remove obsolete includes from file-html-table 2014-10-05 17:04:44 +02:00
Michael Natterer 86345dc0aa plug-ins: port file-html-table to GIO 2014-10-05 16:59:16 +02:00
Michael Natterer b831ab72c4 plug-ins: merge 4 entry callbacks into one in file-html-table
And some general cleanup.
2014-10-05 16:42:31 +02:00
Michael Natterer 849481a861 Clean up code around calls to g_file_replace()
- use G_FILE_CREATE_NONE instead of 0
- don't put "Could not open <file> for writing: <error>" around the
  returned error, the returned message is already verbose
2014-10-04 02:44:54 +02:00
Michael Natterer 98c184f0ad plug-ins: rename output_printf() to simply print() in file header 2014-10-04 02:30:37 +02:00
Michael Natterer b971b5b316 plug-ins: port file-header to GIO 2014-10-03 23:40:13 +02:00
Mukund Sivaraman be45ec02dc Revert "file-gif-save: Export images in non-interactive run mode (Bug #698450)"
This reverts commit 197280311a.
2014-09-26 16:39:49 +05:30
Mukund Sivaraman 197280311a file-gif-save: Export images in non-interactive run mode (Bug #698450) 2014-09-26 13:36:32 +05:30
Mukund Sivaraman 2821d77e0c file-gif-load: Fix proto (Bug #737375) 2014-09-26 09:01:47 +05:30
Mukund Sivaraman 68cb57d97e file-gif-load: Try to use as much as possible of broken GIF file (Bug #737375) 2014-09-26 08:49:59 +05:30
Mukund Sivaraman 7d3aafe323 file-pdf-save: Fix param index (Bug #736281) 2014-09-26 00:20:01 +05:30
Mukund Sivaraman 2377c8c2a9 file-gif-load: Fail early in several other places if GetDataBlocks() fails (Bug #737375) 2014-09-25 23:51:35 +05:30
Mukund Sivaraman 55150487ff file-gif-load: Fail early if GetCode() fails (Bug #737375) 2014-09-25 22:48:42 +05:30
Michael Natterer b19a18f80e plug-ins: code cleanup in file-tiff-load.c 2014-09-13 21:59:30 +02:00
Roman Lebedev 1533cf6f0f Bug 736555 - file-tiff-load: support loading of 32-bit (float and int) data
Implement loading of 32-bit (float and int) data
2014-09-13 21:38:25 +02:00
Michael Natterer 250223453f plug-ins: some code cleanup in file-tiff-save.c 2014-09-13 21:24:04 +02:00
Roman Lebedev f717fe17ec Bug 736561 - file-tiff-save: support saving of 32-bit (float and int) data
Implement saving of 32-bit (float and int) data.
2014-09-13 21:09:51 +02:00
Michael Natterer aa0912fcd6 Bug 735904 - Zealous crop of an image with a selection duplicates image data
Clear the selection before calling gimp_drawable_merge_shadow(), because
the selection affects the merge, which is unwanted here.
2014-09-10 00:09:28 +02:00
Michael Natterer 14978bfe5d Simplify calls to g_output_stream_write_all()
It returns TRUE only if all bytes were written, so there is no need to
get and check the bytes_written return value.
2014-09-07 20:30:14 +02:00
Simon Budig 7928be2255 fix a few potential use-before-check errors
Spotted by Andrey Karpov using static code analysis:
   http://www.viva64.com/en/b/0273/
2014-08-16 00:59:19 +02:00
Simon Budig 99abc566d4 fix some precedence errors
Spotted by Andrey Karpov using static code analysis:
   http://www.viva64.com/en/b/0273/
2014-08-16 00:37:13 +02:00
Simon Budig 9a245989c0 fix bogus checks against unsigned variables.
Spotted by Andrey Karpov using static code analysis:
   http://www.viva64.com/en/b/0273/
2014-08-16 00:37:13 +02:00
Michael Natterer 498ccd33ee plug-ins: move file-compressor to plug-ins/common/, it's only one .c file 2014-08-14 01:35:06 +02:00
Michael Natterer dae366bb6e configure.ac, *: require GLib 2.40.0
Remove gimp_output_stream_[v]printf() and use the new functions from
GLib instead. Use memmove() instead of the deprecated g_memmove().
2014-08-12 15:30:19 +02:00
Jehan 4ae597c586 plug-ins: use standard error on failed file descriptor in file-pdf-save.
The standard message used all over our code is:
"Could not open '%s' for writing: %s".
2014-07-29 16:59:49 +00:00
Jehan eaa4bf2270 Bug 733824 - PDF export fails without warning if open in other application.
This happens on the Windows platforms in particular where applications
can lock files, preventing GIMP to obtain a file descriptor for writing.
2014-07-29 15:41:34 +00:00
Michael Natterer f28878b6d3 plug-ins: start the progress before opening files for loading/saving
so the user gets feedback as early as possible.
2014-07-23 21:37:13 +02:00
Michael Natterer 1859633018 plug-ins: #include <gdk/gdk.h> instead of <gdkconfig.h> 2014-07-21 02:19:51 +02:00
Massimo Valentini 35466d6dd0 Bug 732163 - Flipped pixel columns in TGA
do not flip the central columns twice
2014-07-20 16:16:50 +02:00
Michael Natterer b7863269f0 libgimpcolor: change gimp_lcms_profile_open_from_file() from filename to GFile
and change most of the lcms plug-in to using GFile too.
2014-07-04 23:57:27 +02:00
Michael Natterer b5530e9e3d Use the new GeglAccessMode enum instead of the old values 2014-07-02 02:00:35 +02:00
Michael Natterer 6914bbc65f plug-ins: more gimp_spin_button_new() -> gtk_spin_button_new() 2014-06-22 23:01:31 +02:00
Massimo Valentini 3b746e9a68 plug-ins: tiff-load call gimp_ui_init when run interactively 2014-06-16 19:33:23 +02:00
Michael Natterer ac9101691c plug-ins: various small cleanups in the plug-ins that use metadata 2014-06-05 21:33:40 +02:00
Michael Natterer 3a4fedea7c libgimp: make gimp_image_metadata_save_prepare() suggest GimpMetadataSaveFlags
Return flags based on what metadata is actually present in the image.
Returning of a suggested value for GIMP_METADATA_SAVE_THUMBNAIL needs
support from gimp_image_metadata_load_prepare() and is still missing.

Port all plug-ins to use the new API, the suggested values are however
overridden by parasites and whatever special code was devised for the
individual plug-ins. This needs to be fixed.
2014-06-05 02:07:13 +02:00
Michael Natterer 425748dab0 libgimpbase, *: rename GimpFillType values: GIMP_FOO_FILL -> GIMP_FILL_FOO
Change all users accordingly and add compat enum values and compat
constants to script-fu and pygimp.
2014-06-03 01:11:32 +02:00
Michael Natterer f15b48b3c8 plug-ins, pdb: remove convolution-matrix and add a PDB compat procedure 2014-05-29 16:27:35 +02:00
Michael Natterer 3e6a7f4012 pdb, plug-ins: remove the rotate plug-in and add a PDB compat procedure 2014-05-24 22:46:11 +02:00
Michael Natterer 40030e084b plug-ins, pdb: remove the deinterlace plug-in and add a PDB compat proc 2014-05-20 21:30:42 +02:00
Michael Natterer 4712701415 app, plug-ins: move everything from Render->Clouds to the new Render->Noise
because that's what they are and what most menu labels in there says.
Keep the "Clouds" menu around for 3rd party plug-ins, not sure if it's
right to auto-map it to "Noise" automatically.
2014-05-18 22:46:05 +02:00
Michael Natterer 2ce79d3b13 plug-ins, pdb: remove the tile-glass plug-in and add a PDB compat procedure 2014-05-16 22:11:28 +02:00
Ed J b42cedd383 No tabs please, we're British. 2014-05-16 17:46:18 +01:00
Ed J a3be308aea file-gif-save2 takes 3 more params. 2014-05-16 17:37:06 +01:00
Michael Natterer 102a236265 plug-ins: some more stock-id -> icon-name porting 2014-05-12 00:37:42 +02:00