Commit Graph

3571 Commits

Author SHA1 Message Date
ff59aebbe8 pdb, plug-ins: remove the blur-gauss plug-in and add compat procedures
Add a utility function to wrap PDB compat nodes in gimp:cast-format
ops, so we can use ops that are now implemented in linear RGB for
plug-in compat procedures, which are all supposed to work on gamma
corrected RGB.
2014-05-04 22:53:29 +02:00
d0c67f84c8 plug-ins: file-pdf-save needs two return values now for the error message 2014-05-01 20:27:10 +02:00
cdd78c9b16 Fix typo 2014-05-01 14:59:28 +02:00
f6328244a2 Bug 725577 - file-pdf-save fails to export images larger than 32768 pixels
Due to a restriction in libcairo, creating surfaces larger than 32768 pixels
fails, so saving a larger file in gimp  as PDF, is rejected.
2014-04-29 17:37:25 +02:00
b883aec224 plug-ins: pass "RAW" to gimp_export_image() in file-raw-data.c
So the export logic GUI becomes debuggable.
2014-04-27 19:15:17 +02:00
740d83c70a plug-ins: fix the build in file-raw-data.c 2014-04-22 22:59:07 +02:00
c3f2a5a116 Bug 728633 - Improvements to the file-raw plugin
Export the image before saving as raw image data.
2014-04-22 22:10:09 +02:00
3e96b96640 Bug 728633 - Improvements to the file-raw plugin
Register 'data' as save extension.
2014-04-22 22:02:29 +02:00
260a4a51b1 plug-ins, pdb: remove the lens-apply plug-in and add a compat procedure 2014-04-13 21:18:35 +02:00
a5b92424b3 Bug 726761 - Alias PIX image encoding broken
save_image(): remove bogus "- 1" from the calculation of the height of
the row of tiles to save. Fixes garbage saved to the last line of all
PIX files.
2014-04-11 15:25:22 +02:00
b9d587c7d2 Bug 726761 - Alias PIX image encoding broken
save_image(): use the chosen export format's bpp, not the drawable's.
Fixed exporting of > 8 bit images.

Also make the plug-in export indexed images directly (without
requiring export conversion).
2014-04-11 15:08:49 +02:00
614c61a3dd Don't #include <glib.h> before <lcms.h>
The include claimed to be because of "inline" in the lcms header, but
that was probably lcms1, since there is no trace of inline in the
lcms2 header.
2014-04-10 20:48:22 +02:00
661317f74c libgimpwidgets: make using GimpColorProfileComboBox easier
If the passed dialog is a GimpColorProfileChooserDialog, handle its
"response" signal automatically and also destroy it when the combo box
is destroyed (before we leaked all dialogs). Remove the same callback
from all places using GimpColorProfileComboBox.
2014-04-04 17:09:54 +02:00
3f826d02fa libgimpwidgets: make GimpColorProfileComboBox use lcms
and improve gimp_color_profile_combo_box_set_active() to get the
profile's label from the ICC file if no label was provided. Simplifies
all its callers and removes code duplication.
2014-04-02 13:03:52 +02:00
59f59726e3 plug-ins: simplify the lcms format fallback code
Instead of adding multiple #else ... #endif branches for missing lcms
types, do the fallback at the end if no lcms type could be determined
for the layer's pixel format.
2014-04-02 00:14:24 +02:00
eb5bf3c2ba plug-ins: add fallbacks for all pixel formats not supported my lcms
- fall back to float for missing half float
- implement double and fallback to RGBA float for missing RGBA double
- fall back to float for everything else potentially missing
2014-03-31 17:40:15 +02:00
d7037650df libgimpcolor: add gimp_lcms_profile_get_label()
which returns a string meant to label the profile in the GUI, it's
either the profile's description, its model, or "(unnamed profile)" as
a fallback. Use the function instead of duplicating that logic
inconsistently and imcompletely all over the place.
2014-03-30 03:12:42 +02:00
67391f6d9e plug-ins: don't create bogus combo entries in lcms_icc_combo_box_new()
- verify that GimpColorConfig.rgb_profile actually is an RGB profile.
- on failure, don't assoociate the rgb_profile filename with the
  built-in sRGB profile.
