Commit graph

43234 commits

Author SHA1 Message Date
Aron Xu
b65aeaf034 Fix a terminology in zh_CN translation 2019-04-20 01:35:12 +08:00
Aron Xu
0eb3ef2634 Update zh_CN translation of po-script-fu 2019-04-20 01:29:28 +08:00
lumingzh
f02a1f880e Update zh_CN translation of po-tips 2019-04-20 01:12:06 +08:00
lumingzh
9ee3a8a08b Update zh_CN translation of po-libgimp 2019-04-20 01:07:46 +08:00
Mingye Wang
99976fbcb0 Update zh_CN translation of po-tags 2019-04-20 00:51:21 +08:00
lumingzh
edb6767ed9 Update zh_CN translation 2019-04-20 00:48:50 +08:00
Ell
8fc94184a8 app: fix spin-button width in the Curves tool
In the Curves tool, explicitly set the point-coordinate spin-
buttons' width-chars, so that their size remains fixed when their
range changes.
2019-04-19 11:35:27 -04:00
Ell
f6d76ff342 app: fix last commit 2019-04-19 11:23:12 -04:00
Ell
be719f9070 app: fix Curves tool numeric-entry range/precision for > 8-bpc images
In the Curves tool, when the image precision is greater than 8-bpc,
use a 0.00-100.00 range for the point-coordinate spin-buttons,
instead of a 0-255 range.
2019-04-19 11:13:14 -04:00
Ell
33e47c85a2 app: add smooth/corner curve-point types
Allow setting the type of GimpCurve control-points to either SMOOTH
or CORNER.  Smooth points produce a smooth curve, while corner
points produce a sharp curve (previously, all points were smooth).

In GimpCureView, display corner points using a diamond shape,
instead of a circle.

In the Curves tool, allow changing the curve's point types.
2019-04-19 10:34:32 -04:00
Ell
5140d903b8 Issue #1528 - Allow precise or numeric input in color curves tool
Add input/output spin-buttons to the Curves tool, which allow
setting the selected point's coordinates numerically.
2019-04-19 10:34:31 -04:00
Ell
91ecca7e10 app: add "selection-changed" signal to GimpCruveView
... which gets emitted when the selected point changes.
2019-04-19 10:34:31 -04:00
Ell
b6d829a1b2 app: streamline GimpCurve
In GimpCurve, replace the use of a fixed-length control-point array
with a dynamically-sized array.  Adapt GimpCurve's interface, and
the rest of the code.

