Commit Graph

46143 Commits

Author SHA1 Message Date
Jehan 8dcf258ffc Issue #2275: rotate commands not actually applied to the image.
The rotation was actually applied but the image had an orientation
metadata stored which is not visible in GIMP canvas (only checked at
import).
If GIMP had on-canvas viewing support of the orientation metadata, then
it would make sense to keep it between import and export, but since it
doesn't, we should assume that when someone asks to "Keep Original"
during import, they are actually asking to drop the metadata (which
actually can be wrong in various cases, in particular when you snap
pictures of the ground or the sky, then sensors are lost anyway and
regularly can't guess what orientation you wanted). This will make for
less unexpected exports.
2020-09-19 18:55:54 +02:00
Yuri Chornoivan 678f400ee8 Update Ukrainian translation 2020-09-19 15:10:30 +00:00
Félix Piédallu 783f7cae55 Re-enable Twain plugin on Windows for Meson build 2020-09-19 12:07:14 +00:00
Jacob Boerema 9e3508cc23 plug-ins: silence some warnings in twain plug-in. 2020-09-18 17:51:55 -04:00
Jacob Boerema d0b1c143b6 plug-ins: fix #3854 by porting twain to the new plugin framework.
Removed the WinMain specific stuff for the plug-in and determine
hInstance in twainMain which made porting a lot easier.

The _DEBUG enabled functions I have mostly left alone and
should be revised at a later time.
2020-09-18 17:51:55 -04:00
Jehan b3bed72d84 plug-ins: default export bit depth for 16 or 32 bpc images should be 12.
The proposed defaults for export should be the less destructive
possible. So for any 16 or 32 bpc GIMP images, since our HEIF plug-in
only supports up to 12 bpc, this should be what we export to.
2020-09-18 15:32:55 +02:00
Jehan db71a8ffc7 libgimpwidgets: add a "value" property to GimpIntComboBox…
… and have gimp_prop_int_combo_box_new() bind to "value" instead of
"active".

The "active" property is defined by GtkComboBox and is the index of the
combo box, not its values, whereas with gimp_prop_int_combo_box_new(),
we want to bind an int property to the combobox value. Therefore the
commit 0828a371c2 was only properly working when we were creating a
combo box with values starting at 0 and incremented by 1.

By adding a "value" property to GimpIntComboBox, I allow binding any
property to the int value rather than the index.

See also !265 where the issue was raised as it affected our HEIF
plug-in.
2020-09-18 15:26:32 +02:00
Jordi Mas e426cdafc4 Update Catalan translation 2020-09-18 11:28:18 +02:00
Jordi Mas 771b78089f Update Catalan translation 2020-09-18 11:17:02 +02:00
Daniel Novomesky 76db57e738 Metadata (Exif, XMP) export in HEIF plug-in
Exif metadata export is built only with GExiv2 0.12.2+ because gexiv2_metadata_get_exif_data is used.
2020-09-17 13:48:03 +02:00
Jehan 6ef0a5f294 libgimpwidgets: minor alignment and indentation fixes.
Fixing coding style from previous commit.
2020-09-15 20:34:42 +02:00
Niels De Graef 0828a371c2 propwidgets: Use g_bind_property()
Make some property widgets implementations easier by just using
`g_bind_property()`, which does all the property change handling for us.
2020-09-15 16:34:24 +00:00
Piotr Drąg 436a9d2b5d Update Polish translation 2020-09-14 18:03:20 +02:00
santouits 6e00a19fd0 Don't compile gimpmarshal source file many times
Also, removes gimpmarshal.h from a source file that didn't need it.
2020-09-13 18:13:29 +03:00
Jehan 883b6a7c8e libgimp: update def files.
Argh I always forget to update these! Thanks for the CI, which is useful
for such details… :-)
2020-09-13 14:53:01 +02:00
Piotr Drąg b90c91555d Update Polish translation 2020-09-13 14:06:45 +02:00
Piotr Drąg 09475b539a Update POTFILES.in 2020-09-13 13:59:44 +02:00
Jehan 1b4834126f libgimp: better organization of gimp_image_metadata_*() API.
gimpimagemetadata.[ch] was built into libgimpui because GTK+ was used
for dialog query for rotation metadata. gimpimagemetadata-save.c only
was built into libgimp, which made no sense as the declaration for its
public function was inside gimpimagemetadata.h!
That was a weird situation and somehow only made visible in the build
system because GIR build was complaining about missing annotations to
gimp_image_metadata_save_prepare() (the annotation was actually present
but in the implementation which was not in the same library as the
header, how weird!):

> Warning: GimpUi: gimp_image_metadata_save_prepare: return value: Missing (transfer) annotation

Moreover it means that only plug-ins linking libgimpui had access to the
gimp_image_metadata*() API, which is obviously not cool (that should be
a core API).

