Commit Graph

3581 Commits

Author SHA1 Message Date
Andrew Worsley d7efab3daf fix missing semicolon in emboss 2016-04-18 12:45:08 +01:00
Andrew Worsley 4f99c7294a Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Remove gimp_drawable_mask_bounds() from several plug-ins

Also avoid null pointer crash by returning if called with null
drawable which appears to happen once on the initial update. Instead
prints a message for some one who might want to fix it

Change gimp_drawable_mask_intersect() to check return value

We still get some GIMP Error and Warnings but no crashes now
2016-04-17 21:42:49 +01:00
Michael Natterer ba8dd17396 plug-ins: port file-gif-save to GIO 2016-04-14 18:49:30 +01:00
Michael Natterer b85d03eaab plug-ins: cleanup in file-gif-save
From the book of stashes, chapter 42.
2016-04-14 16:54:08 +01:00
Elle Stone 96d8397114 Bug 763996 - Where appropriate, change "gamma correction" to "gamma adjustment"
Gamma correction refers to correcting how an image is displayed on
various devices. Gamma adjustment is a more general phrase that also
applies to adjusting gamma as a step in image enhancement in a
color-managed workflow.
2016-03-28 14:57:24 +02:00
Michael Natterer 47ef3be145 Initialize GValues with G_VALUE_INIT instead of { 0, } 2016-03-26 15:59:26 +01:00
Michael Natterer 1c9e5d62fc Bug 763766 - Suggest changing "Postscript" to "PostScript"
We were already using "PostScript" almost everywhere, fix the
remaining strings too.
2016-03-19 22:45:16 +01:00
Thomas Manni 3f5881875a Bug 758915 - port Tile to gegl 2016-02-16 18:56:09 +01:00
Jehan ec27b539ea plug-ins: various s/save/export/ replacement on visible strings. 2016-02-16 02:35:43 +01:00
Michael Natterer 26ff8eb40d Bug 761573 - Problem with Raw Image Loader plugin
Use g_file_query_info() to get the file's size, stat() has some
windows 64 bit problem I've forgotten.
2016-02-12 00:36:11 +01:00
Michael Natterer 48046d258a configure.ac, plug-ins: make libtiff a hard dependency
so file-tiff-load and file-tiff-save are always built. Also move them
to their own folder plug-ins/file-tiff/ because they will soon share
some common GIO code.
2015-12-02 12:33:31 +01:00
Michael Natterer 16a0421894 plug-ins, pdb: remove the blur-gauss-selective plug-in, add a PDB compat proc 2015-11-29 22:01:53 +01:00
Michael Natterer a69b68de40 plug-ins: formatting cleanup in compose/decompose 2015-11-24 23:56:54 +01:00
Elle Stone f78dec232a Bug 755270 - Decompose/Compose LAB: scaling code produces odd L, a, and b values
Decompose/compose to/from LCH: remove unconditional CLAMP (only clamp
if the component really needs clamping), change LAB AB range.
2015-11-24 12:45:32 +01:00
Michael Natterer bc980cd73a Bug 757783 - When opening linear gamma pngs or tiffs...
...many operations give wrong results

Same fix for TIFF: get the color profile first, then create a linear
image if the profile says so.
2015-11-23 22:29:06 +01:00
Michael Natterer 3cc80b0a5c Bug 757783 - When opening linear gamma pngs or tiffs...
...many operations give wrong results

