Commit Graph

163 Commits

Author SHA1 Message Date
John Cupitt
98f4a64a86 better Vips.py class names builder 2016-01-05 08:00:40 +00:00
John Cupitt
e81900b187 bandjoin is just an instance function
we had both a class member bandjoin, and an instance member

Vips.Image.bandjoin([i1, i2, i3..])
i1.ibandjoin([i2, i3..])

this was confusing and annoying ... get rid of the class one and just
use bandjoin everywhere, so this is now the way to do it:

i1.bandjoin([i2, i3..])
2016-01-04 14:18:10 +00:00
John Cupitt
5916e25c31 rename python bandjoin as ibandjoin
oh argh class and instance methods are in the same namespace, so we have
to rename the instance one as ibandjoin

also, start adding a test for arrayjoin
2015-12-12 12:29:20 +00:00
John Cupitt
6e9834e623 add vips_arrayjoin() 2015-12-11 15:14:08 +00:00
John Cupitt
16c4eeabad python does auto complx/uncomplx
this is a bit ugly :-(
2015-11-20 16:29:43 +00:00
John Cupitt
a8b78371f8 better run_cmplx()
ready to go into Vips.py
2015-11-20 14:55:28 +00:00
John Cupitt
d27bbd6803 add mapim test
and a python mapim example
2015-11-19 11:44:58 +00:00
John Cupitt
295b18585a python uses bandjoin_const when possible
added a test case, speedup seems worthwhile
2015-11-07 20:34:56 +00:00
John Cupitt
3207cca96c make python use a logging domain
the python binding now makes it's own logger, gi.overrides.Vips. This
makes Vips play nicely with larger programs which also use logging.

See;

https://github.com/jcupitt/libvips/issues/330
2015-09-26 12:03:20 +01:00
John Cupitt
af4300ed8a fix Python new_from_array()
under some circumstances it could modify the passed-in array, now it
copies
2015-07-27 15:34:19 +01:00
John Cupitt
69fc2c1b7c getting closer ...
fix RefString handling, add a test case
2015-07-16 11:14:33 +01:00
John Cupitt
a3c881ae78 support "with Vips.Image" in Python
though it doesn't actually do anything, it looks nice
2015-06-03 15:08:02 +01:00
John Cupitt
c35e2e5427 add RefString getter
to python now unpacks VipsRefString on get_value()
2015-06-02 13:32:48 +01:00
John Cupitt
36331739ab add bandand() bandor() bandeor() to py
convenience funcs
2015-05-26 10:32:15 +01:00
John Cupitt
6bf1f8afa5 ooops, drat 2015-05-15 12:58:04 +01:00
John Cupitt
8566f3999a bug? 2015-05-14 21:50:12 +01:00
John Cupitt
bb7cbfde8d fix the draw example 2015-04-28 12:13:22 +01:00
John Cupitt
5ccb5ad70d add () overload to python
for vips_getpoint()
2015-03-01 12:15:48 +00:00
John Cupitt
5d912fdbbb add [] overload to python
index and slice image bands
2015-02-28 16:53:06 +00:00
Maurus Cuelenaere
dba1b1d81b Add ImageMagick buffer support
This commits adds buffer support for the ImageMagick backend, using the Blob
API.
2015-02-15 21:45:17 +01:00
John Cupitt
8f7c2c7110 sort out alpha going to and from 16-bit
rewritten sRGB <-> scRGB so that 16-bit alpha is scaled to float 8
2015-02-12 17:50:38 +00:00
John Cupitt
640477dc62 better python imageize
sets interpretation as well ... was causing problems with jpg save
colour transforms
2015-02-10 14:08:37 +00:00
John Cupitt
ddb43172f3 use new pyvips8 array constant syntax
also add median filter convenience function
2015-01-29 16:41:11 +00:00
John Cupitt
21b4748fe1 support 2D image array constants in py 2015-01-29 14:52:55 +00:00
John Cupitt
57196ee702 fix an operation cache bug
when testing two operations for equality, need to check that both had an
optional arg set before testing the value
2015-01-29 13:47:14 +00:00
John Cupitt
c384e2b664 finish morph
and add erode/dilate convenience functions to Vips.py
2015-01-28 21:58:08 +00:00
John Cupitt
d077d7c1fc small stuff 2014-12-27 10:00:01 +00:00
John Cupitt
a43b591e57 Merge pull request #212 from bgilbert/present
Drop dependency on Python "future" package
2014-12-27 09:43:53 +00:00
John Cupitt
b01dd59309 fix VipsBlob read
oops, forgot the .get()
2014-12-27 09:41:01 +00:00
Benjamin Gilbert
5ed7a24f0c Drop dependency on Python "future" package
It's not widely packaged in Linux distributions, and none of the VIPS
Python code requires Python 3 semantics from any of the builtins future
was replacing.
2014-12-26 21:10:55 -05:00
John Cupitt
d5f101431b modernize overrides convention 2014-12-22 11:50:59 +00:00
John Cupitt
6e6cabb6e0 better pyvips8 notes 2014-12-18 10:25:42 +00:00
John Cupitt
71bb0e81d1 better Vips.py install
more work on test_convolution
2014-12-15 18:12:47 +00:00
John Cupitt
c95088c68e tiny polish 2014-12-15 11:57:35 +00:00
John Cupitt
195fb15f5e test for missing "future" package
see https://github.com/jcupitt/libvips/issues/208

not sure why this fails silently without the extra try block
2014-12-12 15:21:58 +00:00
John Cupitt
a9109904c1 make check both py2 and py3 2014-12-12 14:50:31 +00:00
John Cupitt
b4b8b8bd96 use bytes() for VipsBlob in python3 2014-12-11 13:08:14 +00:00
John Cupitt
c3102b15bb add python3 support 2014-12-10 17:02:51 +00:00
John Cupitt
9866127e6a small cleanups 2014-12-10 15:31:22 +00:00
John Cupitt
7daa70ead3 add tiny demo prog 2014-12-10 15:03:33 +00:00
John Cupitt
9694cc8adb output ref_count in object summary
tiny Vips.py fix too
2014-12-10 09:23:51 +00:00
John Cupitt
aa6c883434 ignore missing class methods in Vips.py
thanks Ben

see https://github.com/jcupitt/libvips/issues/199
2014-12-05 12:50:53 +00:00
John Cupitt
ed6eaa4662 tiny fixes 2014-11-28 17:55:55 +00:00
John Cupitt
ee4416040b make a test suite
put the python and non-nip2 bits of the nip2 suite together

some test images too
2014-11-19 15:01:28 +00:00
John Cupitt
dda412c85f add command-line option parsing to python 2014-11-18 11:29:32 +00:00
John Cupitt
e3afa878e6 better support for drawing operations
much more mem efficient for repeated draws

doc updates too
2014-11-16 11:07:42 +00:00
John Cupitt
d25beeddac remove wrap7 class
and pyvips8 now knows about deprecated args and ops
2014-11-14 22:41:05 +00:00
John Cupitt
b40bad04bb hide deprecated args to operations in python 2014-11-14 12:19:25 +00:00
John Cupitt
865fd9da5e more docstring updates 2014-11-13 20:07:12 +00:00
John Cupitt
6a25b04974 better docstrings
you now see:

class_method(cls, *args, **kwargs) method of gi.types.GObjectMeta
instance
    make a black image
    usage:
       out = Vips.Image.black(width, height, bands = gint)

    where:
       out        - Output image, VipsImage

    required parameters:
       width      - Image width in pixels, gint
       height     - Image height in pixels, gint

    optional parameters:
       bands      - Number of bands in image, gint
2014-11-13 14:37:59 +00:00