Commit Graph

36842 Commits

Author SHA1 Message Date
Michael Natterer eca44cc87d app: fix file_check_magic_list() to handle "and" matches again
where the magic is only supposed to match if all magics in the "and"
list match.
2016-04-25 01:04:07 +02:00
Michael Natterer f3502d72b3 plug-ins: add a magic for Nikon NEF files to file-darktable
...which I hope is the right one...
2016-04-25 00:35:39 +02:00
Michael Natterer 6af83a5a08 app: improve file magic matching
Change file magic matching from using a simple boolean "magic matches"
logic to using a matching quality. The quality is measured by the
number of bytes that matched.

Matching a single file procedure's magics now tries all magics and
returns the best match quality.

Searching a file procedure for a given file now tries all file
procedures and returns the one with the best match quality.

This fixes raw camera files being opened as TIFF, given a better magic
than just the generic TIFF magic is provided.
2016-04-24 23:56:57 +02:00
Michael Natterer dc3f276476 plug-ins: use the right magic for EXR files
and shorten a function name.
2016-04-24 23:31:25 +02:00
Michael Natterer 8e52057e8c plug-ins: use the right magic for Canon CR2 files
and some general code cleanup.
2016-04-24 23:30:25 +02:00
Michael Natterer 1263552f24 libgimp: don't #define TILE_HEIGHT gimp_tile_width()
Fortunately, tile width and height were alyways the same.
2016-04-24 20:04:42 +02:00
Massimo Valentini 022439e463 Bug 765492: Memory leak in gimp_brush_cache_add
g_free the lru 'unit' when removed from the cache

and keep track of the list length and last item
while looking for a duplicate already present in
the cache.
2016-04-24 19:41:22 +02:00
Michael Natterer 19738412ce app: simplify gimp_image_convert_type()
It's pretty pointless to have 5 differently-styled if(INDEXED) blocks
after each other, with zero non-INDEXED code in between.
2016-04-24 00:55:04 +02:00
Jehan 77a68e00af Bug 765459 - Artifacts symmetry painting with big brushes.
Use gegl_node_blit() instead of gegl_node_process() as proposed by
Massimo in the bug report.
2016-04-24 00:01:45 +05:30
Piotr Drąg 7433c65c84 Updated Polish translation 2016-04-23 14:19:56 +02:00
Michael Natterer 785c104c69 plug-ins: more code cleanup in file-bmp
Use GLib endian macros in bmp-save.c
2016-04-23 01:07:20 +02:00
Michael Natterer e5a669bdfc libgimpbase: fix gimp_metadata_set_from_xmp() to really expect XMP
Don't skip the first 10 bytes. That code was there to skip the magic
"GIMP_XMP_1" of the old "gimp-metadata" parasite. Instead, properly
check for that magic in xcf_load_image() and pass only the actual XMP
to gimp_metadata_set_from_xmp(). Also remove the +10 hack in file-exr.
2016-04-22 22:49:06 +02:00
Massimo Valentini a3f4c50b3e Bug 765411: CRITICAL warnings loading an xcf with...
"exif-data" parasite

To migrate old "exif-data" parasites to GimpMetadata
an exif-only jpeg file is generated in memory, but its
APP1 marker length was 2 bytes short resulting in a
CRITICAL warning:

** (gimp-2.9:9): CRITICAL **: Directory Photo: IFD exceeds data buffer, cannot read next pointer.

Properly terminating the jpeg with an EOI marker also
gets rid of the WARNING:

** (gimp-2.9:9): WARNING **: JPEG format error, rc = 5
2016-04-22 17:30:44 +02:00
Tobias Ellinghaus 4e144fea69
plug-ins: Read Xmp data from EXR files
This commit needs review as it uses an ugly hack to make
gimp_metadata_set_from_xmp() do what it wants.
2016-04-22 17:01:58 +02:00
Tobias Ellinghaus e81cef7c03
plug-ins: Read comment and Exif data from EXR files 2016-04-22 14:41:34 +02:00
Massimo Valentini 5e5fb7776c Bug 765336: CRITICAL warning loading a thumbnail-less...
tiff GIMP saved

the plugin unconditionally used to add a TIFFTAG_SUBIFD
whose number_of_sub_IFDs was wrong when the user asked
not to include a thumbnail.

Reloading the file in GIMP resulted in:

** (file-tiff:1): CRITICAL **: Directory SubImage1 with 18761 entries considered invalid; not read.
2016-04-21 18:47:54 +02:00
klausstaedtler e62d46ae80 icons: add icon prototypes
the icons in the Prototype directory are intended as a
'icon-pool' dedicated for developers, e.g. for solving
Bug 759904

All icons in there a not optimized (e.g. not pixel-perfect),
the are available as vectorial too.

Once they are in use by GIMP they will get all needed optimizations
(Pixel-Perfect, Size.... what is necessary)

Available icons are for symbolical and color icons themes and have 16x16  pixels.
2016-04-21 18:32:55 +02:00
Tobias Ellinghaus 24b9a24a66
plug-ins: Only enable darktable loading when it's installed
For now we only check if darktable is in PATH, of the right version and
supporting the featuers we need (i.e., Lua scripting). We still want to
have a way to manually specify the path to the darktable installation in
preferences I guess.
2016-04-21 11:42:50 +02:00
Elle Stone db400d558a Make grayscale profile with LAB companding curve TRC 2016-04-21 05:05:00 -04:00
Yolanda Álvarez Pérez 0467d8c861 Updated Spanish translation 2016-04-21 08:15:50 +00:00
klausstaedtler 9e8a4501c5 icons: Changes color
color-scalable
remove gradient for more crisp

