Commit Graph

47577 Commits

Author SHA1 Message Date
Jehan 231ab4413b app: make Perspective Clone tool also work with multiple drawables. 2021-09-14 17:59:47 +02:00
Jehan 3a9462b219 app, pdb: properly save the list of source drawables.
By doing this, I also add the ability to use a composited projection of
the selected drawables as source. This is similar to "Sample merged"
except that instead of using the whole visible image, we use what would
have been visible if only the selected layers existed.

Note that this doesn't work together with the previously added ability
of multi-cloning from each layer to itself. This ability works for
cloning from multiple layers to one.
2021-09-14 17:59:47 +02:00
Jehan b4d189f8ef app: add ability to clone/heal from/on multiple layers.
When multiple layers are selected, the "sample merged" button won't
work. In such a context, each selected layer will pick from itself into
itself.
2021-09-14 17:59:47 +02:00
Jehan 8934d43975 app: make painting possibly multi-drawable aware.
- Make the various virtual methods of GimpPaintCore use a list of
  drawables as argument instead of a single drawable.
- gimp_brush_core_eval_transform_dynamics() can work with an image as
  argument rather than a drawable as it doesn't actually depends on
  specific drawable data.
- New function gimp_paint_tool_enable_multi_paint() to be used in init()
  method of paint tools to announce that this tool can work with
  multiple layers selected.
- Use gimp_paint_tool_enable_multi_paint() in the GimpSourceTool base
  class only for now.

This is a first step for multi-layer drawing, but we don't want it to be
possible in just any random cases, which is why I add a special function
to advertize this capability. We will use it for special-casing the
clone (as well as heal and perspective tools most likely) tool to work
on several layers at once. At this step, it is still very bugged and not
really working properly. In particular, since we don't process the
drawable offset early anymore (because it makes no sense when we pass a
list of drawables with different offsets), I suspect that all the
offset-related code will be very broken.
2021-09-14 17:59:47 +02:00
Jehan e0ac71bfcc desktop: update 2.10.28 release date in appdata.
(cherry picked from commit 31b44a4f5c)
2021-09-14 17:57:43 +02:00
Jehan 97bb359685 desktop: let's skip 2.10.26 and directly release 2.10.28.
A boring build bug was introduced in a recent commit, and it was
recently fixed. It's life! ;-)

(cherry picked from commit 830ca73b6e)
2021-09-14 17:56:17 +02:00
Michael Schumacher 37d76c8876 build: mention incomplete and outdated state of build/gimpbuilder-base/Dockerfile 2021-09-12 00:58:02 +02:00
Jiri Grönroos 78c1289d00 Update Finnish translation
(cherry picked from commit e158766813)
2021-09-11 10:26:27 +00:00
Balázs Úr 3d6d94fdae Update Hungarian translation 2021-09-10 20:17:14 +00:00
Jordi Mas d6ffbc137a Update Catalan translation 2021-09-10 07:15:05 +02:00
Jordi Mas 062f4478b6 Update Catalan translation 2021-09-09 21:41:56 +02:00
Marco Ciampa 00958fe191 Updated Italian translation 2021-09-08 21:00:36 +02:00
Marco Ciampa f656ef95a1 Updated Italian translation 2021-09-08 20:57:51 +02:00
Jehan ad83fd04ba build: improve Windows installer language test.
For the installer, we must also manually pull all used official
language, so I am adding a test checking that the list of pulled file
matches the list from the installer script.
2021-09-08 10:20:25 +02:00
Jehan e73f82dbfd build: fix installer.
We must also pull the Lithuanian base file for Inno Setup.
2021-09-08 09:57:24 +02:00
Piotr Drąg 40cd8665ac Update Polish translation 2021-09-07 16:25:09 +02:00
Enrico Nicoletto d0f8b572ee Update Brazilian Portuguese translation 2021-09-07 11:45:17 +00:00
Boyuan Yang 987a81538a Update Chinese (China) translation 2021-09-07 05:50:16 +00:00
Boyuan Yang 9c36ff210b Update Chinese (China) translation 2021-09-07 05:42:17 +00:00
Boyuan Yang 828923dc84 Update Chinese (China) translation 2021-09-05 21:30:00 +00:00
Aurimas Černius 117fbc7500 Update Lithuanian translation 2021-09-05 20:41:50 +00:00
Øyvind Kolås 127bf7abfb configure,meson,app: depend on GEGL-0.4.32 2021-09-05 20:34:59 +02:00
Jehan fb7a9954b4 gitlab-ci: do not make the flatpak job interruptible.
Commit-triggered pipelines on `master` branch are apparently canceling
flatpak pipelines even though the flatpak jobs are not even in the
triggered ones.
In any case, these flatpak pipelines are not triggered often (only
through weekly schedule or manually triggered) so there is no need to
have such a flag.

