Commit Graph

7052 Commits

Author SHA1 Message Date
Nils Philippsen 6467fbf65d file-bmp: don't leak file pointer when erroring out 2013-11-07 12:20:34 +01:00
Nils Philippsen d0f7e713bb lcms: avoid dereferencing null pointers 2013-11-07 12:20:33 +01:00
Marco Ciampa 7d6f1cbc59 Small fix for Exif correct write form. 2013-11-06 15:54:57 +01:00
Michael Natterer 8812abee0a plug-ins: save the metadata of the orig_image_ID in file-jpeg-save
The image_ID might be an export image and already deleted.
2013-11-05 08:49:40 +01:00
Michael Natterer 961d03d795 Bug 709857 - Lcms plugin crashes if RGB profile does not exist
Always check the return value of lcms_load_profile(config->rgb_profile)
and use the builtin sRGB profile if it returns NULL.
2013-11-04 23:17:41 +01:00
Michael Natterer 7bd4d2678a configure, plug-ins, modules: make lcms a hard dependency 2013-11-03 21:19:51 +01:00
Michael Natterer 771293d402 configure, plug-ins: make libjpeg a hard dependency 2013-11-02 22:33:19 +01:00
Michael Natterer a76460f497 configure, plug-ins: make libpng a hard dependency 2013-11-02 17:11:21 +01:00
Michael Natterer af8cebc2f7 plug-ins: only include "libgimp/gimp.h" and "libgimp/gimpui.h" 2013-11-01 22:13:05 +01:00
Michael Natterer 3508079dcf plug-ins: add loading and saving of the image's resolution in file-pcx 2013-11-01 13:51:31 +01:00
Michael Natterer ba7acdb901 plug-ins: port colormap-remap to GEGL 2013-10-31 12:24:40 +01:00
Michael Natterer 49758867fc plug-ins: load the JPEG thumbnail using the new libgimp API 2013-10-30 00:06:05 +01:00
Michael Schumacher 8db3b4312d Global EXIF -> Exif string change (official spelling) 2013-10-29 22:48:46 +01:00
Michael Natterer 424129cc60 Bug 710974 - Convert to Color profile fails on images with layer groups
Handle layer groups recursively, and don't convert the group layer
itself.
2013-10-29 19:35:26 +01:00
Michael Natterer b60cfac840 plug-ins: move the metadata plug-in from File to Image 2013-10-29 17:37:49 +01:00
Michael Natterer 940d615218 plug-ins: trust the PSD's resolution over its metadata's resolution 2013-10-27 19:01:22 +01:00
Michael Natterer 7752873add plug-ins: trust the TIFF's resolution over its metadata's resolution
This also sortof addresses bug #691231, but fixes the issue only
indirectly by not perferring the EXIF resolution.
2013-10-27 18:52:46 +01:00
Michael Natterer c8fae1957f plug-ins: trust the TIFF's resolution over its metadata's resolution 2013-10-27 18:40:09 +01:00
Michael Natterer 658d950c6b plug-ins: trust the PNG's resolution over its metadata's resolution 2013-10-27 18:36:06 +01:00
Michael Natterer a44e06d059 plug-ins: reverse the logic for setting GimpMetadataSaveFlags
start with flags = ALL (which now includes all possible current and
future flags), and optionally *remove* individual flags instead of
adding them. This way the plug-ins default to TRUE for future flags.
2013-10-27 15:38:42 +01:00
Michael Natterer 7cbe83d911 libgimp,plug-ins: split metadata loading into prepare() and finish()
So the plug-in has the chance to decide whether it wants to trust the
metadata information (e.g. resolution). Also reorder parameters in
gimp_image_metadata_save_finish(). Change all plug-ins accordingly.
2013-10-27 15:22:35 +01:00
Michael Natterer ce2822d58f plug-ins: remove the old metadata plug-in 2013-10-27 01:15:37 +02:00
Hartmut Kuhse 21bed1e2fb Completely rewrite metadata handling using gexiv2
Based on original patches from Hartmut Kuhse and modified
by Michael Natterer. Changes include:

- remove libexif dependency and add a hard dependency on gexiv2
- typedef GExiv2Metadata to GimpMetadata to avoid having to
  include gexiv2 globally
- add basic GimpMetadata handling functions to libgimpbase
- add image and image file specific metadata functions to libgimp,
  including the exif orientation image rotate dialog
- port plug-ins to use the new APIs
- port file-tiff-save's UI to GtkBuilder
- add new plug-in "metadata" to view the image's metadata
- keep metadata around as GimpImage member in the core
- update the image's metadata on image size, resolution and precision
  changes
