Commit Graph

44729 Commits

Author SHA1 Message Date
24b86508e5 Update Serbian translation 2021-01-11 23:32:45 +00:00
342dbbd18b Update Serbian (Latin) translation 2021-01-11 22:32:14 +00:00
817306d786 Update Serbian translation 2021-01-11 22:25:36 +00:00
dfc2bcf7b9 Update Finnish translation 2021-01-10 08:21:55 +00:00
37d75d5eb3 plug-ins: allow loading of BMP images with incorrect BI_BITFIELDS compression.
GIMP was exporting certain BMP images with 1, 4, 8 and 24 bpp
with an incorrectly set value of BI_BITFIELDS for compression,
see issue #6144.

According to the specification this is not supported but testing
shows that many image viewers and editors load these
images correctly.
Since allowing these unsupported values for bpp does not
seem to have any negative side effects and is easy to
implement let's add this.

(cherry picked from commit e55e078245)
2021-01-07 18:12:55 -05:00
b38eedad01 plug-ins: fix #6144 Unrecognised or invalid BMP compression format.
The Microsoft specification for BITMAPV5HEADER says that
BI_BITFIELDS is valid for 16 and 32-bits per pixel, but we
were also using this flag for other values of bpp when
no rle compression was used.
Since this specification doesn't mention 24 bpp or other
values use BI_RGB instead.

(cherry picked from commit d8c164ced3)
2021-01-07 18:12:38 -05:00
bf98388d97 plug-ins: set blue channel of BC5 dds images to 0 instead of 255.
Information in issue #6200 revealed that 0 as default value for
the blue channel is a lot more common than 255 so let's use
that instead. The discussion and testing revealed no negative
effects for the other formats that use the same code to
initialize the memory to read blocks of image data.

(cherry picked from commit 691548579a)
2021-01-05 22:48:56 -05:00
c82c995bd3 plug-ins: fix incorrect dds BC5 images saved by GIMP.
Since older versions of our GIMP dds file exporter incorrectly
saved BC5 dds images with the red and green channels
swapped we should fix that. Since the exporter already
wrote the plug-ins version number and that it is written by
GIMP we can check for these incorrect images.

To enable that we increase the plug-ins revision in this
commit and swap red and green channels for images
that have an older version number and are of the
correct type.

(cherry picked from commit a4cc8b7070)

# Conflicts:
#	plug-ins/file-dds/dds.h
2021-01-05 22:48:00 -05:00
204c6fa8a5 plug-ins: fix #6200 DDS BC5 compression/decompression has Red and Blue swapped.
(cherry picked from commit efa899ad15)
2021-01-05 22:40:20 -05:00
8aebe03034 Update Japanese translation 2021-01-04 21:25:29 +00:00
a51bcc5fa9 Update Romanian translation 2021-01-04 15:55:18 +00:00
5874f7fb0b Issue #5066: Create From Screenshot Crash.
(cherry picked from commit 029ffd5778)
2021-01-02 19:08:15 +01:00
dfdd71c7ab Update Japanese translation 2021-01-02 17:55:35 +00:00
a06c2dec13 Update Japanese translation 2021-01-02 17:53:50 +00:00
bda43922a5 Update Japanese translation 2021-01-02 17:15:57 +00:00
86c1524864 Update Spanish translation 2021-01-01 09:32:42 +00:00
25bc7c674c Update Swedish translation 2020-12-30 17:32:38 +00:00
82cf4af2a5 Update Catalan translation 2020-12-23 07:52:14 +01:00
b17b33e2e2 plug-ins: also omit hidden layer groups in PDF export.
When the "Omit hidden layers and layers with zero opacity" option is
set, this property was only checked on non-group layers. So if we had
non-hidden layers inside hidden layer groups, they ended up exported,
which is not the expected behavior.

See https://gitlab.gnome.org/GNOME/gimp/issues/4425#note_675350

