Commit Graph

44801 Commits

Author SHA1 Message Date
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
9102914748 Update Swedish translation 2021-04-25 16:01:35 +00:00
eb9eec4acb pdb: add a PDB compat procedure for median-blur 2021-04-25 12:19:04 +00:00
9406991bb7 plug-ins:fix #6624 metadata viewer default window size is too small
Let's increase the default size of the metadata viewer a bit.
Ideally we would add some logic to determine the width of
the first column since that one currently depends on the
length of the longest tag. However for now this change
will be enough for most cases.

(cherry picked from commit 165b50abcc)
2021-04-24 12:52:58 -04:00
b2fa1bd948 script-fu: fix #6741 Round Corners script fails to work on layer masks
The round corners script was assuming that the drawable always
was a layer, which is incorrect when a layer mask is selected.

We fix this by always requesting the active layer instead of
active drawable.

We also enable this script for RGB and GRAY with alpha
channel. Although it might not always make sense to
use this script when an alpha channel is present, there
can be use cases where it is perfectly fine.

So let the designer decide if this script is suited or not
instead of GIMP making that judgement.

(cherry picked from commit ed35579861)

# Conflicts:
#	plug-ins/script-fu/scripts/round-corners.scm
2021-04-24 12:52:19 -04:00
58a54998d3 NEWS: update. Start the GIMP 2.10.26 section. 2021-04-24 15:42:24 +02:00
c447c7e7b5 plug-ins: Add 'dir-make' procedure to Script-fu.
Closes: GNOME/gimp#541

Reviewer note: thanks to Stanislav Grinkov for cleaning up and reworking
a bit the patch, such as renaming the procedure to dir-make, as per
Kevin Cozens' review.

(cherry picked from commit 11906fa82c)
2021-04-24 15:23:48 +02:00
57bffb2464 GIMP-CRITICAL: gimp_marshal_VOID__OBJECT_STRING_STRING: assertion 'n_param_values == 4' failed
(cherry picked from commit c6fde64815)
2021-04-24 15:23:41 +02:00
ac7e841e24 Issue #5008: Always true condition (i>=0) inside fill_inverse_cmap_gray.
Removing useless condition, add a g_return_if_fail() assertion for the
only (impossible unless bug) case which we don't expect. Also set
default mindist to G_MAXLONG instead of a magic number (which was ok now
but might become a problem if some day colormap allowed more than 16-bit
per channel colors).
Finally break when we reach a distance of 0 since we won't get lower
anyway, so better stop early.

Thanks to Rafał Mikrut and Øyvind Kolås for code commenting.

(cherry picked from commit d6dac25579)
2021-04-24 15:23:33 +02:00
2e6c233a4c app: fix an assertion when converting grayscale images to indexed.
We cannot just compare the drawable format with the model-type specs of
the color model. We need to include the space now.
In my case, some random screenshot converted to gray then indexed would
assert because the format is "Y' u8-space-gray-sRGB" (or for layers with
alpha: "Y'A u8-space-gray-sRGB"), hence indexed conversion failed and
ended up dark.

(cherry picked from commit c0e605ef96)
2021-04-24 15:23:21 +02:00
404c728e2a plug-ins: fix #6755 DDS RGB10A2 has Red and Blue swapped.
Looking at the documentation it is indeed red that should go
in the lowest bits and blue in the highest bits so just
reverse our code for red and blue.

We also update the version of our GIMP DDS plug-in,
this way we can catch and correct RGB10A2 images
written by older versions of our plug-in and correct
them.

(cherry picked from commit cad6273fed)

# Conflicts:
#	plug-ins/file-dds/dds.h
2021-04-23 15:12:54 -04:00
b93dd4e0fe Revert "app: append insensitive reason to GimpAction proxy tooltip."
This reverts commit bf9a292723.

