Commit Graph

45192 Commits

Author SHA1 Message Date
d1f173938a Fix warning about using %d format modifier for an unsigned type
GetLastError () returns a DWORD, which is a typedef for a 32 bit
unsigned integral.
2022-10-07 17:50:49 +02:00
011d46e220 Update German translation 2022-09-27 16:14:40 +00:00
65c66756cf Update Hungarian translation 2022-09-19 22:54:03 +00:00
b25e219c46 Update Swedish translation 2022-09-10 11:30:41 +00:00
2d45e7e335 Update Icelandic translation 2022-09-08 16:54:01 +00:00
4d61f0d129 gimp-updates: fix update checks on macOS
Update processing has to be done on the main thread to avoid
problems with GTK thread safety.

(cherry picked from commit 7f257a3a33)

Conflicts fixed:
	app/gimp-update.c
2022-09-07 00:34:29 +02:00
e4a9f1b35a app, autotools: new GIMP_RELEASE macro.
We were using GIMP_UNSTABLE extensively to differentiate development
from stable code. But there is actually another level of development
code. Basically GIMP_UNSTABLE tells you are on the development branch,
e.g. for current branches, that you are on 2.99.* versions (vs. 2.10).
This depends on the minor version oddness.

GIMP_RELEASE will tell you if it's a release or a in-between-releases
code. This works with the micro version which must be even on release.
Any odd number means you are basically using random git code.

There can be any combination of GIMP_RELEASE and GIMP_UNSTABLE. For
instance 2.99.12 is a release of the unstable branch, whereas 2.10.33 is
development code of the stable branch.

I use this first in the update code as we were using GIMP_UNSTABLE for
both concepts but it made it harder to test. Now:

* GIMP_DEV_VERSIONS_JSON environment variable is only available on
  development code, not on release (whether stable or unstable).
* The weekly check limitation is also only for releases (dev code just
  check at every startup to quickly detect issues and regressions).
* Whether to look on testing website or public website json file depends
  on the code being a release or not.
* Finally only whether to check "DEVELOPMENT" or "STABLE" sections in
  the json file depends on whether we are on stable or unstable
  branches.

(cherry picked from commit fbb5b40345)
2022-09-05 22:55:47 +02:00
7809cbf09d app: also properly check updates for "source" platform family.
I.e. non-macOS and non-Windows. For these, we don't really care about
the startup check usually (which is normally disabled anyway, at least
as a default), but we still care about the version check to work when
explicitly requested through the "About" dialog's button.
2022-09-05 16:39:28 +02:00
b391f9f5c8 check_for_updates: fixes update check macos #7325
This was not working due to a missing port in glib.

Potentially could be contributed upstream to GLib.
2022-09-05 13:35:35 +00:00
3622b39862 Update Chinese (China) translation 2022-09-04 18:17:07 +00:00
d6cdbdebb3 Update Portuguese translation 2022-09-02 13:44:46 +00:00
51814400b7 Update Polish translation 2022-08-28 15:25:31 +02:00
36e0690c37 Update Slovenian translation 2022-08-26 12:03:20 +00:00
31c75c69aa Update Ukrainian translation 2022-08-25 20:13:12 +00:00
0204f0df44 plug-ins: improve formatting and comments related to resolution export ...
for PSD's

(cherry picked from commit fac6b2f3f1)

# Conflicts:
#	plug-ins/file-psd/psd-save.c
2022-08-24 15:49:37 -04:00
12de7b8a97 plug-ins: fix #8508 Print exporting to PSD seems to export as cm ...
and import as inches

When GIMP's display unit was mm, our PSD export converted the X and Y
resolution as if a conversion from mm to inch was needed.

However, PSD's resolution is always measured in pixels per inch, so a
conversion is never necessary.
Removing the conversion, resolves the issue.

(cherry picked from commit 24886f91b1)
2022-08-24 15:48:55 -04:00
6e91d246f7 Issue #8505: WEBP, be more informative with error.
Add the info about max dimension of WebP with WEBP_MAX_DIMENSION macro.

There is also a test about (picture->width / 4 > INT_MAX / 4), resp.
height, but this should anyway never happen as the C spec says the
smaller range for int is [-32767, 32767], which is an order bigger than
the current WEBP_MAX_DIMENSION (16383).
So we are probably fine assuming all VP8_ENC_ERROR_BAD_DIMENSION errors
will happen because of WEBP_MAX_DIMENSION.

(cherry picked from commit dfb7d2543a)
2022-08-24 12:33:21 +02:00
6c9089ed39 Issue #6778: Colorpicker (from Colors dockable) shows wrong color.
Actually our X11 implementation is right, and the implementation from
the Freedesktop portal is "as far as it can do", i.e. that we get the
returned RGB value, which is unfortunately in display space. And it
doesn't return any space information together (we don't even know which
display the color comes from, in multi-display setups).

Therefore let's check if we are running GIMP on X11 and if so, let's
call this implementation first.

See this report on xdg-desktop-portal to get proper space info:
https://github.com/flatpak/xdg-desktop-portal/issues/862

(cherry picked from commit 9b21688501)

