Commit Graph

36806 Commits

Author SHA1 Message Date
Kristian Rietveld 2f1c947abc pygimp: pyconsole: set up a default size of 80x40 characters
A default width of 80 characters makes Python help readable by default.
2016-04-29 21:35:42 +02:00
Kristian Rietveld cd5dfb8642 pygimp: pyconsole: use appropriate Pango function to estimate char width 2016-04-29 21:35:42 +02:00
Kristian Rietveld d9bb8d18f9 pygimp: pyconsole: replace raw_input builtin with modal raw input
We need to run raw_input in modal mode, such that we can return the
text that has been entered as the return value. This makes the use
of "raw_input()" within the pyconsole work as well as makes "help()"
not get stuck (it was blocking on input on stdin).
2016-04-29 21:35:42 +02:00
Kristian Rietveld 229285379b pygimp: pyconsole: comment the code a bit
So the code can be understood by mere mortals like me.
2016-04-29 21:35:42 +02:00
Kristian Rietveld a795c1c4ff pygimp: pyconsole: coding style 2016-04-29 21:35:42 +02:00
Kristian Rietveld 21a4999230 pygimp: pyconsole: remove unused method 2016-04-29 21:35:42 +02:00
Tobias Ellinghaus 3d86a6c709
plug-ins: Use GIMP's internal profile when loading EXR
... when it's appropriate.
2016-04-29 13:10:30 +02:00
Marco Ciampa 1c4fc5620f Updated Italian translation 2016-04-29 08:47:17 +02:00
João S. O. Bueno 207e904d7a Bug 765685: Disambiguates octal-escaped output in c-source image output
Fixes the plug-in output to render decimal digit
characters as octal escaped, so they can't be acidentally
combined in preceding escaped sequences. (i.e. the sequence
of values '255, 49'  is now rendered as '\377\049' instead of
 '\3771')

Thanks Steve Baker for noticing and reporting the issue.
2016-04-27 23:46:19 -03:00
Michael Natterer 52af9145d7 libgimpcolor: handle palette formats in gimp_color_profile_get_format()
Return "R'G'B'[A] u8" and "TYPE_RGB[A]_8" and babl and lcms formats.

I'm not sure which code triggered the warning about an unhandled
format, but now it handles indexed images too.
2016-04-27 00:48:23 +02:00
Michael Natterer 3a34a2b54c Bug 764320 - Xsane Gimp no device dialog
Pass the run_mode again to GIMP_EXTENSION plug-ins, this got lost in
the cleanup in commit dda06ac065.
Spotted by Massimo.
2016-04-26 16:10:08 +02:00
Tobias Ellinghaus 68b91cc9f6
plug-ins: Get an image size when creating thumbs with darktable
The reported size isn't very precise but close enough to get an idea of
what you will get. The problem is that raw files always have some unused
regions that get cropped away later.
Another source of discrepancy can be manual cropping by the user in
darktable, but there isn't much we can do about that.
2016-04-26 13:38:33 +02:00
Tobias Ellinghaus 980b08e380
plug-ins: Don't start darktable when creating thumbnails
... instead use the non-interactive darktable-cli. This is still
somewhat work in progress as the image size isn't returned yet.
2016-04-26 01:03:35 +02:00
Tobias Ellinghaus 9888824730
plug-ins: Try harder to export an image from darktable
Before there wouldn't be any intermediate file being written when
darktable sees more than one XMP file. Now the first image in its
temporary database gets exported.
2016-04-25 15:34:36 +02:00
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