(cherry picked from commit 24a0b0c53a)
2020-12-21 21:00:14 +01:00
d6a0660c0d Update Polish translation 2020-12-20 12:42:24 +01:00
bc7b0cb910 Update Ukrainian translation 2020-12-19 07:44:26 +00:00
dbf41dc63f plug-ins: fix #4176 color displayed wrong in multi page tiffs with linear TRC.
If we were loading multi page tif images as layers then only the tif pages
that had a color profile attached would get set as linear (and each tiff page
can have a color profile). Since most of the time only the first page has a
color profile this caused us to load linear tiff pages incorrectly.

Also we were overwriting the color profile if there was more than one since
GIMP can only load one per image. Instead of using the last one we see
use the first one and notify if we encounter more than one.

(cherry picked from commit c05abcefc6)

# Conflicts:
#	plug-ins/file-tiff/file-tiff-load.c
2020-12-18 14:12:11 -05:00
c7b5464026 po-plug-ins, po: (workaround bis) fixing the distcheck job in CI.
My fix in commit 9e4aa586f7 was not enough because CLEANFILES apparently
would only be processed on Makefile.am (i.e. with automake). Just remove
the file explicitly in the distclean rule.

(cherry picked from commit dfc4ecfc4c)
2020-12-17 15:45:25 +01:00
7d9fd36cd8 po, po-plug-ins: (workaround) fixing the distcheck job in CI.
Now the distcheck job fails with the following error:

> ERROR: files left in build directory after distclean:
> ./po/.intltool-merge-cache.lock
> ./po-plug-ins/.intltool-merge-cache.lock
> make[1]: *** [Makefile:1155: distcleancheck] Error 1

There is definitely some change which happened on Debian packages,
either on intltool-merge itself, or something around, because these are
behavior breakage. We never set such `.intltool-merge-cache.lock` lock
files ourselves, so obviously we should not be the ones to clean these.
This is only a workaround which should be removed once upstream fixed
the issue.

(cherry picked from commit 9e4aa586f7)
2020-12-17 15:45:04 +01:00
6b9131e643 data: create po-tags/ build directory.
We have a sudden CI failure which is maybe because of a change of
intltool-merge. We believe it might be because of a missing directory.
Let's test making it before running the command.

Fixes:

> /usr/bin/intltool-merge ../../../po-tags
>   ../../../data/tags/gimp-tags-default.xml.in gimp-tags-default.xml -x -u
>   -c ../../po-tags/.intltool-merge-cache
> No such file or directory at /usr/bin/intltool-merge line 396.

(cherry picked from commit 845f1c81ed)
2020-12-17 15:44:56 +01:00
5d76ae7db2 Updated HEIF plug-in
With libheif 1.10, visually lossless export is possible
for 10/12 bit depths too.
2020-12-17 13:46:09 +01:00
b6ddab60c0 NEWS: update. 2020-12-14 15:17:19 +01:00
e357b0bd83 Update Brazilian Portuguese translation 2020-12-14 11:01:59 +00:00
0d8b602c22 Update Brazilian Portuguese translation 2020-12-14 10:32:45 +00:00
b8531885e1 Update Icelandic translation 2020-12-12 15:28:41 +00:00
258a394f58 plug-ins: fix loading 2 and 4 bit tiff images.
This fixes issue #6065 and part of #2680.

Sometime after GIMP 2.8 loading of 2 and 4 bit tif images,
both grayscale and indexed, got broken.

I added routines for handling 2 and 4 bit tifs based on
the handling of 1 bit images.

(cherry picked from commit 991e99f08a)
2020-12-10 22:33:24 -05:00
87a670a272 gitlab-ci: package is called libaa1-dev, not libaa-dev 2020-12-09 22:51:58 +01:00
2fefbded35 gitlab-ci: make the GIMP build more complete
Added appstream-util, libaa-dev, libavif-dev, libgs-dev and libheif-dev.
2020-12-09 22:48:15 +01:00
d89a5b5ba1 gitlab-ci: we need graphviz for dot, not graphiz-dev 2020-12-09 22:19:30 +01:00
39d9e872bd Update Catalan translation 2020-12-09 21:19:57 +01:00
90293c596c Update Polish translation 2020-12-06 13:02:50 +01:00
f06316364d Update German translation 2020-12-05 18:57:26 +00:00
b1e11e5cf9 #5977 prompt to apply layer offset only if there actually is a (non-zero) offset
(cherry picked from commit 9c85faddaa)
2020-12-02 23:21:24 +01:00
3706f43f59 Update Ukrainian translation 2020-12-02 07:33:30 +00:00
d3527f22e4 plug-ins: fix mistakes in cherry-picking metadata improvements. 2020-12-01 21:16:03 -05:00
bcf91f7774 plug-ins: use logging for some messages that seem to be for debugging only.
By using a logging domain we can filter the messages and can choose to
only see them when needed. They seem to be leftovers from coding or
debugging but I don't wanna invest too much time into this.

