Commit Graph

4247 Commits

Author SHA1 Message Date
John Cupitt
e439c5f78f add .svg.gz suffix
allow .x.y suffixes
2016-08-01 14:57:33 +01:00
John Cupitt
9c75fc709b Merge branch 'felixbuenemann-add-svgload-svgz-detection' 2016-08-01 14:30:32 +01:00
John Cupitt
b0e3035590 small cleanups to svgz support 2016-08-01 14:28:35 +01:00
John Cupitt
fe615af233 Merge branch 'add-svgload-svgz-detection' of https://github.com/felixbuenemann/libvips into felixbuenemann-add-svgload-svgz-detection 2016-08-01 12:09:35 +01:00
John Cupitt
b6768a7e0f small speedup for reduceh 2016-08-01 12:04:15 +01:00
John Cupitt
595f18cf64 tiny speedup for vipsthumbnail --linear
use scrgb for working space in vipsthumbnail, was xyz
2016-08-01 08:43:53 +01:00
John Cupitt
5637971a36 support --strip for pngsave 2016-07-31 10:34:12 +01:00
John Cupitt
b5781a5760 Merge branch '8.3' 2016-07-30 10:57:40 +01:00
John Cupitt
88148318eb fix performance regression
the extra check on bandfmt in sizeof() in 8.3.2 was causing some performance
problems ... move the check to file read, so we only do it once
per image, not once per pixel or scanline

thanks Lovell!
2016-07-30 10:51:54 +01:00
John Cupitt
920f2ea488 tiny py stuff 2016-07-29 15:25:28 +01:00
John Cupitt
7c55def6d7 remove error msg from start fail
just a debugging thing now
2016-07-29 15:13:59 +01:00
John Cupitt
d78f87702d missing unref in cpp binding
operation was not unreffed if build failed
2016-07-29 15:09:53 +01:00
John Cupitt
bd9cc25278 tiny 2016-07-29 10:16:33 +01:00
John Cupitt
d8381c73da more improvements to error handling during eval
we were dropping the error buffer in tilecache, thanks David
2016-07-28 09:46:10 +01:00
John Cupitt
394fbce999 fix docs for vips_text()
oops, it's align, not alignment argh

thanks gargsms
2016-07-27 23:02:28 +01:00
John Cupitt
54aea13a8c type comments for vips_text() 2016-07-27 17:43:28 +01:00
John Cupitt
d388f666cb fix tests 2016-07-26 17:28:54 +01:00
John Cupitt
e2eb1b8c12 better gif loader
- transparency was broken if image had no extension block
- load image to memory, test for transparency and mono/colour, write 1,
  2, 3, or 4 band image to output, depending on what we found
2016-07-26 16:19:28 +01:00
John Cupitt
e939103936 Merge branch 'master' into add-worley 2016-07-24 14:47:33 +01:00
John Cupitt
2dc43198e4 final fixups 2016-07-24 14:47:22 +01:00
John Cupitt
6db9a2fdf9 better smoothing for perlin 2016-07-24 12:58:45 +01:00
John Cupitt
c469bb3983 perlin sort-of works 2016-07-24 11:46:42 +01:00
John Cupitt
5bbeac7eff Merge branch '8.3' 2016-07-21 07:42:09 +01:00
John Cupitt
3efee94e19 fix possible out of bounds read in tiff2vips
reading a malformed tiff file from a buffer could trigger out of bounds
read

thanks Matt Richards
2016-07-21 07:40:33 +01:00
John Cupitt
99766dbd83 better hash for worley 2016-07-19 12:29:36 +01:00
John Cupitt
e14c97359a done!
perlin next I guess
2016-07-19 11:53:56 +01:00
John Cupitt
dac671439c kind-of working 2016-07-19 10:57:21 +01:00
John Cupitt
9c18f1b4d5 yet mmore doc fixes
classes are working again in gtk-doc, yay
2016-07-13 22:39:16 +01:00
John Cupitt
b814baa78c fix various small doc problems 2016-07-13 17:07:26 +01:00
John Cupitt
23d9bad581 doc improvements 2016-07-13 09:24:41 +01:00
John Cupitt
097ecd07c1 doc improvements 2016-07-13 07:06:43 +01:00
John Cupitt
828b36dfe5 fix --fail option to jpegload
getting --fail on jpegload working means tilecache must terminate on tile
calc error

