Commit Graph

44773 Commits

Author SHA1 Message Date
3d102d0c9e themes: Add white border around dark theme GtkToggleButtons...
to improve accessibility by having visible feedback on mouse-hover.
Default prelight background was too dark for such task.

Resolves: #4128
2021-09-01 17:51:40 +06:00
5d8377303e Update Vietnamese translation 2021-09-01 06:54:28 +00:00
30fadd5377 Add Vietnamese translation 2021-09-01 06:49:43 +00:00
7d5dbf2391 Update German translation 2021-08-31 19:41:45 +00:00
a29befe2ed Update German translation 2021-08-30 21:03:40 +00:00
6a26201022 Update German translation 2021-08-30 20:07:40 +00:00
fdfa71507e Update Spanish translation 2021-08-30 20:07:13 +00:00
c1d50722f9 Update Slovenian translation 2021-08-30 18:44:27 +00:00
efaf0e1ba8 Update Slovenian translation 2021-08-30 18:42:13 +00:00
186b21c478 Update Catalan translation 2021-08-30 20:18:07 +02:00
0a06779fee add msys support
(cherry picked from commit 512fc24694)
2021-08-30 00:06:58 +02:00
a4846a0124 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 16:40:10 -04:00
843d998028 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.

(cherry picked from commit 42e61104d7)

# Conflicts:
#	plug-ins/file-tiff/file-tiff-save.c
2021-08-29 16:40:10 -04:00
c9fe64b135 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.

(cherry picked from commit 2a38ec9e4b)
2021-08-29 16:40:10 -04:00
183900ca97 libgimp: set subfiletype to FILETYPE_REDUCEDIMAGE when saving EXIF thumbnails. 2021-08-29 16:40:10 -04:00
f3764a59db Update Ukrainian translation 2021-08-29 17:11:24 +00:00
ec8de3941e 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.

(cherry picked from commit f04e7442f4)
2021-08-29 19:01:01 +02:00
53fca481d7 NEWS: update. 2021-08-29 18:46:28 +02:00
2d5c911733 Update Spanish translation 2021-08-26 13:06:29 +00:00
dd49817a2f configure: --enable-check-update now with an "auto" value.
By default, when on "auto", the update check feature will be set
depending on the OS. In particular, on Windows and macOS, it will be ON,
because these are the 2 OSes which we distribute without an update
channel, hence where people used to have very outdated versions of GIMP.

On Linux, *BSD, and so on, distribution provide updates through package
repositories.

(cherry picked from commit 0e46fadf43)
2021-08-26 12:06:18 +02:00
8ac06e201a themes: add hyperlink coloring to themes.
to fix 'bad' eye-straining link color in About dialog.

Resolves: #6730
2021-08-22 16:52:52 +02:00
c69cf5f573 Update Polish translation 2021-08-22 12:31:00 +02:00
0a663b2100 Update Slovenian translation 2021-08-17 20:03:26 +00:00
9a023e3817 app: fix leaked queue created at init() (as reported by Massimo).
(cherry picked from commit 70f2192bff)
2021-08-16 15:08:41 +02:00
e976481034 app: fix gimp_plug_in_cleanup_item_new().
This fixes a memory leak as reported by Massimo.
But even more, we fix the code logics, as the cleanup items were never
added to the `item_cleanups` list.

(cherry picked from commit ee09ae7245)
2021-08-16 15:08:41 +02:00
939f0caa19 Show message dialogs in preferences dialog
(cherry picked from commit ac0a084e6e)
2021-08-16 15:08:41 +02:00
82612aff49 Update Swedish translation 2021-08-16 12:28:30 +00:00
b4a712e198 Update Ukrainian translation 2021-08-16 10:25:20 +00:00
0fde875bd3 Update Spanish translation 2021-08-16 07:22:03 +00:00
114cfc95e8 Update Spanish translation 2021-08-16 07:17:44 +00:00
0fccc87cb6 app: improve error message loading pattern that is too large
As noted in issue #6032 the error message when trying to open a pattern
file with dimension larger than supported could be a little clearer.

We do this by adding the maximum allowed dimensions to the error message.

(cherry picked from commit 317b5d9cff)
2021-08-09 18:28:16 -04:00
d9e82494b4 app: disallow saving of patterns larger than max allowed dimensions
For GIMP patterns we have maximum allowed dimensions which we check when
loading a pattern. However, we did not check this when saving a pattern.
See issue #6032.

This commit adds a check when saving a pattern and adds a descriptive
error to make clear why saving fails.

(cherry picked from commit f130fe1917)
2021-08-09 18:27:59 -04:00
fb099cbf2a plug-ins: fix build failure on Windows due to incompatible mkdir call in script-fu
On Windows mkdir only accepts one parameter. Fix this by using g_mkdir
which takes care of platform specific details internally.
2021-08-09 18:11:30 -04:00
05403696cb libgimpbase: fix #1350 Failure to load metadata importing image with non-latin unicode path
On Windows loading metadata from images with non ASCII characters in their
path failed. Part of the fix is in gexiv2 that now converts the path from
utf-8 to utf-16 on Windows.

However we were still sending a localized path to gexiv2 where it was
expecting utf-8. This caused the conversion and thus loading of metadata
to fail. Fix is to remove the special handling for Windows and use the
utf-8 filename.

