Commit Graph

45180 Commits

Author SHA1 Message Date
5c1863bf92 Update Slovenian translation 2023-02-15 22:12:43 +00:00
66c7fe1f8a Update Slovenian translation 2023-02-15 22:07:52 +00:00
fcdf03ee23 Update Swedish translation 2023-02-15 11:53:33 +00:00
41f40f530a plug-ins: option to choose whether loading a PDF with white background.
While at first, the idea of always loading PDF with transparency seemed good
(commit 7aff7e9c70), I realized that a lot of administrative PDF (generated with
text and vector graphics, rather than scans or alike containing raster) actually
have transparency. So now all these documents load with transparent background.
Clearly all the office software are assuming that PDF readers will fill the
background with white.

So add a checkbox to decide whether or not to fill the image with white. I don't
update the PDB procedure. I'll just do this on the main dev branch (while also
updating a bit the code to newer API).

Fortunately I regularly open such PDF documents with GIMP and could witness this
no-transparency expectation before we released GIMP 2.10.34! 😅
2023-02-14 23:59:44 +01:00
4c61ea6ebf Update Turkish translation 2023-02-14 21:26:03 +00:00
7adc4b682a Update Turkish translation 2023-02-14 21:21:58 +00:00
e7786d2e94 Update Turkish translation 2023-02-14 21:21:50 +00:00
3f4c279276 plug-ins: disable magics detection for Windows CUR and ICO files
The magics used for detection for CUR and ICO are not very unique and
interfere with the detection of certain types of TGA images.
Since these TGA images are regularly used, it seems better to only base
CUR and ICO detection on the extension, just as we do with TGA version 1
files.

See also issue #7912
2023-02-14 15:36:13 -05:00
3e93779172 plug-ins: fix #9067 TGA files saved by Krita can't be opened
Krita had a bug where it incorrectly saved 4 for the alpha bits instead of
8. We will allow 4 and convert that to 8 to be able to read the incorrect
TGA images.

The likelyhood of real TGA images with 4 alphabits seems pretty low, so it
should not interfere with real images that have this set. We were not
supporting that anyway.

(cherry picked from commit 5f9415a641)
2023-02-14 15:16:55 -05:00
34c43b7042 Update Ukrainian translation 2023-02-14 18:10:05 +00:00
d27f8a4e96 Update Swedish translation 2023-02-14 16:38:28 +00:00
517db53964 NEWS: update.
Added the 2 new PDB functions. I should not have added these so close to release
(because these add 2 translatable strings for undo), but anyway the added
strings are barely GUI-facing as these functions are for plug-in developers.

And I really wanted to finally review these MRs which have been sitting there
for months. Sorry translators!
2023-02-14 17:25:52 +01:00
66ef1ef1ef app, libgimp, pdb: minor fixes.
- fix a typo s/Commponent/Component/.
- Add &std_pdb_compat() to the new PDB procedures (I realize that's probably
  what the contributor was asking about, back in !446). Not sure if it's right
  as there were none in this file, but these are clearly just wrappers around
  GEGL ops, so it seems fitting.
- Some alignment fixes.
- More accurate "$since" variables.
2023-02-14 17:12:31 +01:00
c0a3582109 app: generated file (cf. previous commit). 2023-02-14 14:23:38 +01:00
dbf9f277a2 pdb: add a PDB procedure for extract-component 2023-02-14 10:36:19 +00:00
1905197983 Update Slovenian translation 2023-02-14 00:17:37 +00:00
7d6c5cc4de Update Danish translation 2023-02-13 18:33:26 +00:00
b19b8238b3 Update Danish translation 2023-02-13 17:48:45 +00:00
57ee6e13ab Fix file extension issue when "Saving As..." for guillotine
Original issue: #8581

1. When an image with a non-xcf format is loaded, within GIMP core it
qualifies as an imported file. (See gimp_image_get_imported_file
function)

2. But the guillotine plugin cannot propagate this information.
It can only set the file path on the new image it creates, and it uses the file extension of the original imported file.

3. But since the filename is set by the plugin is the actual filename not imported filename,
the gimpsavedialog.c module cannot differentiate it. This results in the
incorrect file extension being set in the "gimp_save_dialog_set_image"
function.