make openslideload not report tile calc errors, it might need a --fail
option too

see https://github.com/jcupitt/libvips/issues/474
2016-07-11 10:07:41 +01:00
John Cupitt
f294ec5d9b oops 2016-07-09 19:10:17 +01:00
John Cupitt
4c1e6dd023 turn off chroma subsample for Q > 90
see https://github.com/jcupitt/libvips/issues/482
2016-07-09 18:49:22 +01:00
John Cupitt
de981cd9ec docs tweak 2016-07-08 12:18:07 +01:00
John Cupitt
0f2d1a6b0b improve docs 2016-07-08 09:15:56 +01:00
John Cupitt
3130b9b118 add note on Peter's CM work 2016-07-05 08:48:08 +01:00
John Cupitt
65067fd58b add some more auto init
vips_image_new_from_file() was missing a check_init
2016-07-04 14:51:00 +01:00
John Cupitt
b81ac67a98 tag tiff alpha as UNASSALPHA
we were using ASSOCALPHA, but that's only for pre-multiplied alpha
channels
2016-07-04 14:49:04 +01:00
John Cupitt
0c2259d34b improve similarity docs
rotation direction was wrong, add type comments

https://github.com/jcupitt/libvips/issues/475
2016-06-28 17:07:14 +01:00
Felix Bünemann
5ab0001ec6 Add configure check for zlib with inflateInit2
and replace old unused and poorly named FIND_ZIP. The new code prefers
pkgconfig and only falls back to manual detection if needed.

This also prioritizes detected zlib flags and includes to be preferred
over the ones that are added by pkgconfig for libpng, tifflib etc. which
would otherwise have caused the system default zlib to be used.
2016-06-27 03:03:45 +02:00
Felix Bünemann
14953c19e7 Add support for .svgz files to svgload 2016-06-27 01:54:53 +02:00
John Cupitt
65105a9442 upsize with something other than nearest
vips_resize() uses to just use nearest when upsizing, following standard
practice in repro. This is often unfortunate for image processing, where
small nearest upsizes will produce obvious aliasing.

It now picks a VipsInterpolate which corresponds (roughly) to the
selected VipsKernel and uses that with affine for any upsizing.
2016-06-22 10:33:08 +01:00
John Cupitt
6f52f14fc5 fix comment 2016-06-19 09:37:26 +01:00
John Cupitt
3c7ce5f6fe better invalid test 2016-06-18 19:42:43 +01:00
John Cupitt
11b136b2df pyvips8 can create new metadata
previously it tried to lookup the type of the field in set(), now if
OK if there's no field there already
2016-06-17 11:27:13 +01:00
John Cupitt
d56cd4dcb2 note py problem 2016-06-17 09:36:04 +01:00
John Cupitt
f3326c8126 better vips_resize() for cubic/linear/nearest
vips_resize() used to do most of a downsize with vips_shrink() and the
final 200 - 300% with vips_reduce(). This was correct for lanczos2/3,
but not right for linear/cubic, which need more shrink and less
reduce to avoid aliasing.

This patch makes vips_resize() leave the final 100 - 200% to
vips_reduce() for linear/cubic, and leave everything to reduce for
nearest.
2016-06-16 09:46:02 +01:00
John Cupitt
a5bef08d4a better reducev multiplication
more accurate, no slower

add more tests too
2016-06-15 13:56:19 +01:00
John Cupitt
58be330714 oop problems found in reducev 2016-06-14 14:56:56 +01:00