Commit Graph

4657 Commits

Author SHA1 Message Date
John Cupitt
3ecb6d6c8b lots of refactoring
and started adding many page check
2016-11-16 14:55:24 +00:00
John Cupitt
2f53ae956a start refactoring the tiff reader
loads to a separate header struct now
2016-11-16 10:45:18 +00:00
John Cupitt
e213a9ded6 remove @fail machinery from openslideload
since openslide load errors are fatal ... see

bb0a6643f9 (commitcomment-19838911)
2016-11-16 07:41:31 +00:00
John Cupitt
3ef6a4695a start adding read many page support
but it's not easy ... we'll need to be very strict about every page
being identical if we want to share readers
2016-11-15 10:07:09 +00:00
John Cupitt
92c549e995 tiny tiff2vips cleanup 2016-11-14 09:04:17 +00:00
John Cupitt
85be55fe4f add vips_image_get_fields()
helps bindings (which struglle with vips_image_map()) get a list of
header fields

works from py, but not ruby, I guess gchar** isn't a supported type for
ruby-gnome

see https://github.com/jcupitt/libvips/issues/533
2016-11-12 16:37:13 +00:00
John Cupitt
4540a2c220 oop, rank was not allowing index == 0
the desc for the index param to rank was incorrectly banning index == 0

see https://github.com/jcupitt/libvips/issues/555
2016-11-12 15:36:45 +00:00
John Cupitt
bb0a6643f9 move @fail from jpegload into the base load class
and add fail support to csv and openslide

see https://github.com/jcupitt/libvips/issues/546
2016-11-12 15:33:35 +00:00
John Cupitt
e72d145ae9 better >4gb detection for zip dzsave
older libgsfs can't save zip64 and will fail silently for very large
output trees ... improve the slightly sketchy >4gb detection in dzsave

this a a version of the patch in https://github.com/jcupitt/libvips/pull/462
2016-11-11 16:24:18 +00:00
John Cupitt
4df18c2a33 Merge branch '8.4' 2016-11-11 12:31:18 +00:00
John Cupitt
96ef05a9d1 fix a crash in arg handling on Windows
we were not updating argc in vips.c after all calls to
g_option_context_parse_strv() on Windows, leading to a crash in some cases

see https://github.com/jcupitt/libvips/issues/553
2016-11-11 10:14:03 +00:00
John Cupitt
ab6bb83266 fix a memleak in exif parsing 2016-11-10 11:09:49 +00:00
John Cupitt
5cc9229882 bump min libwebpmux version
0.3 can't read 0.5 libwebp files argh
2016-11-10 09:20:54 +00:00
John Cupitt
bf7f1cd9a4 add some tests 2016-11-10 07:24:04 +00:00
John Cupitt
3d459a82c1 don't write webp metadata we can't read back
stops tests failing
2016-11-08 17:08:41 +00:00
John Cupitt
d5934d606a polishing 2016-11-08 14:42:54 +00:00
John Cupitt
b56b888bf0 add webp metadata write
untested, but it does compile
2016-11-08 12:30:02 +00:00
John Cupitt
47222bc1f5 move exif handling out to exif.c
now used by webpload as well
2016-11-07 12:20:56 +00:00
John Cupitt
9fdbaf288d attach webp metadata 2016-11-07 10:30:55 +00:00
John Cupitt
93ea3f8e89 testing 2016-11-07 10:01:59 +00:00
John Cupitt
6bff578fd9 remove old thumbnail code
and test thumbnail_buffer
2016-11-02 14:24:18 +00:00
John Cupitt
7d0c821a6e add tests for thumbnail 2016-11-02 13:51:09 +00:00
John Cupitt
0faedcd088 docs done 2016-11-02 11:19:08 +00:00
John Cupitt
d4b4eb44a3 works! 2016-11-02 11:07:30 +00:00
John Cupitt
efe824ec13 compiles! 2016-11-02 09:29:19 +00:00
John Cupitt
20f8d95e6c Merge branch 'master' into add-vips-thumbnail 2016-11-01 16:03:57 +00:00
John Cupitt
a96d851ff2 fix up vipsheader with complex field types
"-f name" displays a detailed form, "-a" displays a summary of each
field

