Commit Graph

6032 Commits

Author SHA1 Message Date
Jon Nordby 614714d980 plug-ins: Optimize OpenRaster PNG saving
Sets lower compression and disables interlacing.
On a 5 layer image of 4500x6000px this gives an order of magnitude better
save-times, with 50% increase in file size.
2010-03-13 12:23:30 +01:00
Massimo Valentini cbb815c203 Bug 600112 - blur-gauss-selective.exe crashes
Allocate buffers with some extra padding as the MMX instructions
used in matrixmult_mmx() may read more than strictly necessary.
2010-03-12 21:01:44 +01:00
Massimo Valentini bc02c2f51e Bug 599233 - Dialog of "Save as BMP" ignores changes which are not made with a mouse
Connect to GtkButton::clicked instead of GtkButton::pressed.
2010-03-11 08:42:19 +01:00
Jerry Baker 1eb50fec2e Bug 611928 - Add 'active_vectors' to pygimp
Add 'img_get_active_vectors' and 'img_set_active_vectors' to pygimp.
2010-03-07 12:34:52 +01:00
Michael Natterer 1aeb315ecf undef GTK_DISABLE_DEPRECATED in many places which undef GSEAL_ENABLE
because the widget flag access macros (e.g. GTK_WIDGET_REALIZED) are
now deprecated in GTK+ master.
2010-03-06 23:14:29 +01:00
Martin Nordholts 0f275bfdc9 plug-ins: Don't initialize va_list to NULL, it's not portable 2010-02-17 19:10:24 +01:00
Martin Nordholts ac1baa5374 plug-ins: Change MNG capability from LAYERS_AS_ANIMATION to LAYERS
When NULL is passed as format_name to gimp_export_image(), there is no
dialog where the user can make choices. Having the capability
GIMP_EXPORT_CAN_HANDLE_LAYERS_AS_ANIMATION in this case in practice
means "always merge". So to allow MNG animations, change to just
GIMP_EXPORT_CAN_HANDLE_LAYERS. We don't need to offer merging in the
export options since MNG is a format explicitly for animation, so if
there are enough layers, we'll always export as an animation.

