Commit Graph

5402 Commits

Author SHA1 Message Date
John Cupitt 34bb1fc83c save framework done 2018-07-06 11:53:35 +01:00
John Cupitt 76eef8912e start niftisave 2018-07-05 17:38:37 +01:00
John Cupitt b0168a3cf6 remove a copy on load 2018-07-05 15:22:11 +01:00
John Cupitt 63bb380569 fix ASCII exif tag write
sigh libexif has three different types of string write
2018-07-04 08:50:14 +01:00
John Cupitt 3a9adbcea9 seems to work
could probably add some more fields
2018-07-03 16:36:39 +01:00
John Cupitt c12cd6d2cb not quite there
trying to set EXIF_TAG_USER_COMMENT but not working
2018-07-03 14:55:47 +01:00
John Cupitt 1cc7dd6af7 start hacking 2018-07-03 10:01:14 +01:00
John Cupitt 039c716f63 revise FIND_*() macros
they should set CFLAGS, not INCLUDE
2018-07-02 20:22:41 +01:00
John Cupitt 294104da32 more TODO notes on niftiload 2018-07-02 15:15:37 +01:00
John Cupitt 06e8d1d523 load seems to work 2018-07-02 14:57:24 +01:00
John Cupitt d756705929 set EXTRASAMPLES on tiff pyr layers
we were not copying EXTRASAMPLES when copying pyr layers
2018-07-02 08:32:14 +01:00
John Cupitt 7716fa957b nifi header read done 2018-06-30 21:57:00 +01:00
John Cupitt 6dc6b4f722 add niftiload skeleton 2018-06-29 17:31:17 +01:00
John Cupitt 93881b8dec add FIND_NIFTI
looks for libniftiio
2018-06-29 16:32:28 +01:00
John Cupitt 10c4831a70 misplaced include broke the build 2018-06-20 16:19:53 +01:00
John Cupitt cb76ffb0bd break quantise out to a separate file
slightly simpler reference and memory handling too
2018-06-20 15:38:33 +01:00
John Cupitt 35b4a1a3b5 fix mem leak in pngsave
and some reformatting and changelog notes
2018-06-20 14:20:22 +01:00
John Cupitt a3780a761e
Merge pull request #1009 from felixbuenemann/8bit-png-quantization-support
8-Bit PNG Quantization Support
2018-06-20 13:09:17 +01:00
Felix Bünemann 1abc5f901a Add palette flag to trigger pngsave quantisation
and tweak docstrings.
2018-06-19 22:41:40 +02:00
Felix Bünemann 1e68b3a486 Rename pngsave colors/colours, quantize/quantise 2018-06-19 21:32:44 +02:00
Felix Bünemann c63d7f7373 Change default PNG quantization quality to 100
and improve parameter description.
2018-06-19 09:19:43 +02:00
Felix Bünemann d9d2f7b89a Add 8bpp PNG quantization support
This adds support for saving 8-Bit one band palette based PNG images
with palette based alpha channel (often called PNG8+Alpha).

The image is first converted to sRGBA and then quantized using
libimagequant controlled by the colors, Q and dither params.
2018-06-18 02:22:46 +02:00
Felix Bünemann b5531cf1ed Add libimagequant detection to configure 2018-06-18 00:57:18 +02:00
John Cupitt f5cfd7f17a
Merge pull request #1007 from felixbuenemann/verbose-pyvips-tests
Run pytest verbose on Travis CI
2018-06-14 16:58:21 +01:00
Felix Bünemann 0f9e87bc69 Run pytest verbose on Travis CI
This should make it easier to see which tests cause problems.
2018-06-14 17:40:27 +02:00
John Cupitt 1e102910cf allow osx to fail for now 2018-06-14 16:15:43 +01:00
John Cupitt 020dc980f0
Merge pull request #1005 from felixbuenemann/run-pyvips-on-travis-ci
Run pyvips test suite on Travis CI
2018-06-14 15:56:39 +01:00
Felix Bünemann eaa5cfc334 Run pyvips test suite on Travis CI
* Download pyvips version specified by PYVIPS_VERSION environment variable
  and run its test suite after the C based tests