See: https://gitlab.com/gitlab-org/gitlab/-/issues/340147
2021-09-05 20:06:51 +02:00
Piotr Drąg 30f215fb10 Update Polish translation 2021-09-05 17:30:28 +02:00
Jehan 2bc1dd1f9c build: fix flatpak manifest.
The option -Dcheck-update has been changed to a combo.
See commit f0be2256d0.
2021-09-05 17:06:05 +02:00
Jehan 44f72c5d77 gitlab-ci: flatpak artifacts must always be uploaded.
artifacts:when is set to on_success by default. Yet we clearly need the
build logs in failure case too in order to debug.

See: https://docs.gitlab.com/ee/ci/yaml/#artifactswhen
2021-09-05 17:03:34 +02:00
Ngọc Quân Trần f4bbaf4321 Update Vietnamese translation 2021-09-05 08:23:50 +00:00
Ngọc Quân Trần 22acc45df8 Update Vietnamese translation 2021-09-05 08:02:47 +00:00
Jehan 4f8ced1c7c NEWS: update.
Some changes in "Build" section backported to gimp-2-10 branch.
2021-09-04 21:31:28 +02:00
Boyuan Yang cce8946a69 Update Chinese (China) translation 2021-09-04 17:44:58 +00:00
Boyuan Yang d0fb53a042 Update Chinese (China) translation 2021-09-04 17:42:04 +00:00
Jehan 3e1143595e build: fix typo s/en_GN/en_GB/ 2021-09-04 01:18:07 +02:00
Jehan 3b3f5c8562 build: add new Lithuanian translation to the Windows installer.
This new unit test (test-installer-langs.sh) is great, showing us
inconsistencies between files!
2021-09-04 00:54:42 +02:00
Anders Jonsson 6c0b8c5def Update Swedish translation 2021-09-03 21:39:57 +00:00
Aurimas Černius 833783b70e Add Lithuanian translation
(cherry picked from commit baa4ce3ecd)
2021-09-03 18:20:42 +00:00
Stanislav Grinkov 8516221662
app: Correctly place merged down layer...
when the image is in indexed color mode, and bottom layer doesn't
have an alpha channel.

Resolves: #4945
2021-09-02 13:04:13 +06:00
Matej Urbančič d6dffdc99f Update Slovenian translation 2021-09-01 16:22:34 +00:00
Ngọc Quân Trần d8cbd6146a Update Vietnamese translation 2021-09-01 06:43:30 +00:00
Philipp Kiemle 6b3ef41b95 Update German translation 2021-08-30 20:11:39 +00:00
Rodrigo Lledó 968df76f09 Update Spanish translation 2021-08-30 20:09:14 +00:00
Matej Urbančič 03f538e910 Update Slovenian translation 2021-08-30 18:39:47 +00:00
Jacob Boerema d61a682b8b plug-ins: fix #7195 Exporting multilayer TIFF with EXIF saves some layers twice
If you first open a multi page TIFF, exiv2 generates EXIF tags for the
first 3 pages in the form of Exif.Image.<tags>, Exif.Image2.<tags>,
Exif.Image3.<tags>. When exporting with EXIF saving enabled, exiv2 thinks
it needs to save TIFF pages for the EXIF metadata of the second and third
page too. Those pages saved by exiv2 contain only metadata no real image
data and give warnings when loading.