Also set a tooltip explaining why the animation options are disabled
when they are disabled.
2010-02-16 20:02:57 +01:00
Martin Nordholts 7cdd99feac Bug 596427 - Can't export to animated GIF
Add an 'As Animation' toggle to the GIF export options. If checked,
the GIF will be written as an animation. Only enable it on images with
more than on layer though. Add the new GIFSaveVals as_animation member
last so we don't break gimp_get_data() of old data. The fix moves the
GIF options fetching to *before* gimp_export_image(). If as-animation,
we simply pass GIMP_EXPORT_CAN_HANDLE_LAYERS to capabilities so the
layers are kept.
2010-02-16 20:02:57 +01:00
Martin Nordholts d9862b21c1 plug-ins: Move save_image() code out of options fetching code for GIF
Make the save_image() code out of the options fetching code for GIF to
make this more independent.
2010-02-16 20:02:57 +01:00
Martin Nordholts 5c154c17dc plug-ins: Port file-gif-save.c to Glade + GtkBuilder 2010-02-16 20:02:56 +01:00
Martin Nordholts 84b8ec1f5c plug-ins: Minor readability improvement in GIF's save_dialog()
Add an animation_supported boolean to GIF's save_dialog().
2010-02-16 20:02:56 +01:00
Kevin Cozens 32b7b79c33 Fixed scheme struct strbuff[] size to handle long strings in register blocks 2010-02-13 15:06:12 -05:00
Kevin Cozens 77498d1587 Bug 605540 - texts displayed with gimp-message are not translated
Applied modified version of patch supplied by Eric Lamarque.
2010-02-11 16:07:58 -05:00
Michael Natterer 034bd0427f Bug 609056 - Exporting to Alias PIX format fails
Apply patch from Saul Goode which fixes a typo that made exporting to
PIX impossible.
2010-02-10 12:51:46 +01:00
Sven Neumann 8e31261caa plug-ins: fix build rules for web-browser plug-in in plugin-defs.pl 2010-02-03 20:57:11 +01:00
Sven Neumann 799a7fc5a8 script-fu: drop gimp.org header and label scripts
These scripts used to be used to create graphics for the old gimp.org
web-page that has long been redone several times. There is no point in
distributing these scripts any longer.
2010-02-03 20:54:04 +01:00
Sven Neumann edb41221c6 plug-ins: drop gee and gee-zoom plug-ins
These plug-ins used to be used as easter-eggs and have only been
available thru the PDB. Since they are not useful except for the fun
of staring at the weird code, we can as well remove them entirely.
2010-02-03 20:39:02 +01:00
Akkana Peck 36551daa19 Fix bug 590418: make chalk script-fu work.
Sobel doesn't work on layers with transparency, like text layers,
so the text layer in the chalk script needed to be merged with the
background layer beneath it.
2010-02-02 13:04:24 -08:00
Kevin Cozens cc6427e5d5 Applied patch from Saul Goode which mostly fixes bug #604587
Fixes delq when using numeric values. Fixes two bad let block declarations.
2010-01-31 18:46:21 -05:00
Sven Neumann b499d01a71 Bug 608188 - a few strings in Save as... > Raw image data dialog are always in English
Add missing call to INIT_18N().
2010-01-31 21:11:11 +01:00
Sven Neumann 48a393f44f Bug 607888 - "Fractal Explorer" string in the filter's title bar is always in English
Mark dialog title for translation.
2010-01-31 21:02:49 +01:00
Michael Natterer 2db98792dc Bug 607242 - GIMP 2.7.0 fails to build against libpng 1.4.0
Depend on the libpng version that is in debian testing (1.2.42) and
use png_set_expand_gray_1_2_4_to_8() instead of the deprecated
png_set_gray_1_2_4_to_8().
2010-01-31 11:56:36 +01:00
Jon Nordby bd8af017f5 Bug 605366 - OpenRaster support
Add basic OpenRaster support. At the very least, this allows
multi-layered .ora files to be shared between MyPaint and GIMP.
2010-01-24 09:01:33 +01:00
Michael Natterer 7175f3e883 Some more changes to build with GSEAL_ENABLE
- use more GTK+ accessors instead of struct members
- remove quite some #undef GSEAL_ENABLE from completely ported files
2010-01-15 15:35:03 +01:00
Michael Natterer d2406fd4c3 plug-ins: move the UI file to datadir/ui/plug-ins/plug-in-file-png.ui 2010-01-12 22:02:51 +01:00
Sven Neumann 9317bb4548 plug-ins: fix error reporting and a compiler warning 2010-01-12 21:12:40 +01:00
Martin Nordholts 7c32f5442a plug-ins: Check for errors when loading file-png.ui
Check for errors when loading file-png.ui. Still continue execution
though even if an error occurs, because the user can still export.
2010-01-09 20:03:58 +01:00
Sven Neumann b883d59411 Bug 606372 - Saving to .ppm fails on indexed colorspace
Don't change the pointer to the colormap and then attempt to free it.
2010-01-09 12:12:12 +01:00
Martin Nordholts 0abf5cc4f0 Use Glade + GtkBuilder for file-png.c save_dialog()
To give us experience with Glade + GtkBuilder, use it for the save
dialog in the PNG plug-in. The layout is as good as
identical. Mnemonics still works and strings are still translated.
2010-01-08 21:16:10 +01:00
Omari Stephens 11f094f565 plug-ins/pygimp: Minor style cleanup for readability
Use all the same quotation marks (", not '), switch from string slicing to
.startswith(), and fix and indentation mishap.
2009-12-29 12:52:49 +01:00
Sven Neumann f0348aff40 some minor code cleanups 2009-12-27 13:28:14 +01:00
Roman Joost 3749f2c62c Revamped the GimpXmpModelEntry object initialisation.
It is now possible to create an entry widget by using g_object_new and
provide three parameters: the schema_uri, the property name you want to
subscribe and an instance of an xmp-model.
2009-12-27 10:03:30 +01:00
Roman Joost 1c8255de59 Code cleanup.
I changed the name of the GimpXMPModelEntry, which reads now better as
GimpXmpModelEntry. I removed functions in the interface, which are not
in use anymore, because of the code improvements in the entry widget and
the XMPModel. The new entry widget is not build as a library anymore.
2009-12-27 10:03:28 +01:00
Roman Joost 9578088ce8 Set the correct icons if the entry changed a property in the XMPModel and use the new EntryWidget for the caption writer as well. 2009-12-27 10:03:26 +01:00
Roman Joost 3705c85e1e Implemented better signal handling for property-changed events.
The XMPModel listens now on the row-changed event and checks if the row
belong to a property or schema change. If a property change occured a
detailed property-changed signal is emitted. A detailed schema-changed
signal is currently not emitted, because not implemented.
2009-12-27 10:03:23 +01:00
Roman Joost a13e4692fb Registered new GimpXMPModelEntry, connected it with the XMPModel.
The new entry widget now makes use of the detailed signal from the
XMPModel.
2009-12-27 10:03:19 +01:00
Sven Neumann e8ff034ab5 Bug 605237 - the "Antialiasing..." message in the progress bar does not show translated
Add missing call to INIT_I18N().
2009-12-23 23:56:45 +01:00
Nils Philippsen b7ae59e9a4 SGI: allocate memory more consistently
Allocate memory for both pixels and rows in the same way to make the
code easier understandable.
2009-12-09 17:11:21 +01:00
Simon Budig 4d9724f2f6 SGI: fix out of bounds writes
The functions read_rle8() and read_rle16() didn't check if the addresses
to which they wrote are in bounds when expanding runlength encoded data.
2009-12-09 17:09:27 +01:00
Nils Philippsen 838be627be SGI: cast allocation calculations
In order to avoid overflows when calculating needed memory, cast the
first variable used into a large enough type so the whole calculation is
done in that type.
2009-12-09 17:09:17 +01:00
Nils Philippsen daaf1d2b97 SGI: sanitize input data
Refuse nonsensical xsize, ysize, zsize values.
2009-12-09 17:07:54 +01:00
Nils Philippsen 5aa82f3b6d PAT: sanitize input data
Guard against bogus values of ph.width, ph.height and document why there
are no allocation overflows.
2009-12-09 17:04:45 +01:00
Nils Philippsen b053021a29 GBR: more input data sanitation
Guard against bh.width or bh.height > GIMP_MAX_IMAGE_SIZE, only allow
valid values of bh.bytes.
2009-12-09 17:01:34 +01:00
Nils Philippsen 869dcd7be1 GBR: sanitize input data
Guard against bogus zero width, height, bytes and allocation overflows.
2009-12-09 17:01:34 +01:00
Nils Philippsen a9671395f6 PCX: Avoid allocation overflows.
Multiplying gint values may overflow unless cast into a larger type.
2009-12-09 16:32:29 +01:00
Nils Philippsen ed7f48be05 PCX: sanitize input data
Harden PCX plugin against bad width, height.
2009-12-09 15:40:13 +01:00
Alexandre Prokoudine fd3ab6ac2b Normalized naming of the file type, added missing , in sentences, fixed a typo 2009-11-30 03:31:35 +03:00
Michael Natterer 825fab3dd0 Bug 602761 - plug-in-grid: Parameters Horizontal/Vertical Spacing and Horizontal/Vertical Offset are reversed
Add "Lines" to the "Horizontal" and "Vertical" labels to clarify
what exactly is affected.
2009-11-24 14:58:28 +01:00
Michael Natterer 028b66beba Bug 602761 - plug-in-grid: Parameters Horizontal/Vertical Spacing and Horizontal/Vertical Offset are reversed
Revert commits bc099a98f3 and
c77781de89 from Jul 27 2006;
also changed refval boundaries of the "width" size entries
in the spirit of the original fix, only reversed.

Rationale: the "horizontal" parameters all have to affect the
horizontal *lines*, so have an effect in *vertical* direction.

Will commit a label change on top to clarify this.
2009-11-24 14:49:17 +01:00
Mircea Purdea 85b8d9668e Modified UI to include default timing
This patch makes two modifications to the UI: listing in the
'Playback speed' combo was changed from percentage values to X
factors, and a new combo was added for 'Default framerate'. The
latter includes common framerates which are used to define the
default duration on unmarked frames. Due to the way in which the
GTK+ timeout function is defined, the framerates and duration values
for this new combo use rounded integer values.
2009-11-20 20:56:09 +01:00