2014-03-30 01:34:34 +01:00
18c0ab0a19 plug-ins: remove undo_group parameter from lcms_image_set_profile()
and simply always push an undo group, there is no harm or overhead in
nested undo groups.
2014-03-29 14:54:41 +01:00
32e47cf70d libgimpcolor: add gimp_lcms_profile_is_equal()
and remove all of our own MD5 digest code and API. is_equal() uses
lcms' own MD5 API which I missed before. Thanks Elle for pointing that
out :)
2014-03-29 10:40:47 +01:00
b3395d989e libgimpcolor: return an optional MD5 digest from gimp_lcms_create_srgb_profile()
pass NULL in most places, use the feature in the lcms.c plu-gin.
2014-03-23 23:34:47 +01:00
a0e8913a43 plug-ins: verify that GimpColorConfig.rgb_profile is actually for RGB
and remove the RGB check from all callers of lcms_image_get_profile(),
the function now returns an RGB profile or NULL. This implicitly stop
checking that 'icc-profile' actually contains an RGB profile.
2014-03-23 21:24:08 +01:00
0bdc6fbe3c plug-ins: use gimp_lcms_profile_open_*() in the lcms plug-in
And clean up stuff to pass error messages further up.
2014-03-16 15:57:14 +01:00
ebc53672cb libgimpcolor: add gimp_lcms_profile_is_rgb() and _is_cmyk()
And change all lcms code to use it.
2014-03-15 21:47:13 +01:00
4321cda30c plug-ins: simply ask the built-in sRGB profile for its strings
instead of special casing it. And some minor code cleanup.
2014-03-15 00:09:35 +01:00
89b489b9bb modules, plug-ins: use GimpColorProfileChooserDialog
instead of selfmade file choosers for picking color profiles from
disk.
2014-03-14 23:02:14 +01:00
d576ee8a6d plug-ins: use gimp_lcms_profile_get_summary() in the lcms plug-in 2014-03-14 20:26:15 +01:00
eee6fa1e4b libgimpcolor: start adding profile utility functions to gimplcms.[ch]
Add functions to get a profile's description, manufacturer, model and
copyright, and use them instead of implementing the same 10 times.

Also add a GimpColorProfile typedef which avoids both having to
include lcms globally or using a gpointer instead (which looks bad and
non-descriptive in an API).
2014-03-14 01:48:39 +01:00
cd65cc57b2 Bug 725169 - Add ICC profile copyright information to Image...
...Properties/Color Profile window

And improve the info of the bultin sRGB profile.
2014-02-26 00:12:22 +01:00
ee772d398f Bug 694340 - EPS resolution capped @ 1440 on import
Increase to 8192 which is just as arbitrary but more reasonable.
2014-02-22 09:40:49 +01:00
d296a2c08a plug-ins: Fix build with libpng versions < 1.4.
This was broken in 7c493f76f8.
2014-02-16 10:41:12 -05:00
17cadd3c38 configure, plug-ins: really make libz a hard dependency
Don't check for it as if it were optional, and error out further down
in configure.ac. Instead error out immediately and remove all other
checks and Makefile hacks.
2014-02-16 16:24:34 +01:00
7c493f76f8 Bug 721135 - Unable to export to .png - error: known incorrect sRGB profile
Some libpng errors can safely be marked as nonfatal, which is much
better than simply failing in those cases.

Thanks to John Bowler for pointing out this solution.
2014-02-15 22:55:18 -05:00
05c5ca3216 Bug 723787 - Neutral sRGB profile matching Argyllcms sRGB.icm
Add gimp_lcms_create_srgb_profile() to libgimpcolor and use it where
we used to call cmsCreate_sRGBProfile().
2014-02-09 23:10:56 +01:00
bfd8d00282 Bug 701189: Opening fuzzed .gif-file leads to crash of...
graphic interface of Linux
2014-02-08 17:10:00 +01:00
0475868147 plug-ins: port file-xmc to GEGL 2014-01-01 23:59:48 +01:00
938d8921e8 plug-ins: port file-sunras to GEGL, and globally apply some coding style 2014-01-01 22:28:08 +01:00
09c8e0cd78 plug-ins: add G_GNUC_PRINTF() to the tiff warning/error functions 2014-01-01 19:54:20 +01:00
2ea1c6e9a1 plug-ins, pdb: remove the apply-canvas plug-in and add a compat procedure 2014-01-01 19:21:00 +01:00
1a8848be87 plug-ins: fix segfault in apply-canvas 2013-12-21 15:52:09 +01:00
23f685931e file-xwd: sanity check # of colors and map entries (CVE-2013-1978)
The number of colors in an image shouldn't be higher than the number of
colormap entries. Additionally, consolidate post error cleanup in
load_image().
2013-12-04 10:59:46 +01:00
32ae0f83e5 file-xwd: sanity check colormap size (CVE-2013-1913) 2013-12-04 10:59:46 +01:00
56cdf642fc Bug 719662 - plug-in-borderaverage returns a garbage alpha value
Return a fully opaque color instead of a random-memory alpha value.
2013-12-01 23:00:24 +01:00
297ff1ea0f plug-ins: port file-csource to GIO 2013-11-29 00:05:38 +01:00
4a121c9872 plug-ins: save the metadata of the original image in file-png-save
not the one of the export duplicate.
2013-11-21 21:46:34 +01:00
a57636b874 plug-ins: use gimp_unit_is_metric() in file-tiff-save 2013-11-17 21:12:24 +01:00
d86f98c18a plug-ins: port file-pix to GIO 2013-11-17 18:18:18 +01:00
cecd3fb057 plug-ins: use the same compat loading code in file-gih and file-gbr
It was the same before, but now it's even more consistent.
2013-11-17 14:52:27 +01:00
c41c2452c5 app,pdb: add a compatibility wrapper for contrast-stretch-hsv
... and remove the old plugin
2013-11-16 16:50:49 +01:00
ea81787250 plug-ins: load very old files again in file-gih
By porting the compat loading code from 2.8, it somehow got lost
during the GEGL or GIO porting.
2013-11-16 09:43:54 +01:00