Instead I moved everything into libgimp and replaced
gimp_image_metadata_load_finish() with
gimp_image_metadata_load_finish_batch(), which is essentially the same
function except that it's not interactive (it will proceed to rotate the
image without user confirmation, provided the right flag is present).
Then I add gimpimagemetadata-interactive.[ch] which contains only
gimp_image_metadata_load_finish() and is the alternative interactive
version of gimp_image_metadata_load_finish_batch(). Most plug-ins won't
even have to be changed (at least none in core GIMP) and would still
work as before, whereas now a non-interactive version exists, which
doesn't mandate to link GTK+.
2020-09-13 13:36:51 +02:00
Ell 25aefa972e libgimp: link libgimpui against GEGL
Needed since commit 4c8ee413eb.
2020-09-13 10:25:30 +03:00
Yuri Chornoivan 91bf3f2e55 Update Ukrainian translation 2020-09-13 06:00:05 +00:00
Daniel Novomesky 7f95abc4ef Make strings translateable in HEIF/AVIF export dialog 2020-09-12 22:28:03 +02:00
Yuri Chornoivan 73aecaeb19 Update Ukrainian translation 2020-09-12 14:48:48 +00:00
Jehan 5de6b2c1ea autotools, meson: bump GEGL dependency to 0.4.27.
Current dev code of GEGL is necessary as it fixes its VAPI dependency
(see gegl!83). Without this, with a recent meson version, Vala plug-in
build fails.

See !334 for some more background.
2020-09-12 15:54:13 +02:00
Jacob Boerema bf66a07d20 plug-ins: add support for indexed images in psp reader. 2020-09-11 23:44:57 -04:00
Jacob Boerema 2054f9f163 plug-ins: add support for grayscale images in psp reader. 2020-09-11 23:44:57 -04:00
Jacob Boerema 7863d668e0 plug-ins: add support for 16 bit integer images in psp reader. 2020-09-11 23:44:57 -04:00
Jacob Boerema 84f06e976a plug-ins: show descriptive layer type name for psp layers we can't convert. 2020-09-11 23:44:57 -04:00
Jacob Boerema d7abb774a9 plug-ins: add defines for psp reader to include new things up to psp file version 8.
This also fixes the incorrect existing define for a mask layer.
2020-09-11 23:44:56 -04:00
Jacob Boerema 0a8f5b99f5 plug-ins: replace a few occurrences of g_message with g_set_error in psp reader. 2020-09-11 23:44:56 -04:00
Yacine Bouklif fcaf582de9 Add Kabyle translation 2020-09-11 16:13:41 +00:00
Yacine Bouklif 3dc47c05e6 Add Kabyle translation 2020-09-10 22:17:41 +00:00
Jehan 68a7431a10 Issue #5623: https://gimp.org/gimp_versions.json is redirected…
… to www.gimp.org.
2020-09-08 21:13:27 +02:00
Daniel Novomesky 0fce1b042b Fix compilation with old libheif 1.3.2
High bit depth import and export enabled only for >= libheif 1.8.0
2020-09-08 10:25:16 +00:00
Jordi Mas 88f31208ce Update Catalan translation 2020-09-07 21:51:38 +02:00
Daniel Mustieles 167b8d3780 Updated Spanish translation 2020-09-07 09:37:48 +02:00
Andika Triwidada 4375b44a6f Update Indonesian translation 2020-09-06 09:26:32 +00:00
Stephan Woidowski a81846d1b6 Update German translation
(cherry picked from commit 95fcd80466)
2020-09-05 14:35:09 +00:00
Piotr Drąg f8de798329 Update Polish translation 2020-09-05 12:38:14 +02:00
Marco Ciampa 762c319346 Typo fixed. 2020-09-03 11:45:55 +02:00
Jehan 987325f1a7 INSTALL: update with libheif required dependency for AVIF support. 2020-09-01 18:38:46 +02:00
Elad Shahar 7d1e108b90 plug-ins: spyrogimp - fix type of new layer to include alpha channel 2020-09-01 11:44:11 +02:00
Jacob Boerema 19b261f3c6 plug-ins: add most likely blend modes for certain psp blend modes.
This adds a blend mode for all known psp blend modes that were not
converted yet except for adjust.
I couldn't find any information about adjust and it's value of
255 suggests that it is not a normal blend mode.
2020-08-31 12:28:12 +00:00
Jacob Boerema b968a93ab2 plug-ins: fix reading of psp tubes when psp file version >= 4. 2020-08-31 11:10:15 +00:00
Jehan 97dc1bf9c6 plug-ins: fix wrong return type warning.
save_image() returns a boolean not a pointer.
2020-08-31 12:52:23 +02:00
Elad Shahar 17b701a940 Issue #5043: Spyrogimp 'Live' Preview Pollutes Undo History
Reduce number of undo steps created by Spryrogimp previews.
First, by grouping them into a single undo.
The implementation adds a function for clearing the
incremental preview drawing that is being executed as an idle task,
and closing an undo group in case the preview left it open (which
would usually be the case). A second way to reduce undos is
by generating a new preview only upon mouse button release of
scales in the UI, and not while dragging the scale.
2020-08-31 12:43:52 +02:00
Michael Schumacher 3801c79372 gitlab-ci: update dependencies to add libraw20 2020-08-31 00:21:31 +02:00
Yacine Bouklif 97ace5e9a6 Add Kabyle translation 2020-08-29 16:39:24 +00:00
Boyuan Yang d7b96c4b76 Update Chinese (China) translation 2020-08-29 14:42:19 +00:00
Boyuan Yang 4076785c63 Update Chinese (China) translation 2020-08-29 14:39:58 +00:00
Piotr Drąg 7063fd2cc9 Update Polish translation 2020-08-29 12:20:19 +02:00