Commit Graph

4872 Commits

Author SHA1 Message Date
John Cupitt
06533d2c9e oop, proportion wrong 2017-09-19 13:01:12 +01:00
John Cupitt
f4151d6e5b faster, more accurate convergence for autofit
better next guess, better final choice
2017-09-19 12:56:42 +01:00
John Cupitt
3cd0d5f161 try changing dpi instead of font size 2017-09-18 23:01:38 +01:00
John Cupitt
a578fd5d87 Merge branch 'text-autofit' of https://github.com/gargsms/libvips into gargsms-text-autofit 2017-09-18 16:30:11 +01:00
gargsms
3a93f2b2c2 Do not change font size if the font size is already specified 2017-09-18 18:45:28 +05:30
gargsms
a3955c6c0a Fix code convention, issues with gravity 2017-09-18 18:34:50 +05:30
John Cupitt
4f18027a7c Merge branch 'text-autofit' of https://github.com/gargsms/libvips into gargsms-text-autofit 2017-09-17 05:21:44 +01:00
John Cupitt
b2f66a3968 add note on svgload improvement 2017-09-17 05:20:48 +01:00
John Cupitt
99053d41cb Merge pull request #724 from lovell/svg-scale
Correct scaling of SVG input without width and height attributes
2017-09-17 05:12:44 +01:00
gargsms
7aacf26bcb Fix autofit for good 2017-09-15 17:48:55 +05:30
John Cupitt
3d40769401 tiny cleanups 2017-09-15 10:39:06 +01:00
John Cupitt
f4eb1fcf80 Merge pull request #737 from kleisauke/fix-shrink-on-load
vips_thumbnail: Fix SVG/PDF input (#735)
2017-09-14 15:24:42 +01:00
Kleis Auke Wolthuizen
1e26b1a6c3 vips_thumbnail: Fix SVG/PDF input (#735) 2017-09-14 16:03:21 +02:00
John Cupitt
9bc2b18140 Merge pull request #736 from lovell/cpp-int-offset
cplusplus: offset coords are int rather than double
2017-09-14 11:00:20 +01:00
Lovell Fuller
8bd2208e5e cplusplus: offset coords are int rather than double 2017-09-14 10:25:15 +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
48680dccc4 remove python test suite
it's in pyvips now
2017-09-13 17:45:29 +01:00
John Cupitt
906dc50462 add a note to the docs re. mem & files
note that the cache limits only apply to memory and files allocated by libvips
2017-09-11 16:33:37 +01:00
John Cupitt
60f212c371 credit! 2017-09-11 11:54:01 +01:00
John Cupitt
0f4feb1b73 note file create time change 2017-09-11 11:22:20 +01:00
John Cupitt
d4ed0f84d8 set all file times
why ... why is this necessary
2017-09-11 11:21:28 +01:00
John Cupitt
9cafae8767 Merge branch 'master' into reset-create 2017-09-09 12:31:34 +01:00
John Cupitt
99c1fdca3e use SystemTimeToFileTime
oops, mixup, thanks dlong500
2017-09-09 12:30:48 +01:00
John Cupitt
6641773719 note change in svgload header 2017-09-09 12:28:27 +01:00
John Cupitt
592710dd6d limit tile width for svgload
librsvg starts to fail if any single tiles has an axis over 32767
pixels. Break up very wide images to fix this.

See:

https://github.com/jcupitt/libvips/issues/732
2017-09-09 12:23:11 +01:00
John Cupitt
8970df2e1f try disabling operation cache for magickload
magickload can eat huge amounts of memory and disc, fon't keep it in the
operation cache

see https://github.com/jcupitt/libvips/issues/731
2017-09-08 04:55:55 +01:00
John Cupitt
0a9593b3bf try again
with SetFileTime() this time
2017-09-07 16:37:35 +01:00
John Cupitt
0911b4a282 attempt to reset create on Windows
When writing a file on Windows, you need to set the create date or the
date might be copied over from a previous file of the same name.

Quick hack, might be enough to fix this.

See https://github.com/jcupitt/libvips/issues/729
2017-09-07 09:09:19 +01:00
John Cupitt
739389d18d clearer usage notes for cli
see https://github.com/jcupitt/libvips/issues/725
2017-09-04 16:16:45 +01:00
Lovell Fuller
980095a8cc Scale SVG without width/height attrs using cairo 2017-09-03 20:11:16 +01:00
John Cupitt
5a37d3e809 add an intent option to thumbnail
"intent" lets you set the rendering intent for any ICC conversions --
the default is the (more correct) relative, but "perceptual" can look
better

see https://github.com/jcupitt/libvips/issues/714
2017-08-30 16:34:46 +01:00
John Cupitt
820c279697 Merge branch '8.5' 2017-08-30 14:59:16 +01:00
John Cupitt
653e99ea82 don't build enumtypes so often
we were only replacing enumtypes if it had changed, but this meant that
make usually thought it was out of date compared to the source files,
and rebuilt it, which needed perl

now we always replace it, so (hopefully) perl is no longer a
compile-time dependency
2017-08-30 14:37:48 +01:00
John Cupitt
2b70348d23 Merge branch '8.5' 2017-08-29 10:33:45 +01:00
John Cupitt
e2c83fe4bd fix jpegload fail
we were only failing on libjpeg errors, but libjpeg treats very serious
things thaht we want to be able to catch (like truncated files) as warnings
... we must therefore error out if fail is set and libjpeg issues a warning

see https://github.com/lovell/sharp/issues/793
2017-08-29 09:49:38 +01:00
John Cupitt
c0bfa4e70b fix pyr tiff write to buffer
now we have a test for it heh
2017-08-27 11:03:34 +01:00
John Cupitt
7cf7a6335e Merge branch 'master' of github.com:jcupitt/libvips 2017-08-26 16:27:54 +01:00
John Cupitt
d12f8e200a support tiffsave_buffer pyramids
add support for tiff pyramid save to memory, thanks bubba

see https://github.com/jcupitt/libvips/issues/702
2017-08-26 16:26:37 +01:00
John Cupitt
5eaf29afaf Merge branch 'master' of github.com:jcupitt/libvips 2017-08-25 12:52:01 +01:00
John Cupitt
10003f3f3c revise libjpeg new from buffer
in line with latest libjpeg recommendations

this fixes a segv with corrupt input found by libFuzzer and asan
2017-08-25 12:51:06 +01:00
John Cupitt
836b6c943b Merge branch 'master' of github.com:jcupitt/libvips 2017-08-25 10:55:35 +01:00
John Cupitt
2e513eef82 enable seq mode for join
much faster for large TIFFs

see https://github.com/jcupitt/libvips/issues/717
2017-08-25 10:53:44 +01:00
John Cupitt
0ef01e9ca5 fix jpegload from empty buffer
could try to read a couple of non-existent bytes before failing ... now we
inject an EOI marker
2017-08-24 17:28:07 +01:00
John Cupitt
189c5f4762 fix a copy-paste error 2017-08-18 22:38:35 +01:00
John Cupitt
97997d1990 Merge branch '8.5' 2017-08-18 22:13:51 +01:00
John Cupitt
f2576003b7 fix webp upscale in thumbnail
we could try to use webp shrink on load to upscale, oops

see https://github.com/jcupitt/libvips/issues/710
2017-08-18 22:08:43 +01:00
John Cupitt
3cf33d7f32 Merge branch '8.5' 2017-08-18 12:32:12 +01:00
John Cupitt
f2c55e80fe better dzsave with zip output to a file
close down output earlier to help mark-sweep bindings
2017-08-18 12:31:24 +01:00
John Cupitt
c4e8e31007 try to stop non-utf8 strings getting into metadata
still seems possible, strangely, investigate
2017-08-16 18:36:25 +01:00
John Cupitt
279c1ef55f make test text pass if text is missing 2017-08-11 09:31:01 +01:00