Fix PNG loading to get the embedded profile first, and create a
linear RGB image if the profile says so.
2015-11-23 18:44:17 +01:00
Michael Natterer 4446954e27 Bug 757773 - Filters->Edge Detect->Neon... crashes
As in e3b24af3d0, don't use a
GimpDrawablePreview's GimpDrawable if it was not created using the
deprecated GimpDrawabl-based API. Spotted by Massimo.
2015-11-08 14:15:44 +01:00
Michael Natterer e1c4314a8e Bug 757687 - Screenshot functionality broken under Wayland
Move the screenshot plug-in to its own directory, it's about to be
split up into multiple files.
2015-11-07 15:52:44 +01:00
Michael Natterer feb0790cc4 plug-ins: file-xmc: use GeglRectangle instead of GimpParamRegion 2015-10-31 19:10:51 +01:00
Michael Natterer eb5094b9f7 plug-ins: decompose: move "run_mode" to a local scope
and some tiny cleanups.
2015-10-25 23:47:43 +01:00
Michael Natterer 0cfd6d2d01 Bug 756701 - Decomposing to HSL produces HSV layers
Fix the name of the decomposed lightness layer to "lightness", it used
to be "value" due to a copy/paste error. Spotted by Massimo.
2015-10-22 20:16:25 +02:00
Michael Natterer f5f88b8134 plug-ins: fix some compiler warnings in file-xmc
and some minor formatting cleanup.
2015-10-22 19:29:35 +02:00
Michael Natterer 7e62875d48 plug-ins: port file-xwd-save to GIO
and properly format all prototypes in the file.
2015-10-18 14:26:25 +02:00
Michael Natterer 195d5c760b plug-ins: pedantic function reordering in file-header.c 2015-10-17 23:28:45 +02:00
Michael Natterer 940349c564 plug-ins: add the legacy difference of gaussians back to the menus
until we have sorted out the differences to the new GEGL op.
2015-10-14 23:10:03 +02:00
Andrew Worsley cc9c7aa3b3 plug-ins: fix 2 bugs in fractal-trace
- crashes when computing % 0 when selection height < 100
- used y2 instead of x2 when computing width
- crash when selection in lower left corner
2015-10-10 21:43:03 +02:00
Andrew Worsley 24d844c9f1 Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Remove gimp_drawable_mask_bounds() from color-cube-analyze.c, also add
menu entry to access it.
2015-10-10 17:16:48 +02:00
Louis Benazet e7715dca35 Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Mask intersect fix for photocopy plug-in.
2015-10-10 17:13:10 +02:00
Andrew Worsley a3f2b1ab68 Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Remove gimp_drawable_mask_bounds() from border-average.c
2015-10-10 17:07:31 +02:00
Jonathan Tait 3c717ac483 Bug 756030 - file-pdf-save-multi PDB API is mis-specified
file-pdf-save-multi did not honor the PDB array passing standard.
2015-10-08 18:39:20 +02:00
Michael Natterer e3b24af3d0 plug-ins: fix crash in blur-gauss-selective.c
Must not call the deprecated gimp_drawable_preview_get_drawable() on a
preview that was not also created using the deprecated
gimp_drawable_preview_new(). Instead, pass the GimpDrawable to
preview_update() using the signal's user_data.
2015-10-08 12:15:06 +02:00
Michael Natterer 7f2d5ebbc5 plug-ins: use the new drawable_ID-based GimpAspectPreview API 2015-09-17 00:28:09 +02:00
Michael Natterer e18aae18c2 plug-ins: use the new drawable_ID-based GimpDrawablePreview API 2015-09-15 00:50:16 +02:00
Michael Natterer 9a8878ed6e plug-ins: use the new drawable_ID-based GimpZoomPreview API 2015-09-14 22:16:21 +02:00
Michael Natterer d7b2d1c372 plug-ins: fix file-tiff-load's load_rgb() which I broke two commits earlier 2015-09-13 20:20:35 +02:00
Michael Natterer 9a1f94e9b2 plug-ins: don't add alpha to all but the loaded tiff's background layer
That's not needed any longer.
2015-09-13 20:14:22 +02:00
Michael Natterer 701aff3c8a plug-ins: lots of cleanup in file-tiff-load
Move variables to local scopes, saner variable names, comment
formatting, indentation, whatnot...
2015-09-13 20:12:02 +02:00
Michael Natterer 1243e1f93b Bug 743034 - file-tiff-load crashes if I try to open a BigTIFF file
Use a Babl format that actually exists for extra channels. Makes the
plug-in load black pages from the mentioned "Rome" BigTIFF, so this
only fixes the plug-in crash but doesn't fix loading of BigTIFF
images, whatever they are...
2015-09-13 16:21:35 +02:00
Michael Natterer b430a2d0f6 Bug 750867 - loading of CCiTT4 tiff images broken
Revive and partly reimplement the code that loads indexed and b/w
images. Seems to work on the fax attached to the bug, and on a random
indexed RGB image.
2015-09-13 00:12:42 +02:00
Jehan 0593eaa7c3 plug-ins: GEGL buffers leaked when canceling gif export.
Delete the duplicated sanitized image when canceling in the gif options
dialog.
2015-09-04 18:26:35 +02:00
Jehan 6b33491ce4 plug-ins: returned value of gimp_image_get_layers() must be freed. 2015-09-04 18:24:21 +02:00
Jehan 765975dfd6 plug-ins: gif export should not carry on when sanity_check() fails.
This specific crash was only occuring when GIMP_INTERACTIVE_EXPORT=1
and canceling the first dialog. So that should not happen too often,
but well, now it's fixed…
2015-09-03 15:33:22 +02:00
Hartmut Kuhse 938f421e85 Bug 729952 - Re-opened TIFF re-exported/overwritten saved with two pages...
...one green

Don't write the TIFF thumbnail using metadata functions, instead write
it as a TIFF sub-image.
2015-08-30 20:07:27 +02:00
Michael Natterer e83d5e7090 plug-ins, pdb: remove the lcms plug-in and add PDB compat procedures 2015-08-27 22:06:25 +02:00
Michael Natterer 77dac3ea60 Bug 555562 - GIMP should ask before applying working space profile
Get rid of the "configurable RGB working space profile".

Instead, turn GimpColorConfig's "rgb-profile" property into a
"Preferred RGB profile" thing that is only a hint and never used
without explicit user interaction. Present it next to the built-in
profile in the profile combo boxes and call it "Preferred" in the
prefs dialog and its tooltip.

Most importantly, don't use it as the image's profile when the image
is not tagged with a profile. Untagged images are now always in the
sRGB or linear RGB built-in color spaces.

This commit reduces the "Apply color profile" dialog on file import to
a simple "Convert to built-in RGB", but that dialog is about to be
moved to the core and improved anyway.
2015-08-20 16:02:22 +02:00
Michael Natterer 1d37c67879 plug-ins: use the GimpColorProfile API instead of the "icc-profile" parasite 2015-08-20 11:15:26 +02:00
Michael Natterer fa5d28aad3 plug-ins, pdb: remove "set" and "set-rgb" from the lcms plug-in
and add PDB compat procedures.
2015-08-05 01:03:33 +02:00
Michael Natterer 4034157774 plug-ins: remove the "set" and "apply" dialogs from the lcms plug-in
The "apply working space profile" dialog is still there.
2015-08-04 22:45:02 +02:00
Michael Natterer 5672e80ea1 libgimpwidgets: port GimpColorProfileStore and -ComboBox to GFile
and deprecate the old filename-based API. Port everything to use the
new GFile functions.
2015-08-01 16:20:14 +02:00
João S. O. Bueno 7829177e3c plug-ins: Apply the context-background color on exporting to pdf
PDF files have no transparency, still, transparent areas of
exported images would always display white, regardless of the
current background color.
(The misbehavior was found while checking BUG #752819,
 but that is a cairo issue and is not fixed by this)
2015-07-25 03:26:56 -03:00