Commit Graph

5340 Commits

Author SHA1 Message Date
John Cupitt 039c716f63 revise FIND_*() macros
they should set CFLAGS, not INCLUDE
2018-07-02 20:22:41 +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 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
John Cupitt 5ec605c98c Merge branch '8.6' 2018-06-01 23:05:16 +01:00
John Cupitt a3394dc756 fix webp metadata save with webpmux
see https://github.com/jcupitt/libvips/pull/989
2018-06-01 23:01:33 +01:00
John Cupitt abdd0b977c
Merge pull request #989 from lovell/webp-metadata
Ensure WebP can add metadata when compiled with libwebpmux
2018-06-01 22:33:55 +01:00
Lovell Fuller 8e658d3a06 Ensure WebP can add metadata when compiled with libwebpmux 2018-06-01 20:35:16 +01:00
John Cupitt 892fa2eeba Merge branch 'master' of github.com:jcupitt/libvips 2018-06-01 19:46:42 +01:00
John Cupitt e9aaedc60a fix some compiler warnings
from the msvc patch
2018-06-01 19:44:43 +01:00
John Cupitt 0c8552d3fc fix some compiler warnings
from the MSVC patches, and add a changelog line
2018-06-01 16:02:09 +01:00
John Cupitt 364a5daafc
Merge pull request #988 from angelmixu/vs2017
Fixes for being able to build libvips in Visual Studio 2017 with an external project
2018-06-01 12:43:58 +01:00
Angel Sánchez 7125608904 WinSDK stdlib.h has only abs function for int, long, long long and __int64 parameteres, cstdlib has the abs function with a double parameter 2018-05-31 14:00:35 +02:00
Angel Sánchez 258311cec2 performing arithmetic on a void* is not in the standard C, GCC uses an extension for using it, in VS2017 this is non-existant, so the recommended way is to cast to char* to perform increments on the pointer 2018-05-31 13:53:31 +02:00
Angel Sánchez 3282e464a1 added DLL export macro for exporting symbols in VS2017 2018-05-31 13:51:21 +02:00
Angel Sánchez 256cf494a3 use VIPS_PI instead of M_PI as the former is already defined, added missing includes with their macro protection 2018-05-31 13:50:50 +02:00