This issue can actually be present in other plugins as well that
generate new images which has to be checked.
2023-02-13 16:21:14 +00:00
da1c7574d8 Update Ukrainian translation 2023-02-13 15:33:07 +00:00
648a44cf98 Update Ukrainian translation 2023-02-13 15:31:16 +00:00
53f095160a Update Swedish translation 2023-02-13 15:08:28 +00:00
e456ab019b app, libgimp, pdb: fixing generated code and wrong GEGL op arguments.
This commit is a fixup commit for MR !790 which had a few issues:

- The args for shadows and highlights adjustments are "shadows-ccorrect" and
  "highlights-ccorrect" respectively.
- Also fixing generated code.
2023-02-13 14:21:16 +01:00
0b96363e10 pdb: add a PDB procedure for shadows-highlights 2023-02-13 13:16:38 +00:00
57d04e0e26 plug-ins: Fix CRITICAL message in Python console
This implements the full fix to the problem noted in the prior commit.
While it no longer crasheed when applying a function after clearing the
console, Jehan reported it still showed a CRITICAL message. This should
fix it the same as the 2.99 branch.
2023-02-13 12:55:40 +00:00
3fbb96c36b plug-ins: Fix Python console crash after clear
GTK2 get_iter_at_line_offset() does not allow invalid offsets unlike
GTK3 version. Clearing the console creates an invalid iter due to an
empty buffer.

This patch attempts to resolve it by adding a ">>> " output when the
console is cleared, thus preventing the invalid iter issue.
2023-02-13 11:43:12 +00:00
a902576864 gitlab-ci: do not allow failure for the distcheck.
This was making the CI issue much less visible, and distcheck is definitely
needed for releases.
2023-02-12 23:49:32 +01:00
d8faa6d21c Revert "libgimpwidgets: fix def file."
This reverts commit 13284c8953.

Actually I should not have backported this change from the `master` branch.
These functions are still public in 2.10 (and internal in the main branch).

This should fix our CI.
2023-02-12 23:49:23 +01:00
0aa087c8f9 NEWS: update. 2023-02-12 16:04:23 +01:00
d78e1a7878 Update Polish translation 2023-02-12 13:17:22 +01:00
aacd3d4640 Issue #8666: Color profile conversion is broken.
A bug in babl would run the color conversion twice when the input and output
buffer is the same and a LUT is available for the color transform. This is a
workaround in GIMP code (especially because we still don't require the latest
babl version), though a real bug fix will soon happen too in babl itself as
well.
2023-02-12 12:52:29 +01:00
6d190931c8 Update Swedish translation 2023-02-12 11:22:41 +00:00
4a56ddc050 Update Slovenian translation 2023-02-12 10:08:40 +00:00
7ba4512d26 Update Slovenian translation 2023-02-12 10:07:11 +00:00
6c901c1641 plug-ins: Make PDF background color fill optional
This adds a checkbox to single and multi-page PDF export to not fill
transparency with the background color
(which currently happens automatically)
2023-02-11 23:26:20 -05:00
13284c8953 libgimpwidgets: fix def file.
The defcheck.py file finds these errors:

> Problem found in /home/jehan/dev/src/gimp/libgimpwidgets/gimpwidgets.def
>   the following symbols are listed in the .def-file,
>   but are not exported by the library.
>      - gimp_color_picker_cursors_get_resource
>      - gimp_icon_pixbufs_get_resource

Indeed these don't exist. Unsure why the autootols check failed to
report these until today.

(cherry picked from commit 01e87819ce)
2023-02-10 23:39:31 +01:00
7aff7e9c70 plug-ins: load PDF without filling the background to white.
Some PDF have transparency on purpose. Filling with white, without any question,
is counter-productive and prevents from working on such PDF files.

Note that we could add an option with a checkbox, leaving one to decide whether
to fill the background or not. But it feels over-engineering the issue. The PDF
is transparent, so that's what we load, and that's it. If one wants to add a
background, it's easy to add a layer at the bottom of the stack (and they can
make it any color they want, not just white), after loading the file.

