Commit Graph

44639 Commits

Author SHA1 Message Date
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
300599f52c plug-ins: add support for planar configuration in DICOM images.
Part 1 of the fix for #1146.

In addition to that we also add some g_debug statements to make it easier
to determine certain image info.

(cherry picked from commit 3733a36d84)
2021-07-23 15:31:59 -04:00
473a91c494 Update Spanish translation 2021-07-19 13:24:44 +00:00
da37571d92 Issue #6994: Color Noise produces artifacts with highly saturated…
… source colors

Reviewer's (Jehan) note: a git blame shows this is a clear bug
introduced in commit 9d19bf2a3e, which was a cleanup patch, and the
BOUNDS() macro was not doing exactly the same thing as the code before
the change.

(cherry picked from commit 3b3f34cd22)
2021-07-17 19:03:28 +02:00
56cf217579 Update Dutch translation 2021-07-14 09:30:21 +00:00
73a9cb50ac Update Polish translation 2021-07-11 12:34:23 +02:00
3047ea9c5b Update Ukrainian translation 2021-07-05 16:39:36 +00:00
6829274dde app: add a comment and some newlines before the debug data section.
The markdown triple-quote (```) has to be on its own at the start of a
newline. Schumaml was telling me that too many reporters would paste
just after some text, which would therefore break the markdown syntax.

Instead let's add 3 newlines before the triple-quote, so that even
people who would not hit the "Copy Bug Information" button (but instead
select and copy) have a hint that these newlines are made on purpose.
Also add a comment (which is discarded by Gitlab) to make this even more
obvious.

Then even when pasting just after some text on the same line, the
triple-quote will end up on its own line.

(cherry picked from commit d3105e5c72)
2021-07-05 16:45:52 +02:00
26baa0527d app: check if an item was already inserted by actually looking it up in…
… the container.

There was this weird case which we somehow could only reproduce on
Aryeom's computer/build, not mine, with the same code and reproduction
steps (reproducible at will on her build only). Basically when drag'n
dropping a duplicated layer inside a collapsed layer group, the
row-expanded handler would try to select the moved layer before it is
actually inserted. This would end up into crash-happy code.

I'm still unsure of why the order of operation is different here, but
anyway what is for sure is that the `inserting_item` boolean flag was
not protecting much. It's not like it's an actual mutex and anyway this
is not multi-threaded code either so this flag was mostly useless (which
is why we were crashing). Instead let's actually look if the item is in
the container or not.
2021-07-05 10:41:52 +02:00
1dd7e8ac55 Update Dutch translation 2021-07-01 11:11:59 +00:00
371c5f9a76 Update Russian translation 2021-06-26 03:42:59 +03:00
89b930cedf Update Catalan translation 2021-06-03 06:10:33 +02:00
c920260765 Update Catalan translation 2021-06-03 05:59:26 +02:00
f880844183 Update Catalan translation 2021-05-31 07:49:56 +02:00
d6685d8951 Update Spanish translation 2021-05-25 06:17:35 +00:00
a038051bb8 plug-ins: fix #6859 Hurl random pct limits in PDB are incorrect 2021-05-24 14:56:41 +00:00
557a19469a plug-ins: fix incorrect cherry-picking of previous commit. 2021-05-19 22:29:37 -04:00
815e624851 plug-ins: fix #6116 grayscale gif animation hangs on export.
GIF export was not taking into account that there can be
both grayscale layers with and without alpha in an image.

We make sure that the GEGL buffer knows the type of
drawable for the current layer.

(cherry picked from commit 3b3ab0aa11)

# Conflicts:
#	plug-ins/common/file-gif-save.c
2021-05-19 17:49:01 -04:00
ad5aa1a6b1 Update Spanish translation 2021-05-18 12:05:09 +00:00
63a9ef7915 Update Slovenian translation 2021-05-13 07:45:40 +00:00
2c6866f8a6 Update Slovenian translation 2021-05-13 07:45:23 +00:00
f2c2163be4 NEWS: update. 2021-05-12 13:18:57 +02:00
be32831984 Update Vietnamese translation 2021-05-12 07:03:21 +00:00
496582b160 Update Vietnamese translation 2021-05-12 06:54:27 +00:00
af76c091cb Issue #6852: Don't include gimp30-tips.mo in binary package
Similar to previous plug-in but only for autotools. Separated in its own
commit for easy cherry-picking to `gimp-2-10` branch.

(cherry picked from commit a4a6ac59e0)
2021-05-11 14:38:41 +02:00
f3c21c7e6e Issue #6850: support for memory in the dashboard under OpenBSD.
(cherry picked from commit 6dc98fe7f0)
2021-05-09 20:02:56 +02:00
25bf957a1b Update Croatian translation 2021-05-06 07:39:27 +00:00
fe077ff3b3 plug-ins: fix using wrong offset for group layer masks in psd export.
Exporting to psd could result in very large files which often failed to
load in both GIMP and PS when a group layer with a layer mask
was present.

Reported on our IRC channel with a sample xcf which made it
possible to figure out the problem.

(cherry picked from commit 8fdeaddbe7)
2021-05-04 15:51:25 -04:00
d58ba7c617 Update Polish translation 2021-05-02 12:02:45 +02:00
108d9be2b7 Update Spanish translation 2021-04-29 11:20:52 +00:00
c9d2722192 plug-ins: fix compilation of previous commit. 2021-04-26 22:27:20 -04:00
e29219fee7 plug-ins: fix #5960 Gimp loads 16 bit DDS images with luminosity as 8 bit.
So far all dds images were loaded as 8 bit per channel which makes
sense for most but not all dds formats.

This commit implements loading in 16 bit for "L16" - a 16 bit
luminance channel.

In addition to that we improve security a bit  by not assuming
that L16 is the only left over case but instead explicitly
checking the correct value of rmask for L16.

For other cases we now set an error with enough details
to identify the type of DDS image that needs extra
handling.

(cherry picked from commit fe228a6f6f)

# Conflicts:
#	plug-ins/file-dds/ddsread.c
2021-04-26 17:45:04 -04:00
0bc3653f98 Update Catalan translation 2021-04-26 20:27:09 +02:00
330c3f49a9 Update Ukrainian translation 2021-04-25 17:53:28 +00:00
0ebf24d4b4 Update Catalan translation 2021-04-25 19:11:18 +02:00