Commit Graph

7329 Commits

Author SHA1 Message Date
f72f8f20e5 Bug 751089: Part PNG files are not opened properly 2015-06-30 19:42:07 +02:00
82223783a3 plug-ins, pdb: remove the bump-map plug-in and add 2 PDB compat procs 2015-06-30 12:02:48 +02:00
3436ae4674 plug-ins, pdb: remove the displace plug-in and add 2 PDB compat procs 2015-06-30 10:02:28 +02:00
925ee21750 Bug 750594 - Colors in PSD files are far lighter on import and far darker on export
GIMP's PSD plugin was assuming that colors in PSD files are linearly interpolated
on both export and import. This commit fixes the issue by doing the following:

- when importing, assume the colors are gamma interpolated in the entire image
- when importing and exporting, treat the colors in each layer as gamma interpolated
- when importing and exporting, treat indexed colors as actually indexed colors
- when exporting, treat the interpolation in the channels and masks as linearly interpolated
2015-06-24 19:02:17 +02:00
6138b58f14 file-psd: use correct size for high bit depth extra channels
it was missing a '* bps' in the size of data passed to GEGL
and the lower half of an extra-channel from a 16bit psd
appeared as garbage in GIMP
2015-06-19 18:58:39 +02:00
ba1318dda9 app, menus, plug-ins: add new Submenu Image -> Color Management
and move the color profile menu entries there. Add a mapping so 3rd
party plug-ins get moved to the new location automatically.

Also, add a separator after "Duplicate" and move the "Transform"
submenu to the top of the group that has "Scale", "Resize" etc.
2015-06-15 13:20:04 +02:00
b07cf7fbee file-psd: improve high bit depth and compression support
see:
Bug 750729 - Importing *.PSDs with greater than
 8-bit depth lose their masks and appear funny