fix a problem with string fields as well
2016-11-01 11:51:20 +00:00
John Cupitt
3681ce0e77 fix vipsheader with new get/set system 2016-11-01 10:14:12 +00:00
John Cupitt
b7dd72e166 start hacking 2016-10-31 11:14:54 +00:00
John Cupitt
3f1f950bff add vips_image_hasalpha() 2016-10-31 11:14:27 +00:00
John Cupitt
87928d4eba oops, failed merge 2016-10-28 17:26:13 +01:00
John Cupitt
ad5ceec322 Merge branch 'master' of github.com:jcupitt/libvips 2016-10-28 16:55:48 +01:00
John Cupitt
e715c62e27 Merge branch '8.4' 2016-10-28 16:51:43 +01:00
John Cupitt
c0ab8b0ab1 fix a warning from the test suite
we were trying to save greyscale PNGs with an RGB profile
2016-10-28 16:49:02 +01:00
John Cupitt
a7edd235c4 improve compat with ancient glibs
and fix a tiny threading leak
2016-10-28 16:25:31 +01:00
John Cupitt
8626206278 better error message for colourspace 2016-10-26 09:49:12 +01:00
John Cupitt
ccee816bef bump min pygobject version
apparently 3.12 is no longer enough :(

see

https://github.com/jcupitt/libvips/issues/199
2016-10-24 17:57:21 +01:00
John Cupitt
b12d5f8205 comment typo 2016-10-21 12:32:04 +01:00
John Cupitt
ca7b51fb9e revise header get/set
rework header.c

- built-in enum fields, like "interpretation" are handled as enums, not
  ints
- vips_image_get_*() functions always convert to the target type if they
  can
- rename "field" to "name" in the docs
- clarify docs
2016-10-20 12:41:32 +01:00
John Cupitt
0518e290f6 bump svg header test to first 300 bytes
to allow for longer comment lines
2016-10-20 09:31:35 +01:00
John Cupitt
d9c335fd91 Merge pull request #543 from lovell/svg-buffer-is-buffer-illustrator
Increase SVG buffer check length by 50 bytes
2016-10-19 22:35:21 +01:00
Lovell Fuller
de6a415832 Increase SVG buffer check length by 50 bytes
Provides support for files exported by Illustrator
2016-10-19 21:40:25 +01:00
John Cupitt
26a534eeac count threads for leak test
see https://github.com/jcupitt/libvips/issues/542
2016-10-19 10:52:18 +01:00
John Cupitt
9f97d7b4ff fix out of threads crash
we crashed if thread create failed, see

https://github.com/jcupitt/libvips/issues/542
2016-10-19 09:59:12 +01:00
John Cupitt
1a915db678 no longer need to clean up main buffers
thread-private buffers are now only on workers, no need to to start them
up or free them on the main thread
2016-10-19 09:58:13 +01:00
John Cupitt
75dee18848 Merge branch '8.4' 2016-10-18 14:23:22 +01:00
John Cupitt
d785e56372 fix error detection from DGifCloseFile()
we were not testing the return from `DGifCloseFile()` against `GIF_ERROR`,
causing spurious error reports

see https://github.com/jcupitt/libvips/issues/541
2016-10-18 14:09:18 +01:00
John Cupitt
ebecede462 fix doc typo 2016-10-18 12:48:47 +01:00
John Cupitt
fb1ff126f4 Merge pull request #540 from lovell/declspec-by-reference-ordering
cplusplus - move assignment operators outside class, enables DLL exporting
2016-10-16 09:51:44 +01:00
Lovell Fuller
e1aef0445b MSVC requires __declspec first for return by reference
Ensure consistent modifier order across all exported functions
Move assignment operators to be "outside" definitions to aid export
2016-10-15 22:02:24 +01:00