Commit Graph

329 Commits

Author SHA1 Message Date
Abdul Chaudhry 25bfad1306
provide an option to set the default stack size on linux 2019-04-19 08:59:45 -07:00
John Cupitt c351c665a1 more fixups from the vips7 removal 2019-04-14 12:48:02 +01:00
John Cupitt bae484ba2c remove old c++ and py interfaces
Instead, use the new(er) vips8 C++ interface, and the new(er) python
interface in pypi.

https://pypi.org/project/pyvips
2019-04-12 16:27:28 +01:00
John Cupitt af0dc5265f use glib's b64 encode/decode, if available
see https://github.com/libvips/libvips/issues/1263
2019-03-20 13:51:41 +00:00
John Cupitt e14ae48a67 fix heifsave on ubuntu 18.04 2019-03-14 13:33:11 +00:00
John Cupitt 928fff5168 try to fix heifload for ubuntu 18.04 2019-03-14 13:04:26 +00:00
John Cupitt 533ddbc8b3 libheif autorotate is back
Using the new heif_image_handle_get_ispe_width() to fetch the untransformed
dimensions.

See:

https://github.com/strukturag/libheif/issues/106#issuecomment-459766087

https://github.com/libvips/libvips/issues/1247
2019-03-06 20:32:34 +00:00
John Cupitt cae57d5670 make heif load/save work with 1.3.2 2019-02-20 12:30:12 +00:00
John Cupitt 1a83605238 Merge branch 'add-heifload' 2019-02-17 17:11:14 +00:00
John Cupitt 90fef08ee0 start adding xmp/icc/exif/etc. for IM
needs to work for im6, im7 and gm, and it's not quite there yet :(
2019-02-06 16:39:14 +00:00
DarthSim cd1560c1cb vips_magicksave for GraphicsMagick 2019-02-06 00:07:30 +06:00
John Cupitt 8d5af9fe8a add xmp/ipct/icc etc. to magickload
ImageMagick supports binary metadata with `ResetImageProfileIterator()`
etc.

Implementing support gives us xmp / ipct / icc support, plus perhaps
some others.
2019-02-04 17:54:57 +00:00
John Cupitt 33fd2a48f0 basic load works
no metadata, no options
2019-01-20 11:33:12 +00:00
John Cupitt 87062c4a4f Merge branch '8.7' 2019-01-04 09:19:04 +00:00
John Cupitt 1619c8b1a1 fix memleak in magick6load
IM ExceptionInfo were not being freed correctly. This patch
adds a small wrapper function and uses it to allocate and free all IM
exception objects.

Tested with im 6.9 and gm 1.3.

See:

https://github.com/libvips/lua-vips/issues/24

https://github.com/libvips/libvips/issues/1203
2019-01-04 08:38:58 +00:00
John Cupitt 25aed749e3 start hacking in a CMYK->XYZ import
plus an embedded cmyk profile as a fallback
2018-12-21 18:05:40 +00:00
John Cupitt 582b224125 oops revert version bump 2018-12-17 13:20:14 +00:00
John Cupitt db4fe60405 fix mapim offsets
pixels were not being offset by the stencil origin, so interpolators
like bicubic could fail

thanks @erdmann

https://github.com/libvips/libvips/issues/1180
2018-12-17 12:42:34 +00:00
John Cupitt 596794c05a improve pdfium linking 2018-12-12 17:24:49 +00:00
John Cupitt 0dccfc87b6 Merge branch '8.7' 2018-12-07 14:30:00 +00:00
John Cupitt da31d0f31a fix autofit loop on non-scaleable fonts
see https://github.com/libvips/libvips/issues/1178
2018-12-07 12:57:44 +00:00
John Cupitt d4815e8b7e more info output for tmpfile open
to help diagnose problems
2018-11-21 14:26:52 +00:00
John Cupitt 801a2a7144 added anim write
compiles, but untested
2018-10-31 16:49:41 +00:00
John Cupitt 703498aa81 Merge branch '8.7' 2018-10-01 21:23:48 +01:00
John Cupitt 0fea113bbf fix build on older glibs
we were using g_str_to_ascii(), but it was only added in glib 2.40

see https://github.com/libvips/libvips/issues/1117
2018-10-01 20:15:34 +01:00
John Cupitt b552dd0503 version bump to get ready for the vips 8.8 cycle 2018-09-21 15:10:39 +01:00
John Cupitt f3de6a9521 update function list in docs
thanks janko-m

see https://github.com/jcupitt/libvips/issues/1097
2018-09-20 08:26:51 +01:00
John Cupitt 0beb5e9165 make test-suite survive make dist 2018-07-25 17:17:13 +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 35b4a1a3b5 fix mem leak in pngsave
and some reformatting and changelog notes
2018-06-20 14:20:22 +01:00
Felix Bünemann 1e68b3a486 Rename pngsave colors/colours, quantize/quantise 2018-06-19 21:32:44 +02:00
Felix Bünemann b5531cf1ed Add libimagequant detection to configure 2018-06-18 00:57:18 +02:00
John Cupitt 87b3f17846 vips7 API defaults off 2018-06-11 12:44:28 +01:00
John Cupitt 0d8a440aff fix build with magick7 2018-06-10 12:15:02 +01:00
John Cupitt 0486218ff5 don't use Ping in magickload
it's too unreliable :-( we are forced to read every time
2018-05-29 17:20:46 +01:00
John Cupitt 1a95b2df89 fix tga header read
When you ping() an image with imagemagick to get the header, some format
loaders (eg. TGA) don't set all the fields. In this case,
image->colormap was not set and that made GetImageChannelDepth() crash.

