Commit Graph

46278 Commits

Author SHA1 Message Date
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
Yacine Bouklif fe6af57830 Update Kabyle translation 2020-08-28 20:17:53 +00:00
Jehan 8cb02716d6 icons: modify dialog-information to work around a librsvg bug.
So it turns out there are still a few bugs in librsvg position/size
computation. One of them is described in my comments:
https://gitlab.gnome.org/GNOME/librsvg/-/issues/250#note_900325

To work around them, I had to increase stroke width of a SVG <circle> to
be over 0.5px.
2020-08-28 20:25:41 +02:00
Jehan cb1f01a42b tools: update the build-only tool compute-svg-viewbox.
It now uses rsvg_handle_get_geometry_for_layer() instead of
rsvg_handle_get_(position|dimensions)_sub() which have been deprecated
in favor of the new function which returns accurate (double) positioning
and size.

Back when I first made this build tool, librsvg had several blocking
bugs to make icon extraction work properly. This seems to improve
nicely.

Nevertheless I still don't build this tool because after testing, more
bugs remain and icon extraction is still not right. Just updating the
code to undeprecate it but leave the build commented out for now. ;-(

See librsvg#134, librsvg#128 and librsvg#250 for bug reports following
these issues.
2020-08-28 20:25:40 +02:00
Jehan 05de70e002 icons: add all missing icons in the main SVG files.
In particular adding the new gimp-curve-point-smooth|corner,
gimp-pivot-*, gimp-text-dir-ttb-*, gimp-transform-3d-* and
gimp-tool-transform-3d icons.
2020-08-28 20:25:40 +02:00
Tim Sabsch 2f74f8931e Update German translation 2020-08-28 18:15:02 +00:00
Jehan a3a95ad47e icons: rename ID of some icons moved to Freedesktop naming.
See commit 1e5cf10585.
I am reorganizing again a bit the global file with all icons to
experiment a bit again with icon extraction using librsvg (let's see how
the library evolve since last time I tried, a few years ago!).
2020-08-27 18:39:43 +02:00
Yuri Chornoivan 792847d377 Update Ukrainian translation 2020-08-27 12:54:49 +00:00
Jacob Boerema fa40bc7778 plug-ins: add support for reading raster layers of newer psp versions. 2020-08-27 09:16:45 +00:00
Jacob Boerema 85241a205b plug-ins: enable reading of psp images with file versions > 6. 2020-08-27 09:16:45 +00:00
Jacob Boerema 0666f7a4f9 plug-ins: refactor reading of raster layer extension info for psp images. 2020-08-27 09:16:45 +00:00
Simon McVittie 00024db382 build: Prefer to find libwmf using pkg-config
Traditional -config scripts are awkward for cross-compilation, multilib
systems (lib/lib64), and multiarch systems like Debian; only one copy
of the -config script can be in the PATH. As a result, some OS
distributions are starting to deprecate or even remove them.

pkg-config is designed to be a replacement for traditional -config
scripts, and is cross-compilation-friendly: the PKG_CHECK_MODULES macro
looks for an architecture-specific executable like
x86_64-linux-gnu-pkg-config, which can look in an architecture-specific
search path for library metadata, before falling back to a generic
pkg-config executable.

As a bonus, pkg-config also compares version numbers correctly
(see #2454).

libwmf having pkg-config metadata seems to be a relatively new thing,
so I've kept the -config script code path too, using it if pkg-config
does not find libwmf.

Bug-Debian: https://bugs.debian.org/956183
Signed-off-by: Simon McVittie <smcv@debian.org>
2020-08-26 23:32:32 +00:00
Daniel Novomesky 01e1587ec1 Updated HEIF plug-in
AVIF import and export (need libheif >= 1.8.0)
High bit (10/12) import and export
Auto pre-select suggested output bit depth in save_dialog
NCLX color profile import (link with lcms)
Metadata import (link with gexiv2)
Plugin will not return GIMP_PDB_SUCCESS in case of failure to import file.
2020-08-26 10:39:58 +00:00
Jehan 47a68dc871 Issue #5584: JPEG magics detection failure.
Our currently registered JPEG magics was using possible fields at the
start of the file (JFIF, Exif) in 7th byte. A JPEG provided in #5584 was
starting with yet another field (apparently some Photoshop-specific
field "Photoshop 3.0.8BIM") thus magics detection failed (and since
extension was wrong, the file was sent to another plug-in, hence loading
failed).

Looking further, it looks like the 3 first bytes are actually always
common to all JPEG and are the right magics/signature for a JPEG. These
3 bytes don't seem to be used by other formats as well according to my
research, which means we should not have false positives either. So
let's switch to this magics 0XFFD8FF at byte 0.
2020-08-26 12:13:29 +02:00
Jacob Boerema d7089c93b2 plug-ins: Take zero length layer names into account in psp reader. 2020-08-23 18:34:22 -04:00
Kevin Cozens 56982e6ce9 Allow building GIMP of without vala.
To build GIMP without vala the arguments "--enable-vala=no --with-vala=no"
must be used during the configuration process. If the --with-vala is not
provided the build process will still try to build some vala based plug-ins.

Fixes https://gitlab.gnome.org/GNOME/gimp/-/issues/5389
2020-08-23 11:20:51 +02:00