(cherry picked from commit 08afb7d03b)
2020-12-01 19:08:31 -05:00
3f3dd3cfc9 plug-ins: improve error handling and use GError in metadata-editor/viewer.
metadata-editor and metadata-viewer did return GIMP_PDB_SUCCESS when
loading the dialog ui failed, we changed this to GIMP_PDB_EXECUTION_ERROR
and now use a GError to report it back to GIMP.

In metadata-editor also improve the error handling when loading the calendar
dialog fails.

The error also only showed in the console so change that to show a dialog
or the error console.

(cherry picked from commit 0ffee001bf)

# Conflicts:
#	plug-ins/metadata/metadata-editor.c
#	plug-ins/metadata/metadata-viewer.c
2020-12-01 19:07:47 -05:00
1965c759a2 plug-ins: fix #2836 GPS data is truncated to the degree when edited.
The string parsing for gps longitude/latitude was not taking all
possible values into account and also the seconds part was
not saved with enough detail.

For altitude lets also increase the detail a bit from .1m to
.10m.

(cherry picked from commit 3d9a9fbbf3)

# Conflicts:
#	plug-ins/metadata/metadata-editor.c
2020-12-01 18:29:00 -05:00
fe77ded9e9 plug-ins: improve formatting of gps data in metadata-editor.
Also add tooltips that explain how to correctly add gps
longitude, latitude and altitude values.

(cherry picked from commit 0318054cb4)
2020-12-01 18:26:31 -05:00
f131ede108 plug-ins: use g_log instead of g_printerr when setting tag fails.
By using g_log with G_LOG_LEVEL_MESSAGE and empty domain
name we make sure the failure to write a tag will be seen by
the user in GIMP's user interface (error console or error
dialog).

(cherry picked from commit c4fa4fcda0)
2020-12-01 18:26:08 -05:00
31164859af plug-ins: fix crash in metadata-editor when licensor phone data was NULL.
(cherry picked from commit a048c8f2a4)
2020-12-01 18:25:48 -05:00
8b26c7e23d plug-ins: fix incorrect formatting when switching between m and ft for gps altitude.
(cherry picked from commit 3ce15f534b)
2020-12-01 18:25:27 -05:00
f3c4e7af99 plug-ins: improve formatting of gps data in metadata-viewer.
Adding metadata-tags to Makefile.am for
the metadata-viewer since until now it was only used in
the metadata-editor.

The Exif gps metadata tags for longitude, latitude and
altitude get special handling to show them with more
precision and let the string parts be translated.

(cherry picked from commit 34407a6b7e)

# Conflicts:
#	plug-ins/metadata/meson.build
#	plug-ins/metadata/metadata-viewer.c
2020-12-01 18:24:29 -05:00
5a68e24ca0 plug-ins: add functions for formatting gps metadata.
(cherry picked from commit 8db1555838)
2020-12-01 18:11:30 -05:00
7bf6fa663f plug-ins: improve casing in metadata-tags.
The abbreviations M for meter and FT for foot/feet were written in uppercase.
However the offical abbreviations are lowercase so let's just follow that and
make them lowercase here too.

Above and Below Sea Level were using camel case with every word starting
with an uppercase letter and were used on the label of a combobox option
for gps altitude reference. Using standard casing with only the first word
using a capital seems better in this case.
a capital

(cherry picked from commit 23fa5c7ef7)
2020-12-01 18:11:08 -05:00