Commit Graph

10 Commits

Author SHA1 Message Date
Michael Natterer a7223bbd2d Bug 352823 - Changing image mode discards text layer information
For conversions that have no dither options (like RGB -> GRAY or u8 ->
u16), always preserve text editability, for conversions that have
dither options (like RGB -> INDEXED or u16 -> u8), give the user the
choice whether to enable dithering.
2012-11-10 18:56:44 +01:00
Michael Natterer 5dbcdef477 app: implement optional dithering when converting to lower bit depth
Add "layer_dither_type" and "mask_dither_type" to
GimpDrawable::convert_type(), pass around the dither type from the
dialog, and implement dithering using gegl:color-reduction.
2012-10-13 21:46:56 +02:00
Michael Natterer 58506568e5 app: update the progress also when converting the selection's precision 2012-10-01 13:36:50 +02:00
Michael Natterer 0ca03e8827 app: add a "Convert Precision" dialog for choosing dithering options
Does absolutely nothing yet.
2012-09-23 23:47:28 +02:00
Massimo Valentini f58518dd70 app: plug a memory leak
==7785== 96 bytes in 4 blocks are definitely lost in loss record 16,947 of 20,720
==7785==    at 0x4A0884D: malloc (/builddir/build/BUILD/valgrind-3.7.0/coregrind/m_replacemalloc/vg_replace_malloc.c:263)
==7785==    by 0x87F52DE: g_malloc (glib/glib/gmem.c:159)
==7785==    by 0x8809741: g_slice_alloc (glib/glib/gslice.c:1003)
==7785==    by 0x87EBF0D: g_list_prepend (glib/glib/glist.c:275)
==7785==    by 0x6FA596: gimp_item_stack_get_item_list (gimp/app/core/gimpitemstack.c:175)
==7785==    by 0x6D97B4: gimp_image_convert_precision (gimp/app/core/gimpimage-convert-precision.c:55)
==7785==    by 0x49B62E: image_convert_precision_cmd_callback (gimp/app/actions/image-commands.c:236)
2012-07-07 18:47:02 +02:00
Michael Natterer 373a4e7469 app: completely remove TileManager and friends (base/ and paint-funcs/)
And along with it a lot of stuff like the drawable preview cache, the
gegl tile manager backend, temporary gimp_gegl_buffer_foo() stuff, and
the remaining bits of performance.

The projection is in an evil semi-ported state which makes it work
ok-ish for stuff like layer moving, but absolutely unbearable for
painting, there is also an off-by-one rendering glitch at some zoom
levels.
2012-06-20 21:44:09 +02:00
Michael Natterer 20f3cba2b6 app: rename gimp_image_base_type() to gimp_image_get_base_type() 2012-05-07 21:57:33 +02:00
Michael Natterer 861ea7c354 app: fix comment in gimp_image_convert_precision() 2012-05-05 21:41:20 +02:00
Michael Natterer 64a4ec12d5 app: s/unsigned integer/integer/ in UI labels 2012-05-02 17:51:22 +02:00
Michael Natterer ee31359587 app: move gimp_image_convert_precision() to its own file
gimpimage-convert.c is big enough already
2012-05-02 17:51:21 +02:00