2015-06-13 18:33:00 +02:00
769bc933d4 plug-ins, pdb: remove the wind plug-in and add a PDB compat proc 2015-06-11 11:31:36 +02:00
f279fd02da plug-ins: use gimp_image_convert_color_profile() in lcms.c 2015-06-10 02:05:14 +02:00
1615252ced plug-ins: get rid of GtkObject in jpeg-save.c
Reduces the diff in gtk3-port, and was wrong in some cases anyway.
2015-06-09 23:56:35 +02:00
d1102d2be9 pdb, plug-ins: remove two procedures from lcms.c and add PDB compat procs
The lcms plug-in is on its way out: add compat procedures implementing
plug-in-icc-profile-info and plug-in-icc-profile-file-info and remove
that code from lcms.c.
2015-06-07 12:52:37 +02:00
0d01cfd56b plug-ins: use gimp_image_get_effective_color_profile() in the lcms plug-in 2015-06-07 01:58:10 +02:00
844c4ec22b Bug 750473 - Replace `quote' by 'quote'
In the gradient-flare plug-in.
2015-06-07 00:57:02 +02:00
87cfbd8d21 plug-ins: use gimp_image_set_color_profile() in the lcms plug-in 2015-06-06 17:05:00 +02:00
5efab4c99b plug-ins: use gimp_image_get_color_profile() in the lcms plug-in 2015-06-05 13:21:56 +02:00
1ce7fc6c77 Bug 747407 - Update use of gimp-desaturate PDB.
gimp-desaturate and gimp-brightness-contrast usage
replaced with gimp-drawable-* based calls.

gimp-drawable-desaturate calls updated to use
desaturate mode (DESATURATE-LIGHTNESS) where it
was not specified.

gimp-drawble-brightness-contrast values scaled from
previous -127/+127 range to current -0.5/0.5 range.
2015-06-03 22:31:20 -04:00
3565b33019 libgimpconfig: rename the new GimpColorConfig profile accessor functions
gimp_color_config_get_foo_profile() -> get_foo_color_profile()

because the old names clash with possible future accessors for the raw
filename properties.
2015-06-03 09:57:34 +02:00
4910c28957 libgimpcolor: rename the gimp_lcms_*() functions to gimp_color_profile_*()
because it doesn't make sense to call the typedef GimpColorProfile
but the function namespace gimp_lcms_*().
2015-06-03 09:41:23 +02:00
08b19a9bbc plug-ins: minor simplifications because GimpColorConfig has an API now 2015-05-26 08:09:29 +02:00
7e6320497e follow gegl api changes from commit af5361ca8d, with an abyss policy argument
to gegl_buffer_copy.
2015-05-25 01:27:31 +02:00
f939818c4d plug-ins: use gimp_lcms_get_format() in the lcms plug-in 2015-05-08 12:53:43 +02:00
6c800db1cc Use the newly added profile utility functions all over the place 2015-05-06 16:38:57 +02:00
b6946af0e1 Bug 738952 - Invalid syntax for (cond) causes a segfault
Segfault in script-fu, spotted by Pedro Gimeno.
2015-05-04 20:04:13 +02:00
b52c0657ae plug-ins: use the image's name for the metadata dialog's title
not its URI's basename. The name is the same string that is shown in
the image window title.
2015-05-02 16:31:36 -04:00
34c788d34e plug-ins: fix indentation of calls to read_channel_data() in psd-load.c 2015-05-01 16:36:51 -04:00
c6ac3550d3 plug-ins: replace ">> 3" by "/ 8" in psd-load.c 2015-05-01 16:31:21 -04:00
cf4cc504cf plug-ins: set G_LOG_DOMAIN in file-psd so it's possible to see the debug output 2015-05-01 16:19:52 -04:00
e6703aa6b8 plug-ins, pdb: remove the papertile plug-in and add a PDB compat proc 2015-04-30 17:18:01 -04:00
bc4cf9918f Bug 673501 - Issue with Overlay
GIMP's OVERLAY mode was identical to SOFTLIGHT. This commit fixes the
issue and introduces a NEW_OVERLAY mode and enum value.

- change gimp:overlay-mode to be a real (svg-ish) overlay mode
- when compositing, map OVERLAY to gimp:softlight-mode
- when compisiting, map NEW_OVERLAY to gimp:overlay-mode
- bump the XCF version when NEW_OVERLAY is used
- map OVERLAY to SOFTLIGHT when loading and saving XCF
- map OVERLAY to softlight in all PDB setters
- map OVERLAY to softlight when deserializing a GimpContext
- change all paint mode menus to show an entry for NEW_OVERLAY
  instead of OVERLAY
- change PSP, PSD and OpenRaster to use NEW_OVERLAY

These changes should (redundantly) make sure that no OVERLAY enum
value is used in the core any longer because it gets mapped to
SOFTLIGHT at all entry points, with the downside of introducing a
setter/getter asymmetry when OVERLAY was set in a PDB api.
2015-04-29 13:32:58 -04:00
97bbd6330d Bug 747389 - Adjust maximum zoom for animation-play plugin up slightly
Change maximum zoom from 300% to 400%, improves usability for sprite
or tile animations.
2015-04-27 23:28:59 -04:00
cc042b35d2 Bug 748270 - ripply-anim.scm does not handle transparent backgrounds
Replace the script by a modernized re-write, which also handles layers
with alpha.
2015-04-26 22:22:00 -04:00
48618b88dc plug-ins: update file-psd/.gitignore 2015-04-26 15:50:13 -04:00
37c8e5602d plug-ins: merge file-psd-load and file-psd-save into one binary file-psd
which share the psd.c file for query() and run(), instead of having
save's stuff commented out in psd.c, and having it duplicated in
psd-save.c for the separate binary.
2015-04-26 15:37:31 -04:00
68ba2037c9 Bug 748488 - Unable to export to *.psd
Fix multiple small but crashing bugs:

- call gegl_init()
- gegl_buffer_get()'s scale must be 1.0 not 0
- don't unref the metadata object twice
2015-04-26 15:06:16 -04:00
3d3f1d6855 Bug 748487 - Thumbnails sometimes don't render correctly with *.PSD files
Using the right Babl format (JPEG previews don't have an alpha
channel), and fixing the main scanline loading loop (which was totally
busted) make the PSD previews look like images.
2015-04-26 13:31:01 -04:00
b42e764d9c Bug 698859: PSD import filter: opening a PSD file causes...
...file-psd-load segfault.

Fix loading of PSDs where the number of "end group" markers doesn't
match the number of "start group" markers, which seems to be what is
saved by Photoshop in some cases/versions/whatever.
2015-04-25 23:26:30 -04:00
9c5ef53c66 plug-ins: convert tabs to spaces in file-psd/psd-load.c 2015-04-25 23:20:00 -04:00
7c4f3f02c7 Bug 747156 - Gimp Development version crashes on processing masks from psds
Fix the other pixel format issue in this bug: split up
get_pixel_format() into 3 functions get_layer,channel,mask_format() so
we use the right one for the right drawable type, get_layer_format()
has an "alpha" parameter that is taken from the loaded layer instead
of from the PSDimage struct.
2015-04-25 23:02:54 -04:00
0d7d96d09f Bug 747156 - Gimp Development version crashes on processing masks from psds
Don't use the image's layer format to load layer mask and channels,
use a grayscale format instead.
2015-04-19 00:16:57 +02:00
3cda160fc1 plug-ins: the "icc-profile" parasite must be undoable 2015-04-18 23:57:10 +02:00
cd68967b06 PLUGINS: Adds UI consistence to jpeg-save dialog. Fixes #747054 2015-03-31 18:19:55 -03:00
c90bcccd3a plug-ins: use gtk_window_set_icon_name() in the help browser
instead of loading all icons from the theme manually and setting them
as icon_list-.
2015-03-29 21:42:03 +02:00
e1baaa0677 Bug 742821 - Grayscale-mode image malformed when exported as planar raw image data
Fix saving of planar data by taking the actual number of components of
the drawable into account, instead of always assuming 3 (RGB).
2015-03-04 22:32:07 +01:00
573f0f69bb plug-ins, pdb: remove the edge plug-in and add a PDB compat procedure 2015-03-03 23:18:53 +01:00
783bbab8a8 plug-ins: fix lcms.c plug-in half conversion 2015-02-27 19:14:11 +01:00
0fad7bb126 openraster: Implements exporting and loading group layers.
This preserves the layer structure and
brings it in pair to MyPaint development branch
(allowing interchange of .ora files with group layers).

Previous behavior on load was oppening all
sub-layers in a flat-space, with no groups,
and flatten layer groups on export.

The implemented behavior accords to the
openraster spec.
2015-02-26 11:37:34 -03:00
1d5bffd1c2 Fix clang complaining about missing void in function prototypes. 2015-02-23 15:12:33 -08:00
f4a24478bd openraster: filesystem encoding could return None - defaults to utf-8 2015-02-22 12:47:47 -03:00
78df196f12 pygimp: added new drawable.get_data method 2015-02-21 02:32:43 -02:00
d965c7cab2 pygimp: add 'precision' property to Image 2015-02-21 02:32:43 -02:00