Commit graph

84 commits

Author SHA1 Message Date
Elle Stone ceebfe5d01 Bug 694679 - lcms plug-in half-floating point support
Again, this time in an #ifdef: add support for half-floating point ICC
profile conversions.
2013-02-26 09:12:02 +01:00
Michael Natterer 1e6d984c66 Revert "plug-ins: add support for half-floating point ICC profile conversions to lcms"
This reverts commit fd5a017633.

We can't depend on lcms 2.4 yet.
2013-02-25 23:25:27 +01:00
Elle Stone fd5a017633 plug-ins: add support for half-floating point ICC profile conversions to lcms 2013-02-25 22:50:23 +01:00
Michael Natterer b47107123a plug-ins: fix indexed palette handling in lcms.c
gimp_image_get/set_colormap() returns/takes the number of bytes in the
colormap, not the number of colors.
2012-12-14 21:12:36 +01:00
Michael Natterer 9c371064b7 plug-ins: fix the build in lcms.c 2012-11-28 09:25:34 +01:00
Michael Natterer 97e07e6476 Bug 662739 - Port to lcms2 for icc V4 profile support
Need to copy the alpha channel manually, lcms doesn't touch it.
Fixes converting layers with alpha.
2012-11-28 00:44:46 +01:00
Michael Natterer d7ca2da6ce Bug 662739 - Port to lcms2 for icc V4 profile support
Fix undo in the lcms plugin.
2012-11-25 20:21:11 +01:00
Elle Stone e27b70aaed Bug 662739 - Port to lcms2 for icc V4 profile support
Patch from Elle, with bits from some others, that should finally
do the trick. Please everybody test this.
2012-11-25 20:12:42 +01:00
Massimo Valentini c59ab4d817 lcms: oversight 2012-09-04 17:53:06 +02:00
Michael Natterer 8bbfc9e5cf Bug 675558 - switch from lcms-1 to lcms-2
Applied modified patch from Hartmut Kuhse which ports to lcms-2.
2012-09-03 20:03:53 +02:00
Michael Natterer dcb4c6e34a plug-ins: use gtk_box_new() 2011-09-30 12:18:24 +02:00
Michael Natterer 8c4d99f883 Bug 645456 - Inconsistent window (role) naming scheme
Applied patch from Christoph Kappel which adds a "gimp-" prefix to all
plug-in dialog window roles.
2011-04-08 20:31:34 +02:00
Michael Natterer 87646e9ace libgimp: deprecate and rename the image parasite functions
in exactly the way the drawable functios were turned into item ones.
2011-03-08 13:19:21 +01:00
Michael Natterer 97a73ea83f app: use gtk_box_pack_start() to pack a dialog's toplevel container
instead of gtk_container_add()'s because otherwise the widget will not
expand in GTK+ 3.x
2011-03-04 10:44:58 +01:00
Michael Natterer 9703bed2ef libgimp: reorder the parameters of the new and unused gimp-image-select API
Make the common "image" and "operation" parameters come first.
2011-01-24 14:53:42 +01:00
Michael Natterer 29d63afbb7 pdb: remove gimp-item-to-selection again 2010-10-30 22:19:22 +02:00
Michael Natterer edf1bb794f plug-ins: use gimp_item_to_selection() instead of deprecated API 2010-09-05 23:22:17 +02:00
Javier Jardón 525347d9f6 Remove deprecated glib symbol: g_mapped_free 2009-11-09 09:28:12 +01:00
Martin Nordholts 03e9d6de71 Fix more g_mapped_file_free() warnings 2009-07-20 23:08:49 +02:00
Martin Nordholts 5ad570e3cc Fix compilation errors
Fix compilation errors with obvious fixes.
2009-07-20 12:48:05 +02:00
Michael Natterer e805cb0cf4 Use gtk_dialog_get_content_area() instead of dialog->vbox 2009-07-15 18:57:12 +02:00
Sven Neumann 12b621726a Bug 571117 – lcms plug-in crashes on broken profile
2009-03-13  Sven Neumann  <sven@gimp.org>

	Bug 571117 – lcms plug-in crashes on broken profile

	* plug-ins/common/lcms.c: don't abort on lcms errors.