* Fix the macOS build and use the latest Xcode/macOS versions
* Disable homebrew updates for more predictable builds
* Sync dependencies between linux and osx targets
2018-06-13 23:36:07 +02:00
John Cupitt d063a81689 fix vipssave on macOS
an open had been dropped

see https://github.com/jcupitt/libvips/issues/1004
2018-06-13 21:33:52 +01:00
John Cupitt 581e0178d2 tiffsave has region_shrink param
for new pyr shrink stuff
2018-06-13 18:16:03 +01:00
John Cupitt a373d2c876 add changelog notes for region_shrink 2018-06-13 17:36:36 +01:00
John Cupitt 8a8a093523
Merge pull request #915 from harukizaemon/region-shrink-method
WIP: Adds a region shrink method
2018-06-13 17:15:03 +01:00
John Cupitt 2c7684669f
Merge branch 'master' into region-shrink-method 2018-06-13 17:13:16 +01:00
John Cupitt 539cc0616c Merge branch '8.6' 2018-06-13 16:24:20 +01:00
John Cupitt e6edcfe20d improve accuracy of vector path 2018-06-13 16:23:21 +01:00
John Cupitt eac314b4a2
Merge pull request #1003 from felixbuenemann/fix-convolution-posterization
Fix convolution vector path posterization
2018-06-13 16:22:39 +01:00
Felix Bünemann 2041deb917 Fix convolution vector path posterization
This fixes posterization in the vector path for convolution caused by a
typo in commit eefb2dad98.

The fix was suggested by @jcupitt.
2018-06-13 17:18:55 +02:00
John Cupitt 4951040c53
Merge pull request #1002 from janko-m/fix-missing-addalpha-doc
Fix missing vips_addalpha() docs
2018-06-13 15:45:54 +01:00
Janko Marohnić d3faada6f3
Fix missing vips_addalpha() docs 2018-06-13 11:17:45 +02:00
John Cupitt 3b1e3e1841 add Mitchell kernel
see https://github.com/jcupitt/libvips/issues/966
2018-06-12 12:55:10 +01:00
John Cupitt cc29a13cc7 revise composite position code slightly
- move x/y into composite and out of composite base, have separate x/y int
params for composite2
- upsize later for a small speed improvement
- doc comment
- note in changelog

see https://github.com/jcupitt/libvips/pull/934
2018-06-11 17:04:29 +01:00
John Cupitt 8693179ef2
Merge pull request #934 from medakk/compositexy
Adding x,y arguments to vips_composite
2018-06-11 16:00:29 +01:00
John Cupitt 0e3cac1a72 make cpp overloads const
all overloads are declared const now, where possible

also revised cpp examples and ran them to check

see https://github.com/jcupitt/libvips/issues/983
2018-06-11 15:24:11 +01:00
John Cupitt ca6410e1a6 make members and getters "const" in cpp api
eg. VImage::width() is now

	int VImage::width() const;

ie. it does not alter the image objects. In factr we can mark almost all
members const.

see https://github.com/jcupitt/libvips/issues/983
2018-06-11 14:30:17 +01:00
John Cupitt 87b3f17846 vips7 API defaults off 2018-06-11 12:44:28 +01:00
John Cupitt d70c2cd918 revise README for deprecated py7 and py8
now the two older python bindings are deprecated and disabled by
default, remove notes about them from README.
2018-06-11 12:23:18 +01:00
John Cupitt af47ba964a fix make dist 2018-06-10 16:58:05 +01:00
John Cupitt 0d8a440aff fix build with magick7 2018-06-10 12:15:02 +01:00
John Cupitt fb64d3607a add @background option to pdfload
Add a "background" option to pdfload to help support PDFs with a
transparent background. For example:

	vips copy transparent.pdf[background=0] x.png

see https://github.com/jcupitt/libvips/issues/995
2018-06-08 10:28:00 +01:00
John Cupitt 495e0b2d14 bump svg header size to 1000 bytes
see https://github.com/jcupitt/libvips/pull/543
2018-06-06 08:17:08 +01:00