I messed up copying the commit to cherry pick.
2021-04-23 15:07:55 -04:00
bf9a292723 app: append insensitive reason to GimpAction proxy tooltip.
With my previous commit, I improved the search action display and search
algorithm (which was returning wrong results), but we had lost showing
the non-sensitive reason in menu item tooltips. This fixes it, by
actually appending the reason, but only in the end, on the GtkWidget
tooltip (not in the action's tooltip itself).

(cherry picked from commit 13a02aea23)
2021-04-23 15:02:12 -04:00
c52aa7dc2c plug-ins: change non-existing brush.
Fixes:
> Calling error for procedure 'gimp-brush-get-pixels':
> Brush 'Circle (03)' not found

The data/brushes/Circle-3.vbr brush doesn't exist since commit
7aa12175a4 in 2012 as far as I can see.

(cherry picked from commit 65e10faf50)
2021-04-21 17:53:43 +02:00
1664ca7867 Update Makefile.am
(cherry picked from commit 6e27c46b5f)
2021-04-21 01:37:02 +02:00
9b87106720 Issue 6210: Subpixel font rendering system settings should only apply…
… to GIMP not text layer rendering in image

Patch was merged n Cairo today, wouhou!
https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/114
If not mistaken, the fix should then appear in Cairo 1.17.6 or 1.18.0
(whatever comes next). As we are obviously not going to bump the Cairo
dependency so early, let's just add the patch, at the very least to be
used for our official builds. Also this way, we won't forget about this
issue in the future when we need to bump Cairo.

(cherry picked from commit 5f61d84570)
2021-04-20 18:30:56 +02:00
7b0df6f04a Fix issue #6577 : scriptfu hang on select dialog on Mac 2021-04-19 14:30:59 +00:00
573a4798b6 plug-ins: fix #6723 Unable to open DDS files.
This is the same as what we did for #5357
but in the reverse situation. The reason
for not doing the same at that time was
because I wasn't sure if that was valid
in all cases.

Looking at the documentation it does seem
to be the right solution and is working for
the supplied example image.

(cherry picked from commit 48ff5313c3)

# Conflicts:
#	plug-ins/file-dds/ddsread.c
2021-04-14 13:44:14 -04:00
59bab76383 app: fix 3d transform tool not added to gimphelp-ids.h
(cherry picked from commit 4aaad4f749)
2021-04-09 18:04:49 -04:00
2b6ab09cc1 Issue #6394: Wacom Airbrush finger wheel non-functional (on…
… Cintiq 16).
Adding the patch provided by Knuckx. Note that the GTK3 variant of the
patch is already merged to gtk-3-24 branch and published since GTK
3.24.28. Nevertheless since the contributor also provided a GTK2
variant, it would be a bit of a waste to let it go down the drain,
wouldn't it?
So let's try and use it in our GIMP 2.10.x packages for Windows.
2021-04-07 14:27:56 +02:00
2c182ed5eb build: adding patch for glib!2020.
This is a patch for issue #913, the infamous "non-existent floppy drive"
or other unreachable network or unmounted drives. Well at least it
*should* fix the issue, but GLib developers are hoping we could test. So
let's add this in there for our next Windows package.

(cherry picked from commit 7e2a0238a2)
2021-04-07 13:33:06 +02:00
dbc3139759 Update Dutch translation 2021-04-05 16:02:23 +00:00
7f7331e4dd Update Dutch translation 2021-04-05 15:58:11 +00:00
4d6cf1e3e8 app: Don't second-guess the dependency system
Removing this check makes the treatment of LittleCMS consistent with
all the other dependencies checked in the same file, which only check
that the runtime version is at least the required version.

As long as we were compiled against LittleCMS >= 2.8, and are now
running against a version that has at least the same symbols, it doesn't
necessarily matter whether the version we are running against is the
same one we were compiled against.

Distributions like Debian and Ubuntu track the versions in which
individual symbols were introduced, which allows runtime dependencies
to be weakened when no newer symbols are actually used; this is
practically necessary when working with very large numbers of packages,
to avoid a new version of a dependency library unnecessarily blocking
upgrade of dependent packages. However, this doesn't work if dependent
packages add their own checks that bypass this mechanism.

Signed-off-by: Simon McVittie <smcv@debian.org>
(cherry picked from commit dda65d85c3)
2021-04-04 16:06:10 +02:00
1fd6f68afa meson, configure, plug-ins: image/x-sun-raster is a supported MimeTypes.
Also ".sun" is a possible (and common) file name extension for Sun
Raster images, according to various sources and samples I found (these
samples with .sun extension also opened fine in GIMP, so it's not just a
subvariant which we may not handle or something of the sort). This one
is not so important though as we also register magic bytes for detection
(which is the proper way), but it can still be useful, mostly for
exporting (as we will direct to the SunRaster plug-in if someone tried
to export a file with .sun extension, since no other file format uses
this extension AFAICS).