In addition to simplifying the code, this fixes a bug where the
curve object could be broken by moving the mouse too fast (yep...),
and allows more accurate point placement, both in the GUI editor,
and through canvas interaction in the Curves tool (see issue #814).
2019-04-19 10:34:29 -04:00
Ell
dc6ca2cf9a app: fix gimp_operation_levels_map_input() for negative values
... when gamma != 1
2019-04-19 10:32:05 -04:00
Aron Xu
4f8a5e02d7 Update zh_CN translation of po-windows-installer 2019-04-19 15:53:35 +08:00
lumingzh
a9e147aec3 Update zh_CN translation 2019-04-19 15:42:11 +08:00
Jehan
91c69b782c app: null the pointer after destruction.
Make sure we don't end up with a broken pointer in case it was not
immediately re-set.
2019-04-19 09:28:22 +02:00
Ell
8357c9ad64 app: in GimpCurveView, snap to curve when holding Ctrl
In GimpCurveView, when holding down Ctrl while adding/dragging a
point, snap the y-coordinate to the original curve (at the start of
the drag).  This is particularly useful for adding points along the
curve, without changing their y-coordinate.

Likewise, have the coordinate indicator show the snapped
coordinate.
2019-04-17 18:00:18 -04:00
Ell
0b9737a3ed app: in GimpCurveView, use relative motion when dragging point
In GimpCurveView, when dragging an existing curve point, don't
immediately move the point to the cursor position uppon button
press, but rather move it relative to its current position as the
cursor moves.  This allows selecting a point without moving it, and
adjusting its position more easily.

Additionally, when the cursor hovers above a point, or when
dargging a point, have the coordinate indicator show the point's
position, rather than the cursor's.
2019-04-17 18:00:17 -04:00
Sabri Ünal
62f7f2775e Update Turkish translation 2019-04-17 19:27:58 +00:00
Sabri Ünal
8bdb27d85a Update Turkish translation 2019-04-17 19:26:04 +00:00
Sabri Ünal
fbc8893465 Update Turkish translation 2019-04-17 19:25:44 +00:00
Sabri Ünal
df1b5c8cbb Update Turkish translation 2019-04-17 19:23:43 +00:00
Sabri Ünal
2522df0d2f Update Turkish translation 2019-04-17 18:56:15 +00:00
Sabri Ünal
d2f6f19758 Update Turkish translation 2019-04-17 18:54:25 +00:00
Ell
83184d1626 app: add incremental mode to the Dodge/Burn tool
Add an "Incremental" option to the Dodge/Burn tool, which,
similarly to the Paintbrush, Pencil, and Eraser tools, applies the
effect incrementally as the pointer moves.
2019-04-17 10:02:42 -04:00
Tim Sabsch
6532a7e529 Update German translation
(cherry picked from commit 8009f62a77)
2019-04-16 11:34:58 +00:00
Tobias Ellinghaus
7584969453
plug-ins: Add layer support to TIFF writing 2019-04-16 10:04:16 +02:00
Jehan
b9458f8a6e plug-ins: export linear WebP if and only if the work image was 8-bit...
... linear itself AND if we export the profile.
Implement similar logics to WebP export as I did to JPEG in my previous
commit.
2019-04-15 23:52:53 +02:00
Jehan
5f4cf53519 plug-ins: export linear JPEG if and only if the work image was 8-bit...
... linear itself AND if we export the profile.

In most cases we want to save 8-bit image formats (here JPEG) as
non-linear, even though the work image may have been linear itself (yet
with higher bit depth). The reasons are shadow posterization on low bit
depth, and the fact that JPEG compression was designed for perceptually
uniform RGB and introduces shadow artifacts with linear RGB (see #1070,
message by Elle Stone). The only exception is when the creator was
working explicitly on 8-bit linear (not higher bit depth) AND if we
export the profile (otherwise most loaders around assume sRGB). In such
a case, let's consider the creator knows what one is doing and keep the
exported image linear.

Similar logics is already used in PNG exporter (though a bit of a
variant since PNG supports 16-bit so it is instead: 8-bit linear without
profile is promoted to 16-bit non-linear, and kept 8-bit linear with
profile).
2019-04-15 22:56:38 +02:00
Jehan
7a4b313b12 Issue #3253: exporting to webp from 32-bit float linear image...
... produces incorrect result.
Similar to previous fixes to JPEG and PNG exporters. Here WebP always
export 8-bit per channel colors, so let's always keep it non-linear.
Simply when the original data was linear, if we save the profile,
convert it to sRGB before exporting.
2019-04-14 22:18:36 +02:00
Tim Sabsch
862bf4af60 Update German translation
(cherry picked from commit b9ed4a7f14)
2019-04-13 18:21:37 +00:00
Piotr Drąg
f0ff1adacc Update POTFILES.in 2019-04-13 10:42:49 +02:00
Jordi Mas
ab2b6c0400 Update Catalan translation 2019-04-13 09:02:56 +02:00
Jehan
406279e4ef app: new "gex" format (GIMP Extension).
File extension (.gex) may still change if anything better is proposed.
This format is currently just a compressed archive containing the
extension data (plug-in, brushes or whatever) and the metadata file.

For now, opening such file will simply install it as a new extension,
keeping all file permissions and structure. Of course in the future, it
will have to trigger a confirmation dialog.

Currently the compression used is zip, which is just a first draft. This
is not a decisive choice as well. We could use some tarball compressed
in whatever other compression algorithm. I use libarchive as a new
dependency to support unarchiving as it seems to be a common library
(and since it is already used by AppStream-glib anyway, this doesn't add
any actual dependency, just make it direct).
2019-04-12 18:49:18 +02:00
Jehan
5c9114aedf app: allow core file procedure which don't return an image.
This is useful to be able to support file formats other than image
formats. In particular I will use this in the next commit to support a
"GIMP extension" format. When GIMP will open such file, it will
install an extension (not open an image on canvas).

This is an internal flag only, i.e. only usable from core GIMP. File
formats which a plug-in can register are still only image file formats.
2019-04-12 18:42:03 +02:00
Michael Natterer
aee6d44b61 app: remove defines GIMP_BRUSH_FILE_VERSION and GIMP_PATTERN_FILE_VERSION
they were unused and wrong. Also clean up the brush and pattern
headers a bit.
2019-04-12 16:30:29 +02:00
Jehan
5d5ced88a8 Issue #3224: Fill by Line Art Detection Bug (Fatal Error with Crash).
Typos in gimp_pickable_contiguous_region_by_line_art().
Thanks to Massimo for debugging these!
2019-04-12 14:48:15 +02:00
Jehan
c5fae74ac1 Issue #3193: Wrong colors after exporting 8bpc RGB png from 32f...
... linear XCF.
When choosing a specific pixel format (other than "Automatic"), we
always export as non-linear. Therefore if we were going to save a linear
profile, make sure we also convert it to sRGB too.
2019-04-12 14:33:19 +02:00
Jehan
8594275bb7 Issue #1070: exporting to jpeg from 32-bit float linear image...
... produces jpeg in linear color space.
The problem was that we were anyway always exporting to non-linear while
attaching a linear profile. A first approach would have been to export
in linear instead when the work image is linear, as proposed by mitch in
a first version of the patch. Yet as Elle Stone notes, it is not a great
idea to export 8-bit images as linear.
Instead let's continue to always export as non-linear, as we were
already doing. Yet when we also save a profile, and this one was
originally linear, let's convert it to sRGB TRC before exporting.
2019-04-12 12:57:18 +02:00
Rodrigo Lledó
6017683c87 Update Spanish translation
(cherry picked from commit 1baba460db)
2019-04-11 11:14:09 +00:00
Kukuh Syafaat
d5a2c5cc91 Update Indonesian translation
(cherry picked from commit 84bc29b77a)
2019-04-11 10:47:22 +00:00
Kukuh Syafaat
640bc17e63 Update Indonesian translation
(cherry picked from commit ed030168c2)
2019-04-11 10:29:55 +00:00
Julien Hardelin
5d331a1f90 Update French translation 2019-04-10 18:11:06 +00:00
Michael Natterer
40863bffdd app: fix legacy .gpb parsing code in gimp_brush_load_brush()
Only seek back to after the end of the actual brush if a following
pattern was *not* found. Got this logic wrong in the original port of
the plug-in code.
2019-04-09 23:11:55 +02:00
Jehan
9fd8d65f98 .gitlab: improve templates.
Add a note asking bug reporters to test with the latest stable version
of GIMP or with dev code (not with old stable versions).
Also add some labels on bug reports and feature requests.
2019-04-07 17:56:16 +02:00
Jehan
e0b958b22c desktop: prepare the GIMP 2.10.10 release.
Hopefully it will happen! :-)
2019-04-06 12:32:39 +02:00
Ell
2da6cefa3f Issue #2665 - Settings changes in Rectangle and Ellipse selection don't "stick"
In GimpRectangleSelectTool, update the selection upon changes to
the "antialias", "feather", "feather-radius", "round-corners", and
"corner-radius" options, so that they take effect immediately,
without having to change the selection bounds.
2019-04-06 05:22:18 -04:00
Christian Kirbach
2e5d6a6b72 Update German translation 2019-04-04 23:23:20 +00:00
Jehan
e7b8a57bec build: oups, shared module not included.
Anyway Python deps does not work yet on the master build. That's
unneeded to build nightlies with Python support. Let's drop it for now
and add it back later when we will make it work.
2019-04-04 15:25:27 +02:00