- obsolete the old metadata parasites
- migrate the old parasites to new GimpMetadata object on XCF load
2013-10-27 01:02:17 +02:00
Michael Natterer 30a389866a plug-ins: use image/jp2 for JPEG 2000, procedures can only have one mime-type 2013-10-22 20:36:12 +02:00
Michael Natterer a6a07dd29e plug-ins: allow non-optional extra libs in plug-ins/common
Don't make adding extra libs defined in 'libs => foo' depend
on 'optional => 1'.
2013-10-19 18:30:29 +02:00
Michael Natterer a80146c84b plug-ins: follow policy and only include <libgimp/gimp.h> in help 2013-10-15 22:41:45 +02:00
Michael Natterer 54ead10b57 plug-ins: simplify the file-jpeg file size displaying code
and display errors returned by g_file_query_info().
2013-10-12 18:53:03 +02:00
Téo Mazars f3d40dceec plug-ins,pdb: Add a compatibility wrapper for lens-distortion
... and remove the old plug-in
2013-10-11 08:48:09 +02:00
Michael Natterer 1f21a28770 Bug 703065 - Jpeg file size preview error is back
Use GIO to get the file size.
2013-10-05 00:14:14 +02:00
Michael Natterer 7de6bb8173 plug-ins: fix progress fractions in file-pat-save 2013-10-04 18:36:27 +02:00
Jehan e78c3bf3da plug-ins: the frame image in animation-play is always in RGB.
We don't care what the original image type is, because non-RGB images
(in particular indexed ones) render very badly.
gimp_layer_new_from_drawable() will automatically convert the original
layer's type to the destination image's type (RGB) while copying.
2013-10-04 23:53:03 +13:00
Jehan 7b638d72f6 plug-ins: animation-play gets the image palette for no reason. 2013-10-04 21:33:18 +13:00
Michael Natterer 01db58f6d0 plug-ins: cleanup in file-pnm 2013-10-03 22:06:24 +02:00
Michael Natterer aa7e9edc36 plug-ins: port file-p*m-save to GIO 2013-10-03 21:44:24 +02:00
Michael Natterer ec82d075b8 plug-ins: port file-pnm-load to GIO 2013-10-03 19:59:54 +02:00
Hartmut Kuhse 4a6cfd15d1 Prevents compiling error of double definition when linked to libgexiv2 2013-10-03 13:36:59 +02:00
Téo Mazars e1fe2e35cb plug-ins,pdb: Add a compatibility wrapper for edge-laplace
... and remove the old plug-in
2013-10-01 17:10:31 +02:00
Marco Ciampa 19dfcc5c9e Added internationalization macros to selection-to-path-dialog hidden parameters. 2013-09-27 13:16:55 +02:00
Téo Mazars 8e25b5407d plug-ins,pdb: Add a compatibility wrapper for noise-hsv
... and remove the old plugin
2013-09-26 19:31:13 +02:00
Marco Ciampa f3b7d23494 fix typo in message 2013-09-26 13:25:37 +02:00
Marco Ciampa af3c2f820d Revert "fix typo in message" that pushes too much - sorry
This reverts commit 0b4b8da05f.
2013-09-26 13:09:50 +02:00
Marco Ciampa 0b4b8da05f fix typo in message 2013-09-26 12:09:34 +02:00
Marco Ciampa 7f93fbc19a app: only one mnemonic letter per filter 2013-09-26 11:31:43 +02:00
Téo Mazars 5063aada1d plug-ins,pdb: Add compatibility wrappers for mosaic
and remove the old plug-in
2013-09-23 15:52:08 +02:00
Téo Mazars 4caa5a113f Bug 677275 - Mosaic Filter produces ugly artifacts
Fix this by using a real point-segment distance.
Some artifacts remains though, they must come from somewhere else.
2013-09-22 16:27:57 +02:00
Michael Henning cd4d5e6d32 plug-ins: Use the standardized value for deflate compression in tiff-save.
Ironically, the standardized value is called COMPRESSION_ADOBE_DEFLATE,
while the vendor-specific value is called COMPRESSION_DEFLATE.
2013-09-20 19:12:44 -04:00
Daniel Sabo 34c50b0fea app, plug-ins: Don't modify iter->length
The new by-row iteration doesn't re-write the length
value for each row. In general it is not safe to modify
the iterator data because the internal logic depends
on the public data, but this specific case is new.
2013-09-12 17:43:54 -07:00
Téo Mazars 6fefd5af0c plugins: Add compat wrappers for plasma.c
... and remove the old plugin.
2013-09-13 01:30:29 +02:00
Jehan d38f209e2f plug-ins - compress the PNG comment when over a given size. 2013-09-12 12:54:22 +12:00
Jehan d69b748692 Bug 707755 - reviewing PNG comment saving algorithm
Currently PNG "comment" is saved in iTXt (UTF-8) if supported, tEXt
(ISO-8859-1) otherwise. The problem is that some software out there like
ImageMagick would apparently only read tEXt comments.
Therefore the replacing algorithm is:
1/ if we would not lose any character in a conversion from UTF-8 to
ISO-8859-1, we save in tEXt, whether or not the platform supports iTXt.
2/ if we would lose comment data in the conversion while iTXt is
supported, we save in iTXt.
3/ if iTXt is not supported, we save in tEXt anyway and discard any
non-convertible character, unless the finale result is an empty string
(in which case, we don't save any comment).
2013-09-12 12:54:13 +12:00