The EXIF tags read from page 2 and 3 are only the basic image specs. We
don't use those, nor do we add tags to it. Until we support handling of
metadata for those pages and exiv2 has better support for all TIFF pages
beyond the first few, I see no reason to save this information.

So for now lets just delete all tags that start with Exif.Image followed
by a number.
2021-08-29 17:12:12 -04:00
Yuri Chornoivan b1ace8d460 Update Ukrainian translation 2021-08-29 17:08:47 +00:00
Jehan f04e7442f4 desktop: add an appdata section for 2.10.26 release.
We can see we are really working towards stability and consolidation
now, with few new features, but a lot of bug fixes.
2021-08-29 18:57:37 +02:00
Jacob Boerema 42e61104d7 plug-ins: fix #3740 Impossible to delete multi page tiff with thumbnail
On Windows there is a long standing issue in its File Explorer. When
GIMP exported as a multi page (multi-layer) TIFF with thumbnail saving
enabled, then the Windows thumbnailer apparently gets stuck and does not
close the TIFF file when browsing a folder. Because those files are not
closed it is impossible to delete them. This issue has been reported
many times over the years to Microsoft without any reaction.

Investigation showed us that this lock up only happens when we save the
thumbnail as a subifd. To resolve this issue we change this and now let
exiv2 handle our thumbnail saving, just as for other image formats. For
TIFF this means the thumbnail is saved as the second page of a TIFF.

Previous commits have made sure that it is now easier to recognize a TIFF
page as a thumbnail and to make sure we don't load thumbnail TIFF pages.

Since saving as a subifd is what made TIFF thumbnail saving different
from other formats, this commit consists of only removal of code.
2021-08-27 15:36:49 -04:00
Jacob Boerema 2a38ec9e4b plug-ins: when loading TIFF images ignore thumbnail pages
TIFF image pages can specify what type of image that page represents.

If the page is marked as FILETYPE_REDUCEDIMAGE we will consider it to be
a thumbnail and filter that out of the list of pages that can be selected
to be loaded.

In addition to that we will try to recognize certain pages as thumbnail
that don't have the subfiletype tag set.
We will consider it a thumbnail if:
- It's the second page
- PhotometricInterpretation is YCbCr
- Compression is old style jpeg
- First page uses a different compression or PhotometricInterpretation
If these conditions are true the page will also be filtered out.

We could consider having an option whether to filter out thumbnail pages.
Since in the situation up until now we also don't load thumbnails, I think
this should be considered as a separate feature.
2021-08-27 15:36:49 -04:00
Jacob Boerema d577e516c5 libgimp: set subfiletype to FILETYPE_REDUCEDIMAGE when saving EXIF thumbnails.
Setting the type to reduced image for a thumbnail makes it easier when
loading TIFF images to recognize a page as a thumbnail.
2021-08-27 15:36:49 -04:00
Jehan 49e534247a app, libgimp*, pdb, plug-ins: use g_memdup2() instead of g_memdup()
Since it appeared with GLib 2.68.0, we could not change this until we
bumped the dependency which has only become possible a few days ago
(since Debian testing is our baseline for dependency bumps). Cf.
previous commit.

As this is a drop-in replacement (just a guint parameter changed to
gsize to avoid integer overflow), search-and-replace with:

> sed -i 's/g_memdup\>/g_memdup2/g' `grep -rIl 'g_memdup\>' *`

… followed by a few manual alignment tweaks when necessary.

This gets rid of the many deprecation warnings which we had lately when
building with a recent GLib version.
2021-08-26 17:32:09 +02:00
Jehan d707e4cb1a autotools, meson: bump GLib dependency to 2.68.0.
GLib 2.68.0 was released on 2021-03-18 and has finally been added to
Debian testing (now that the release freeze is over!). So dependency
bumps are slowly going to happen again on the development branch.
Actually Debian testing has even 2.68.4, but it's a bit too recent and
2.68.0 is enough to get rid of some of the deprecation issues.
2021-08-26 17:02:15 +02:00
Rodrigo Lledó 61a7da626f Update Spanish translation 2021-08-26 13:07:22 +00:00