Cherry-pick note: GIMP 2.10 on Linux will just run on X11 even inside
Wayland (XWayland) so there is no need to check anymore if we are
actually running on X11 with GDK_IS_X11_DISPLAY() (to be more accurate:
you can't on GDK 2!). So now if X11 is compiled in, we simply use the
default color-picking implementation and drop portal calls. As simple as
that.
2022-08-24 12:32:49 +02:00
8f169eb61c plug-ins: fix #8467 "incorrect value RichTIFFIPTC" when loading TIFF ...
created by Adobe Lightroom 5.1

Adobe products are known to write incorrect RichTIFFIPTC tags in TIFF
images.

Since libtiff correctly detects and handles this there is no real need
for end users to be warned. So instead of a warning we will only output
a message to stderr.

(cherry picked from commit 0ad54f863a)
2022-08-23 18:01:41 -04:00
9829679e6d plug-ins: check for invalid resolution when loading TIFF image
This is essentially the same check as done in gimp_image_set_resolution,
but doing it here means we can load the image instead of throwing an
error.

We still need to get replacement xres and yres values, because these are
used to compute layer_offset_x_pixel and layer_offset_y_pixel.

(cherry picked from commit ced071a8ee)
2022-08-23 18:01:29 -04:00
e2048249c9 plug-ins: fix GIMP becoming unresponsive due to corrupt image
Image m2-d0f86ab189cbe900ec389ca6d7464713.tif from the imagetestsuite
is a fuzzed image with an invalid very high number for the channel count.

This causes GIMP to become unresponsive for a very long time. Possibly
trying to allocate memory for all channels or another cause related to
the high number of channels.

Let's go for a more "reasonable" limit of 99 channels like we also do
for Photoshop images and show a message when we find an image with more
channels.

(cherry picked from commit 18d466df7f)
2022-08-23 18:01:16 -04:00
9e9d6c0b9d plug-ins: fix crash when loading multi page TIFF images in non interactive mode
When loading a TIFF image using a script/plug-in in non interactive mode,
we did not initialize the list of pages, causing a crash when trying to
access it.

So, always initialize this list when non interactive.

(cherry picked from commit 853e9d5cb4)
2022-08-23 18:01:02 -04:00
a8e8be0249 plug-ins: fix TIFF warnings about unknown tags not filtered out anymore
Due to a change in the format string in libtiff, warnings about unknown
fields were not filtered out anymore.

Adjust our filtering of warning messages so we catch this again since
end-users don't need to worry about this and we don't need the
possible extra issues.

(cherry picked from commit ac5a6e56b7)
2022-08-23 18:00:48 -04:00
982881d612 Update Turkish translation 2022-08-21 17:57:12 +00:00
1ca2cbae25 Update Turkish translation 2022-08-21 17:46:32 +00:00
3023732663 Update Turkish translation 2022-08-21 17:46:10 +00:00
cba686a150 Update Turkish translation 2022-08-21 17:44:52 +00:00
976735427f Update Turkish translation 2022-08-21 17:29:37 +00:00
2367e364a9 Update Turkish translation 2022-08-21 17:28:14 +00:00
b84e15f512 Update Georgian translation 2022-08-18 14:27:36 +00:00
eaf9194586 Update Croatian translation 2022-08-17 00:35:25 +00:00
8352d80de6 plug-ins: fix #8411 crash when attempting to open PSD
Apparently some layers in PSD files can have extra channels which we
did not account for when computing destination offsets, causing crashes.

So let's make sure we don't include the "extra" channels when computing
the offsets by introducing base_channels. We also move the alpha channel
in the spot of the first extra channel (even though it seems, based on
the one example we have, that the extra channel might be the same as
the alpha channel).

(cherry picked from commit 5fbd06629d)

# Conflicts:
#	plug-ins/file-psd/psd-load.c
2022-08-03 19:12:50 -04:00
4891eb71a2 Update Swedish translation 2022-08-03 11:50:52 +00:00
f4191a0317 Update Georgian translation 2022-07-23 13:59:34 +00:00
72e8ca4cb6 Update Georgian translation 2022-07-22 14:36:53 +00:00
49052aeaaf configure, app: depend on GEGL-0.4.38 2022-07-21 22:52:07 +02:00
0c5e109dd5 Small fix in Italian translation 2022-07-09 00:16:14 +02:00
1463e6247b Small fix in Italian translation 2022-07-08 23:57:47 +02:00
6f8ad09ff0 Small fix in Italian translation 2022-07-03 15:05:37 +02:00
4596696ebd Update German translation 2022-06-30 19:40:46 +00:00
ae38799ef2 Updated Italian translation 2022-06-30 11:03:16 +02:00
204f14e1bf Update German translation 2022-06-19 15:25:06 +00:00
dd2fc60e6a configure: post-release version bump to 2.10.33. 2022-06-17 22:17:28 +02:00
7504db77fa Update Spanish translation 2022-06-16 14:11:19 +00:00
b5adb24473 Update Spanish translation 2022-06-16 13:58:12 +00:00
7fae471426 plug-ins: ensure that metadata correspond to real image size 2022-06-16 14:02:45 +02:00
0963550b2d Issue #7091: Exporting 16-bit precision images to raw *.data.
Just use the image format as-is. The only problem now is that we don't
support all formats for loading in file-raw yet.

(cherry picked from commit 01e0675f67)

 Conflicts:
	plug-ins/common/file-raw-data.c
2022-06-15 22:51:00 +02:00
7ef2c62db5 Issue #8271: Export as DDS Seems Untranslated on All Languages. 2022-06-15 18:49:27 +02:00
d6bbd9fb01 Update Croatian translation 2022-06-15 07:49:05 +00:00
220053c036 Update Croatian translation 2022-06-15 07:46:57 +00:00