gimp-tool-align
gimp-tool-flip
gimp-tool-handle-transform
gimp-tool-path
gimp-tool-perspective-clone
gimp-tool-rotate
gimp-tool-scale
gimp-tool-shear
gimp-tool-unified-transform
2016-04-20 20:12:17 +02:00
Michael Natterer eb15808e86 po-plug-ins: forgot to push this with the last commit 2016-04-20 13:57:03 +01:00
Michael Natterer f6a02b5665 plug-ins: cleanup in file-bmp
Rename files, functions, variables, remove globals, indent, foo.
2016-04-20 13:55:53 +01:00
Yolanda Álvarez Pérez e63147555b Updated Spanish translation 2016-04-20 09:18:17 +00:00
Massimo Valentini a357bfec89 Bug 765247: Foreground select tool does not respect item offsets 2016-04-20 06:48:04 +02:00
Michael Natterer 3968226644 Bug 765176 - ICC profile conversions between grayscale and RGB images
gimp_image_convert_type(): call gimp_drawable_convert_type() with
convert_profile = TRUE.
2016-04-20 04:20:58 +01:00
Michael Natterer 66525e634e app: fix wrong parameter name in gimp_drawable_real_convert_type() 2016-04-20 04:19:44 +01:00
Michael Natterer c4551cf1d2 plug-ins: fix error from manual patch applying (height instead of width) 2016-04-20 01:34:09 +01:00
Michael Natterer 4cf6dad0a0 plug-ins: port file-tiff to GIO
Using code from gegl:tiff-load and gegl:tiff-save which has a mode for
local buffering if the input/output streams don't support seeking.
Unfortunately this code is broken and is disabled for now.
2016-04-19 23:09:26 +01:00
Tobias Ellinghaus 1722e13c78
plug-ins: Fix copyright header of darktable lua script 2016-04-19 22:39:20 +02:00
Piotr Drąg d6fd58aaa3 Updated POTFILES.skip 2016-04-19 21:57:32 +02:00
klausstaedtler 554c8c6438 icons: Changes color
color-scalable
pixel-perfect 16x16
gimp-display-filter-colorblind
gimp-display-filter-gamma
gimp-display-filter-lcms
gimp-display-filter-proof
gimp-dynamics
gimp-reshow-filter
gimp-sample-point
2016-04-19 18:37:24 +02:00
Michael Natterer b4e48c7ecd plug-ins: pass GFiles around instead of filenames in file-tiff
This is no port to GIO yet.
2016-04-19 17:18:17 +01:00
Ell 76adffa943 app: clear cond and mutex after usage 2016-04-19 17:43:55 +02:00
Yolanda Álvarez Pérez 9a4f5800d4 Updated Spanish translation 2016-04-19 10:19:59 +00:00
Tobias Ellinghaus b360d5a678
plug-ins: Actually export to linear sRGB from darktable 2016-04-19 02:29:29 +01:00
Michael Natterer aebda88bd3 plug-ins: minor cleanups in file-darktable 2016-04-19 02:28:24 +01:00
Tobias Ellinghaus f89d8fcaa7
plug-ins: don't create a temp dir when using darktable 2016-04-19 02:19:39 +01:00
Tobias Ellinghaus 74a249cabe
plug-ins: Don't leak the gegl buffer in pnm loader 2016-04-19 01:20:28 +01:00
Tobias Ellinghaus fc0f42def4 plug-ins: add new plug-in file-darktable
Which loads raw files by having them developed in darktable.
Also disable NEF support in file-gegl.
2016-04-19 00:21:15 +01:00
Simon Budig 87dd280e2c pagecurl: reduce fish genocide. 2016-04-18 22:57:16 +02:00
klausstaedtler 800ef53c09 icons: Changes color
color-scalable
pixel-perfect 16x16
gimp-paste-as-new
gimp-paste-into
gimp-question
2016-04-18 22:15:26 +02:00
Andrew Worsley 69e5c553d4 Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Add mask_intersect() to pygimp that allows access to
gimp_drawable_mask_intersect() and returns an exception if there is no
overlap.
2016-04-18 21:12:51 +01:00
Simon Budig c4498e78f6 pagecurl: avoid 8 bit handling. 2016-04-18 22:09:50 +02:00
Andrew Worsley 455a91819b plug-ins: add back some menu entries for plugins
So we see what we have. Need some other way of dealing with this stuff...
2016-04-18 21:06:16 +01:00
Andrew Worsley cfa9132c4d Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Remove calls to gimp_drawable_mask_bounds() from most plug-ins.
This just leaves a python gimp interface plug-in.
2016-04-18 21:02:32 +01:00
Thomas Manni f4cb2dd881 Bug 109161 - Improve Histogram with Luminance Channel
Add a luminance channel to GimpHistogram
2016-04-18 19:35:06 +01:00
Michael Natterer 1d337877d8 plug-ins: some cleanup in file-exr 2016-04-18 19:06:41 +01:00
klausstaedtler c3efe1b75b icons: Changes
add gimp-symmetry to icon-list.mk

all vectorial themes (color & Symbolic)
add gimp-symmetry.svg to ...\scalable directory

color-scalable
pixel-perfect 16x16
gimp-symmetry
gimp-color-pick-from-screen
gimp-path
gimp-path-stroke
gimp-move-to-screen
2016-04-18 19:11:31 +02:00
Simon Budig f456565de2 pagecurl: do a pretty basic port to the gegl API. Still 8 bit though. 2016-04-18 15:21:24 +02:00