svn path=/trunk/; revision=28152
2009-03-13 11:37:06 +00:00
Michael Natterer 4ea1437646 plug-ins/common/*.c plug-ins/color-rotate/color-rotate.c
2009-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c
	* plug-ins/color-rotate/color-rotate.c
	* plug-ins/file-bmp/bmp.c
	* plug-ins/file-faxg3/faxg3.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-fli/fli-gimp.c
	* plug-ins/file-ico/ico.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-psd/psd-save.c
	* plug-ins/file-psd/psd.c
	* plug-ins/file-sgi/sgi.c
	* plug-ins/file-uri/uri.c
	* plug-ins/file-xjt/xjt.c
	* plug-ins/flame/flame.c
	* plug-ins/fractal-explorer/fractal-explorer.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gimpressionist/gimp.c
	* plug-ins/gradient-flare/gradient-flare.c
	* plug-ins/help-browser/help-browser.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/lighting/lighting-main.c
	* plug-ins/map-object/map-object-main.c
	* plug-ins/maze/maze.c
	* plug-ins/metadata/metadata.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/print.c
	* plug-ins/pygimp/gimpfu.py
	* plug-ins/script-fu/script-fu-script.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/selection-to-path/selection-to-path.c
	* plug-ins/twain/twain.c
	* plug-ins/win-snap/winsnap.c: document the "run-mode" parameter
	as we document enums for core procedures.


svn path=/trunk/; revision=27922
2009-01-19 20:11:36 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann cc7222d8e4 added missing include.
2008-11-04  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplay-foreach.c: added missing include.

	* app/actions/debug-commands.c
	* plug-ins/common/lcms.c
	* plug-ins/common/mail.c
	* plug-ins/file-bmp/bmp-write.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-uri/uri.c
	* plug-ins/help/gimphelpdomain.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/print/print.c: fixed use of g_message() with literal
	strings.


svn path=/trunk/; revision=27551
2008-11-04 14:05:24 +00:00
Sven Neumann 61ae0c5fc6 flush the displays for all run modes but GIMP_RUN_NONINTERACTIVE
svn path=/trunk/; revision=26982
2008-09-17 22:41:51 +00:00
Sven Neumann 891115e689 call gimp_displays_flush() at the end of all interactive uses. Fixes bug
2008-09-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (run): call gimp_displays_flush() at 
the
	end of all interactive uses. Fixes bug #552104.


svn path=/trunk/; revision=26980
2008-09-17 22:11:31 +00:00
Sven Neumann d1f00eb6a0 flush the displays after closing the undo group. Should fix bug #552104.
2008-09-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_image_apply_profile): flush the
	displays after closing the undo group. Should fix bug #552104.


svn path=/trunk/; revision=26938
2008-09-13 12:09:53 +00:00
Michael Natterer e4eec5b5b1 check for lcms with PKG_CHECK_MODULES(). Remove check for <lcms.h> vs.
2008-08-11  Michael Natterer  <mitch@gimp.org>

	* configure.in: check for lcms with PKG_CHECK_MODULES(). Remove
	check for <lcms.h> vs. <lsmc/lsmc.h> because the pc file should
	give us the right location now.

	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/colorsel_cmyk_lcms.c
	* plug-ins/file-jpeg/jpeg-load.c
	* plug-ins/common/lcms.c: #include <lcms.h> and nothing else.

	* modules/Makefile.am
	* plug-ins/file-jpeg/Makefile.am
	* plug-ins/common/plugin-defs.pl: add LCMS_CFLAGS where appropriate.

	* plug-ins/common/Makefile.am: regenerated.


svn path=/trunk/; revision=26503
2008-08-11 17:28:41 +00:00
Sven Neumann 9c9157039b fixed use of GChecksum.
2008-03-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_calculate_checksum): fixed use of
	GChecksum.


svn path=/trunk/; revision=25301
2008-03-29 16:46:17 +00:00
Mukund Sivaraman 1a0db1b5bc gimp_md5_get_digest() is deprecated; using GChecksum instead.
2008-03-28  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/lcms.c: gimp_md5_get_digest() is deprecated;
        using GChecksum instead.


svn path=/trunk/; revision=25294
2008-03-29 02:28:39 +00:00
Sven Neumann ce0734c83a fixed crash on missing profile (bug #512529).
2008-01-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_dialog): fixed crash on missing
	profile (bug #512529).

svn path=/trunk/; revision=24733
2008-01-28 17:27:50 +00:00
Sven Neumann 9c4ec2ec2f plug-ins/common/lcms.c (lcms_load_profile) fixed error messages.
2008-01-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_load_profile)
	* plug-ins/common/wmf.c (load_image): fixed error messages.

svn path=/trunk/; revision=24732
2008-01-28 17:04:46 +00:00
Michael Natterer 31a5214fd5 app/base/tile-manager.c use G_STRLOC instead of G_GNUC_FUNCTION (which is
2008-01-28  Michael Natterer  <mitch@gimp.org>

	* app/base/tile-manager.c
	* plug-ins/common/lcms.c: use G_STRLOC instead of
	G_GNUC_FUNCTION (which is now deprecated).


svn path=/trunk/; revision=24727
2008-01-28 13:19:42 +00:00
Sven Neumann b4f812491f modules/cdisplay_lcms.c modules/cdisplay_proof.c
2007-10-04  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/colorsel_cmyk_lcms.c
	* plug-ins/common/lcms.c 
	* plug-ins/jpeg/jpeg-load.c: use cmsFLAGS_BLACKPOINTCOMPENSATION
	instead of the equivalent cmsFLAGS_WHITEBLACKCOMPENSATION.

svn path=/trunk/; revision=23724
2007-10-04 14:21:55 +00:00
Sven Neumann b6bc110c22 use the display rendering intent as set in the user's color management
2007-10-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: use the display rendering intent as 
set
	in the user's color management preferences as the default for 
the
	color conversion. Default to using black point compensation if 
the
	rendering intent is relative colorimetric (bug #475983).


svn path=/trunk/; revision=23719
2007-10-03 13:43:50 +00:00
Sven Neumann 85deee0aef don't create nested undo groups.
2007-09-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: don't create nested undo groups.


svn path=/trunk/; revision=23662
2007-09-26 19:29:54 +00:00
Sven Neumann f1ce484ab2 marked blurbs as translatable.
2007-09-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: marked blurbs as translatable.


svn path=/trunk/; revision=23631
2007-09-23 18:30:31 +00:00
Sven Neumann 8c99fcc50e remember color conversion parameters (bug #475966).
2007-09-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: remember color conversion parameters
	(bug #475966).

svn path=/trunk/; revision=23507
2007-09-12 09:24:54 +00:00
Sven Neumann 471eed6bab fixed use of black-point-compensation parameter (bug #475952).
2007-09-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: fixed use of black-point-compensation
	parameter (bug #475952).


svn path=/trunk/; revision=23504
2007-09-12 06:21:05 +00:00
Sven Neumann 563bb6fe80 allow to specify rendering intent and black point compensation. Fixes bug
2007-09-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: allow to specify rendering intent and 
	black point compensation. Fixes bug #474787.

svn path=/trunk/; revision=23497
2007-09-11 09:37:38 +00:00
Sven Neumann c35f4644da copy the alpha channel to the destination region. Fixes bug #473998.
2007-09-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_drawable_transform): copy the alpha
	channel to the destination region. Fixes bug #473998.

svn path=/trunk/; revision=23491
2007-09-10 13:26:02 +00:00
Michael Natterer c53ed0aba8 gimp-selection-* procedures operate on the image_ID, not on the selection
2007-08-29  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/lcms.c (lcms_image_apply_profile):
	gimp-selection-* procedures operate on the image_ID, not on the
	selection drawable_ID itself. Fixes bug #470589. Also remove the
	saved selection channel after reloading it.


svn path=/trunk/; revision=23393
2007-08-29 11:42:38 +00:00
Sven Neumann 7cdc24d69e libgimpwidgets/gimpcolorprofilecombobox.[ch]
2007-08-14  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorprofilecombobox.[ch]
	* libgimpwidgets/gimpcolorprofilestore.[ch]
	* libgimpwidgets/gimpcolorprofilestore-private.h: changed API to
	deal with filenames instead of URIs.

	* app/widgets/gimpprofilechooserdialog.[ch]: same here.

	* app/dialogs/preferences-dialog.c
	* plug-ins/common/lcms.c: changed accordingly.


svn path=/trunk/; revision=23260
2007-08-14 22:12:37 +00:00
Sven Neumann dd7c014e09 set the URI of the profile, not the filename
svn path=/trunk/; revision=23255
2007-08-14 16:16:33 +00:00
Sven Neumann e825b7ccb1 app/dialogs/preferences-dialog.c don't unref the file-chooser dialog.
2007-08-14  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c
	* plug-ins/common/lcms.c: don't unref the file-chooser dialog.

svn path=/trunk/; revision=23254
2007-08-14 16:10:08 +00:00
Sven Neumann f3675a45ad libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h
2007-08-14  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpcolorprofilecombobox.[ch]
	* libgimpwidgets/gimpcolorprofilestore.[ch]
	* libgimpwidgets/gimpcolorprofilestore-private.h: new widget to
	select color profiles.

	* libgimpwidgets/gimpwidgets.def: updated.

	* app/widgets/gimpprofilechooserdialog.[ch]: remember the name of
	the last previewed profile.

	* app/dialogs/preferences-dialog.c: use the new color profile
	combo-box.

	* plug-ins/common/lcms.c: use the new color profile combo-box.

svn path=/trunk/; revision=23253
2007-08-14 16:01:04 +00:00
Sven Neumann 9b7db4c28d further work on the dialog.
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: further work on the dialog.



svn path=/trunk/; revision=23219
2007-08-11 19:50:58 +00:00
Sven Neumann 52531a45a5 factored out code to a utility function.
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: factored out code to a utility 
function.


svn path=/trunk/; revision=23216
2007-08-11 19:30:12 +00:00
Sven Neumann 5a748730fd don't open the destination profile twice.
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: don't open the destination profile 
twice.


svn path=/trunk/; revision=23215
2007-08-11 19:14:11 +00:00