Work around this, at least in this case, by allocating a colourmap
ourselves if none is set.

see https://github.com/jcupitt/libvips/issues/980
2018-05-25 16:02:25 +01:00
John Cupitt c349b31c5f magicksave polishing
- make better use of the magick.c wrappers in magickload
- disable magicksave if ImportImagePixels() is not found, fixing build
  against GM
2018-05-18 17:40:29 +01:00
John Cupitt b085908558 remove vips7 stuff from API
You must now include vips7 support explicitly with

	#include <vips/vips7compat.h>

in your code just after including `vips.h`.

The old vips7 names, such as `Rect`, were starting to cause problems
with other packages like opencv.
2018-05-16 15:08:21 +01:00
John Cupitt fd7b04fb9d Merge branch '8.6' 2018-05-14 18:10:13 +01:00
John Cupitt f6bbfe3148 try to add a test for amzln
the gcc7.2 in amazonlinux 2018.03 seems to fail with signed constants in
vector templates ... add a configure test

see https://github.com/jcupitt/libvips/issues/975
2018-05-14 17:14:42 +01:00
Leonard Hecker 70d7dd75d2 Fixed configure not picking up JPEG_CFLAGS 2018-05-07 16:16:37 +02:00
John Cupitt 38ea5937ca more help for graphicsmagick
but still not quite there
2018-04-24 17:14:51 +01:00
John Cupitt a40382fe50 Merge branch '8.6' 2018-04-23 15:18:17 +01:00
John Cupitt 18c50c3231 typo in configure.ac 2018-04-23 15:17:53 +01:00
John Cupitt 12cbe7c2e4 some work on fixing GM
graphicsmagick + magicksave is a bit tricky :(
2018-04-23 13:44:56 +01:00
John Cupitt 05456125b6 builds, links and mostly runs 2018-04-07 17:36:52 +01:00
John Cupitt 38f459711b detects pdfium correctly
and builds without anything else breaking
2018-03-30 22:17:43 +01:00
John Cupitt 9c2ae52820 start adding pdfium tests
though they fail with link problems
2018-03-30 11:59:57 +01:00
John Cupitt 878c77a035 better handling of some fonts
fonts with very large overlapping edges copuld clip in `text`, see
https://stackoverflow.com/a/49169747/894763
2018-03-12 18:11:25 +00:00
John Cupitt e1cac22176 oop missing AC_DEFINE for libjpeg 2018-03-03 10:25:15 +00:00
John Cupitt 4a59fa652c make vips_sobel()
cut out of vips_canny()
2018-02-26 18:33:20 +00:00
John Cupitt 2349dcf110 oops, forgot to enable jpg 2018-02-22 16:34:01 +00:00
John Cupitt a9b4aeb13a Merge branch '8.6' 2018-02-21 19:01:43 +00:00
John Cupitt a9b343f29a use pkg-config to find libjpeg
fall back to FIND_JPEG if we have to, see

https://github.com/jcupitt/libvips/issues/431
2018-02-12 13:31:49 +00:00
John Cupitt bbe42e13fa version bump 2018-02-12 12:39:53 +00:00
John Cupitt 799b1e4910 fix --without-magick
it didn't interact well with the new magickload/magicksave flags, thanks
Alex

see https://github.com/jcupitt/libvips/issues/862
2018-01-24 09:28:02 +00:00
John Cupitt 1b89d62eb5 fix a race associated with sink_screen
sink_screen was not keeping a ref to its input, so in rare conditions
it could try to make a region on a dead image
2018-01-05 16:27:44 +00:00
John Cupitt 8d08255ff7 rename HAVE_MAGICK as HAVE_MAGICK6
clearer meaning
2017-12-23 17:13:44 +00:00
John Cupitt 585469b192 add configure flags for magick load and save
so you can turn load and save on and off independently
2017-12-23 16:57:36 +00:00
John Cupitt e12df167e6 Merge branch 'magicksave' of https://github.com/dlemstra/libvips into dlemstra-magicksave 2017-12-23 12:39:50 +00:00
Bernhard M. Wiedemann 0f69f0808e Use ChangeLog date instead of build date
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good.

This date call works with GNU date and BSD date.
2017-12-16 07:10:09 +01:00
John Cupitt 3c0a2e4837 fix window cycling
we were repeatedly free-ing and new-ing input mmap windows ... this made
things like zoom out on large images in nip2 much slower than they
needed to be
2017-12-10 17:37:07 +00:00
John Cupitt 5290901f86 ban gcc 5.x from vector stuff too
it seems to be easy to get internal compiler errors, thanks homm

see https://github.com/jcupitt/pyvips/issues/21
2017-10-16 17:08:07 +01:00
John Cupitt 3f22424d3b test for gcc4 and ban vectors
it has severe code gen problems, it seems

this seems to ban clang as well, unfortunately
2017-10-07 11:20:21 +01:00
John Cupitt 31851d6e54 argh maybe this time travis 2017-10-06 17:34:14 +01:00
John Cupitt 4a18bbc550 another try at testing for working vectors 2017-10-06 17:23:02 +01:00
John Cupitt a86b3e677e add another vector / scalar test 2017-10-06 17:16:22 +01:00
John Cupitt 39ff89d915 Merge branch 'master' into add-composite 2017-10-04 16:31:19 +01:00
John Cupitt e0cf15285a Merge pull request #755 from astavale/gi-updates-for-create
Update GObject introspection annotations for libvips/create directory
2017-10-03 10:56:59 +01:00
John Cupitt 54e6cdd17e fix vips7 py enable flag 2017-10-02 13:17:12 +01:00
John Cupitt fddd277995 fix --enable-pyvips7 flag 2017-10-02 13:13:46 +01:00
John Cupitt 9f62b963b9 test for C++ vector arithmetic
clang seems to have shuffle but not mixed vector and scalar
2017-10-02 10:23:06 +01:00
John Cupitt 5f16c676db test c++ shuffle 2017-10-02 09:36:07 +01:00
John Cupitt 7b9c969e39 test for vector shuffle 2017-10-02 09:22:06 +01:00
John Cupitt 99568356ab add a configure test for vector_size 2017-10-02 08:17:11 +01:00
John Cupitt 4bf99b53bc Merge pull request #760 from astavale/mosaicing
Update GObject introspection annotations for libvips/mosaicing directory
2017-10-01 19:33:59 +01:00
John Cupitt 7c1ec7744a Merge pull request #758 from astavale/gi-updates-for-histogram
Update GObject introspection annotations for libvips/histogram directory
2017-10-01 19:32:48 +01:00
John Cupitt b20f5f1459 Merge pull request #757 from astavale/gi-updates-for-freqfilt
Update GObject instrospection annotations for libvips/freqfilt directory
2017-10-01 19:32:14 +01:00
John Cupitt 0c8693659e add .cpp files to introspection sources
see https://github.com/jcupitt/libvips/pull/752
2017-10-01 19:27:17 +01:00
Alistair Thomas 5c2ceed80c Update GObject introspection annotations for libvips/mosaicing directory 2017-09-30 23:19:03 +01:00
Alistair Thomas 14679d392d Update GObject introspection annotations for libvips/histogram directory 2017-09-30 22:53:30 +01:00
Alistair Thomas db5cedf010 Update GObject instrospection annotations for libvips/freqfilt directory 2017-09-30 22:24:53 +01:00
Alistair Thomas 0563330b43 Update GObject introspection annotations for libvips/create directory 2017-09-30 20:47:39 +01:00
Alistair Thomas c24d36fc79 Update GObject introspection annotations for libvips/resample directory 2017-09-30 17:26:55 +01:00
John Cupitt e346fd639e built-in python bindings default to off
we still make a typelib by default though

use the new pyvips binding instead, "pip install pyvips"
2017-09-13 18:24:32 +01:00
John Cupitt e46a56e137 remove lcms1 support
it had bitrotted and no longer worked properly
2017-08-02 13:39:28 +01:00
John Cupitt 6343e03305 oops, missed a ==== 2017-08-02 12:07:41 +01:00
John Cupitt 302f4f2517 Merge branch '8.5' 2017-08-02 11:05:39 +01:00
John Cupitt a3b226aa9b version bump 2017-08-02 10:40:17 +01:00
John Cupitt 3278420dab version bump 2017-06-09 12:17:14 +01:00
John Cupitt 5216d75b83 Merge branch '8.5' 2017-05-19 16:16:16 +01:00
John Cupitt 5df65ec6fd fix tiff read with page > 0
could break edge tiles under some circumstances
2017-05-19 16:07:36 +01:00
John Cupitt ba129fceb3 better win32 compatibility
try to fold the patches @tumagonx maintains into libvips master, see:

https://github.com/tumagonx/pygi-mingw-patches/blob/master/vips-8.4.x.patch

still missing the bindtextdomain() patch though
2017-05-11 17:08:10 +01:00
John Cupitt 45f94fefeb oop left a merge half-merged 2017-04-23 19:22:23 +01:00
John Cupitt 4c8d83ce85 Merge branch '8.5' 2017-04-23 18:54:40 +01:00
John Cupitt 8bf0a05948 doc polishing 2017-04-23 18:52:05 +01:00
John Cupitt d8fce50284 Merge branch '8.5' 2017-04-23 09:57:02 +01:00
John Cupitt 7938903d22 don't size caches by image width
we were sizing buffers partly by image width, which could cause caches
to be too small if width changed down a pipeline

see https://github.com/jcupitt/libvips/issues/639
2017-04-23 08:31:16 +01:00