There is no functional change, I just had a look at this plug-in while
handling !428 and realized this format was not present in the MimeType
list (which is used to generate the desktop file, in order to have
proper mime types, not detection based on extension only, unlike
Windows in !428).

(cherry picked from commit cd3333c6d3)
2021-04-04 16:04:58 +02:00
f742981171 build: remove *.rs file association with SUN Raster images
Nowadays .rs is the extension for the Rust programming language files,
and it's confusing that GIMP is trying to associate with them.

A simple rename of existing .rs images to .ras will allow them to be
opened again.

Note by reviewer: ideally file association should not rely on filename
extension, and should be detected properly (i.e. file "magic"). This way
even extension clash would not be a problem (format would be detected
whatever the extension used). Unfortunately it's apparently not the case
on Windows.
Anyway since nowadays chances to see a Rust code file are likely much
higher than seeing a Sun Raster image file, let's just accept this patch
and drop association of `.rs` on Windows.

(cherry picked from commit 809e045ead)
2021-04-04 03:23:39 +02:00
261eff08f4 app: Print 2-digit LittleCMS minor versions correctly
LittleCMS 2.12.0 defines LCMS_VERSION as 2120. We want to print that
as 2.12.0, not 2.2.0.

Resolves: https://gitlab.gnome.org/GNOME/gimp/-/issues/6505
Signed-off-by: Simon McVittie <smcv@debian.org>
(cherry picked from commit e54bfa58b1)
2021-04-04 01:50:09 +02:00
09d2ef07bf Update Polish translation 2021-04-03 13:48:10 +02:00
ed2484b429 Update Spanish translation 2021-04-03 09:56:49 +00:00
08b396503f plug-ins: fix another cast warning.
Fix again these warnings:
> cast from pointer to integer of different size

(cherry picked from commit 2c6e21b1e7)

Note: the absence of this made script-fu crash on Windows 64-bit. See
issue #6664. Why this suddenly appeared and never happened before GIMP
2.10.24 is a big mystery.
2021-03-30 23:56:56 +02:00
07b947fbeb configure: post-release version bump to 2.10.25. 2021-03-28 23:49:12 +02:00
fea5236e19 configure: release GIMP 2.10.24. 2021-03-28 22:30:30 +02:00
50c460877f Update Swedish translation 2021-03-28 20:04:31 +00:00
a7a3b983fb docs, etc: regenerate gimprc and its manpage. 2021-03-28 22:01:41 +02:00
a0bb707d55 Update Ukrainian translation 2021-03-28 18:13:03 +00:00
6a2910bd3b plug-ins: set the "Save GeoTIFF data" checkbox insensitive when…
… there are no such data available.
No need to have people test and wonder what it changes when it makes no
difference. Also adding a tooltip to make the "present on import"
condition a bit more obvious (hopefully).

This is only on `gimp-2-10` for now, for the 2.10.24 release. I will
port this to `master` branch later.
2021-03-28 19:17:15 +02:00
c864b65525 NEWS: update/reword a bit more.
Some of the points are taken from the 2.99.x branch NEWS file.
2021-03-28 18:55:40 +02:00
5e4b52eb40 NEWS: update. 2021-03-28 18:25:11 +02:00
90f8cb54eb plug-ins: fix crash of qbist when loading files.
Contents of these arrays are assumed to be limited to a specific range.
While it did work sometimes (because a further processing would randomly
regenerate some of the indexes and correctly limit the range), it often
crashed.

This commit fixes the crash, but I am not sure this plug-in is working
exactly as expected regarding data load/save. It feels like you would
expect to always get the same patterns with a same source data. Yet
there is further randomization going on.

Oppositely when saving data, and re-loading it later, I would expect
once again to get back the exact same patterns I had when saving the
data. So it would be a way to save the result of randomization (as
chances to get back a pattern one liked are slim by definition when it's
created randomly).

Right now, it doesn't behave at all like this. Files are only used as
some kind of random seed, not as a way to save/load patterns. I feel
this was not the purpose of the file handling here.

(cherry picked from commit 7fb696206e)
2021-03-28 03:19:24 +02:00