(cherry picked from commit 65950de735)
2021-08-09 12:25:44 -04:00
85e4521b93 plug-ins: fix #2655 Can't open EPS-files with german Umlauts
Due to differences between Windows and most other platforms Ghostscript
didn't correctly load files with special characters on Windows.

First we needed to make sure that the filenames we use are in utf-8
format and then tell gsapi that we use utf8 encoding.

(cherry picked from commit 4f86d8088d)

# Conflicts:
#	plug-ins/common/file-ps.c
2021-08-09 12:10:51 -04:00
762939162c Update Slovenian translation 2021-08-09 07:52:27 +00:00
11a43aebdf Issue #5415: compensate for null byte
When exporting a C source file with runtime length encoding, the
C-string's array size does not accomodate for the null byte. However,
GIMP accomodates for the NULL byte in it's NON-RLE export, suggesting
that this has been a mere oversight for RLE.

This can cause at the worst a compile-time error and at least a warning
from the compiler.

(cherry picked from commit 4d528f297f)
2021-08-05 19:54:19 +02:00
fcefb409e5 Issue #5267: Cage transform tool causes artifacts.
I somewhat bisected GEGL commits between 0.4.20 and 0.4.24 and found
that the one that introduced the env var GEGL_OPERATION_INIT_OUTPUT is
the first showing the problem.

Reviewer (Jehan) note: so it would be commit 6e9610e65c on GEGL repo.
This fix makes sense as it means that since this commit, the output
buffer could have random values. It's not a problem for any operation
where we fill every value, but I guess it's not the case for
"gimp:cage-coef-calc" which was likely relying on the old behavior of
being 0-initialized.

(cherry picked from commit 3b2a8f79f0)
2021-08-05 17:12:19 +02:00
75871f0418 Issue #5989 - performance improvement patches for gtk and gimp
Reviewer comment (Jehan): we have used this patch successfully on our
installers since start of 2021 (see commit b4d665d of our gtk-osx fork)
and it really improved the situation. I only fixed minor coding style
stuff in the patch.
Looking at what it does, I guess it is not ideal long-term if related to
10-bit display (as I understand from the comment), which a graphics app
would want to support properly. But for now, this is better than
extra-slow display until we get macOS developers able to look at this
more in depth in the future (I don't think that our dependencies are
really ready yet for 10-bit display support anyway, though I may be
wrong).
Some other forums seem to say it comes from macOS invalidating now more
than it should (i.e. the whole area instead of only the changed area)
and this NSViewUsesAutomaticLayerBackingStores flag would disable this
behavior. It might be one of these reasons, the other or both. This is
anyway a good first start for future contributors.

(cherry picked from commit 4f9b7373e6)
2021-08-04 21:52:50 +02:00
5ad7ef10c3 Issue #6610: crashes on free select for images of certain dimensions.
g_alloca() is unadvised. Even though it might be more efficient in some
specific cases, it is pretty subject to stack overflow when a lot of
memory is requested.

Let's allocate dynamic memory instead. To avoid doing it too much, let's
just reuse the same pointer especially since region of interest will
usually be the same size when iterating a buffer, except for border
ones (which would usually be smaller, so we can use the same allocated
buffer again). I still make size checks, just in case.

(cherry picked from commit f2fb98cb69)
2021-08-04 19:36:12 +02:00
b274cc07d9 plug-ins: fix #7086 Can't remove color space from a 1bit monochrome palette
For 1-bit BMP export we did not show the save dialog, making it
impossible to change settings interactively.

We enable the save dialog for 1-bit too, making sure to disable RLE, which
is not available for 1-bit.
2021-08-03 16:13:30 -04:00
a69dc492ca Update Swedish translation 2021-07-31 11:24:49 +00:00
1b51d1d78d Update Chinese (China) translation 2021-07-29 19:11:40 +00:00
7395b2d262 Update Chinese (China) translation 2021-07-29 19:09:00 +00:00
f3a676d064 app: fix #5153 keyboard shortcuts Shift+[ and ] don't work on most keyboards
On most keyboards the [ and ] keys are shared with { and }. Which means
that if you press Shift+[ you get {. We were using this key combination
to increase the tool's size by 10 and the other to decrease it by 10.

However, on all keyboards where these keys share the same physical spot
on the keyboard, this wasn't working.
So, let's change the actual keys to do this to { and }.

(cherry picked from commit 42fe8abc98)
2021-07-28 14:40:22 -04:00
3be387b3e3 Update Swedish translation 2021-07-25 20:14:54 +00:00
dbd568a1ec Update Polish translation 2021-07-25 12:52:27 +02:00
912f5c5814 Update Ukrainian translation 2021-07-24 06:25:01 +00:00
a0a089004a plug-ins: fix previous cherry-picked commit. 2021-07-23 16:46:28 -04:00
e629e3e7d2 plug-ins: fix #1146 DICOM with big endian transfer syntax fails to load.
Our plug-in was not correctly handling DICOM images that use big endian
transfer syntax, which is deprecated.

We add support for that here, add a few g_debug statements to make future
debugging easier, and also return an error when we encounter a transfer
syntax that we can't handle instead of blindly continuing.

(cherry picked from commit e0707af073)

# Conflicts:
#	plug-ins/common/file-dicom.c
2021-07-23 15:37:58 -04:00