(cherry picked from commit c369827725)
2023-02-10 20:40:28 +01:00
691b996be4 plug-ins: fix a crash in tiff_io_error().
I had a TIFF file which would crash while triggering an error, inside g_logv()
code (and according to the stacktrace, even probably inside some lower level
printf implementation code).

The reason was that I already processed the variable list with
g_strdup_vprintf() and printf didn't like this va_list being reused, then
segfaulted with some "Cannot access memory at address" error.

The alternate fix was to first copy the va_list in the first use with
va_copy()/G_VA_COPY, yet since we already processed the format data, I thought
it was useless to do this. Let's just directly use the formatted string.

(cherry picked from commit fb1f16d4b8)
2023-02-10 20:35:08 +01:00
c9ba326f8e plug-ins: fix overwrite export creates thumbnail
...when it shouldn't.

Backport of Wormnest's code.
When overwriting the same file when exporting, we didn't check if the
image previously had a thumbnail. If the default setting in Preferences
is to add a thumbnail, then it would add one where it shouldn't.

Since thumbnails get saves as part of the EXIF metadata, we need to check
that to see if there was a thumbnail in the original image.
However, we were always removing the thumbnail from the metadata on import.

Let's delay removing this metadata until we need to, which has the
advantage that the metadata in our viewer is more complete.

When exporting starts, we add a check in gimp_image_metadata_save_prepare
to see if there was a thumbnail in the EXIF metadata. If not, then we
disable the thumbnail flag.

In gimp_image_metadata_save_finish we remove the thumbnail metadata when
the user doesn't want to save a thumbnail, or when the image format
does not support EXIF.
2023-02-09 23:05:00 +00:00
aeb5eaa890 Issue #8359: GIMP crashes from "open the font selection dialog" button.
Apparently GDK/Win32 sends the "grab-broken-event" signal before the "clicked"
signal. This has only been changed since GTK4 so far.

Anyway the bottom line is that GimpContainerPopup would process a handled on
"clicked", using the object destroyed when "grab-broken-event" happened as
callback data. The solution is to make sure that the object stays alive long
enough. So I'm changing gimp_editor_add_button() to connect to signals with
g_signal_connect_object() (since all usage of this function was used with
GObject callback data, it was not a problem).

See discussion in !815.

As a side change, gimp_container_popup_dialog_clicked() should emit the
"cancel", not "confirm". This part was taken from MR !815 by Lloyd Konneker.

(cherry picked from commit f77f772f56)
2023-02-09 23:27:17 +01:00
22ca5248af Update Ukrainian translation 2023-02-09 21:31:55 +00:00
7d9cab6e5d Update Swedish translation 2023-02-09 21:30:22 +00:00
2d59d233ef [app] Ensure calculated histogram spike height ...
is positive or zero. Sometimes the calculated `y` or `bg_y`
values are negative because the histogram value was divided
by zero (when max == 0.0).

Resolves: #9132 (Gnome/GIMP bug tracker)
(cherry picked from commit 9b517fbf7d)
2023-02-10 00:53:53 +06:00
ab53ec2de4 Updated Italian translation 2023-02-09 19:18:10 +01:00
6fbbd75cc1 Update Turkish translation 2023-02-09 15:55:41 +00:00
b7c5d1a8c7 Update Turkish translation 2023-02-09 15:55:07 +00:00
9bf5c0e51a Update Turkish translation 2023-02-09 15:54:24 +00:00
c9f518a65c display: Fix statusbar tool icon offset
The Y offset of the statusbar tool icon is too large, which pushes it
off-screen. This scales the offset by the size of the icon to
prevent this problem.
2023-02-09 14:19:23 +00:00
49310e5943 Issue %8365: Ambiguous naming of "Lock path strokes".
(cherry picked from commit 8bd3d5e0bb)
2023-02-09 15:12:45 +01:00
2fd738bb3e Revert "libgimpcolor: fix call to cmsCreateProofingTransform()."
This reverts commit f7e7f396aa.

See issue #8269.
For GIMP 2.10, I'll just revert this commit so that we get back to pre-2.10.32
situation. For 3.0, we'll try to do something better.
2023-02-09 14:48:52 +01:00