Commit Graph

3914 Commits

Author SHA1 Message Date
John Cupitt
c95bbe43b5 oops in sharpen 2016-02-26 12:26:12 +00:00
John Cupitt
d33306836f better rgb16 -> scrgb handling
helps new sharpen tests
2016-02-26 09:08:42 +00:00
John Cupitt
04cc13e321 notes 2016-02-25 11:47:53 +00:00
John Cupitt
c1f1a7c1b3 improve sharpen for screen work
it was a bit granular (since it was designed for offset work), make sharpen
easier to adjust for smaller effects

- new 'sigma' parameter
- greater parameter range
- more self-tests
2016-02-25 11:16:24 +00:00
John Cupitt
8911820d9e better handling of deprecated args in py
we now allow optional deprecated args to be set
2016-02-25 11:15:47 +00:00
John Cupitt
840c3f2e63 oops typo
thanks Lovell
2016-02-22 14:08:36 +00:00
John Cupitt
01238a0fd5 more progressive jpg changes
- Remove the nocache stuff for prog jpg images. There was no saving in
  practice, since operations downstream could be cached.

  nocache is for objects that can change, not for memory saving

- Call _destroy on the decompress object much earlier, it frees a huge
  amount of memoey for prog jpg images.
2016-02-21 10:57:36 +00:00
John Cupitt
0a4991cbc0 oops, put the flags test on a subclass 2016-02-18 19:12:00 +00:00
John Cupitt
6f94cb5ed4 don't cache progressive jpg images
progressive jpg images need loads of memory, we shouldn't cache them by
default ... our called can hold a ref if they want to keep the image
around

see https://github.com/jcupitt/libvips/issues/387
2016-02-18 19:00:19 +00:00
John Cupitt
307895eb41 fix page select in magickload
need to set ->scenes as well
2016-02-18 14:55:53 +00:00
John Cupitt
0b263f7255 phew, working
found the right set of info fields by trial and error
2016-02-18 12:46:44 +00:00
John Cupitt
de59ff0e5a Merge branch 'master' into add-magickload-page 2016-02-18 11:28:09 +00:00
John Cupitt
04dad55e49 faster and safer isprefix 2016-02-16 09:56:14 +00:00
John Cupitt
ef6d8f5979 make test for matlab files more specific
Previously vips just called Mat_Open() to test if a file was a Matlab
save file, but this is rather unreliable. For example, some JPEG files
can crash libmatio, and it can incorrectly think that at least some JP2
files are Matlab save files.

Instead, look for "MATLAB 5.0" at the start of the file. This is really too
specific, the first 116 bytes of a Matlab save file are freeform text,
but in practice all Matlab writers use the first few bytes to record the
file type.

See https://github.com/jcupitt/libvips/issues/385
2016-02-16 09:53:04 +00:00
John Cupitt
8e667fbb3e still not quite there
works, but is no faster, how odd

john@kiwi:~/pics$ time vips magickload nipguide.pdf[40] x.tif
real	0m0.244s
user	0m0.212s
sys	0m0.040s

$ time vips magickload nipguide.pdf x.tif --page 40
real	0m7.035s
user	0m6.900s
sys	0m0.152s

both give same result
2016-02-15 08:53:23 +00:00
John Cupitt
f131aaa082 fix up magickload test again 2016-02-13 14:27:41 +00:00
John Cupitt
789e154cd7 phew, done 2016-02-13 14:04:29 +00:00
John Cupitt
fdf0c349ae almost there
seeing transparency tags when we shouldn't, strange
2016-02-13 11:51:50 +00:00
John Cupitt
c2be771342 fix load from buffer, update APIs 2016-02-12 20:04:46 +00:00
John Cupitt
0dbd64a122 fix gifload memleak 2016-02-12 17:53:15 +00:00
John Cupitt
b10f332404 very close now
just a leak to nail down and some small stuff
2016-02-12 17:30:56 +00:00
John Cupitt
9262d672b7 almost done
a valgrind failure still
2016-02-12 10:53:04 +00:00
John Cupitt
1e6af6656f Merge branch 'master' into add-giflib 2016-02-12 07:42:22 +00:00
John Cupitt
e69da1952d fix a typo
thank you mayoung

see https://github.com/jcupitt/libvips/issues/382
2016-02-11 18:56:55 +00:00
John Cupitt
bd985731eb unpremultiply svgload / pdfload
cairo uses premultipled ARGB, we need to undo this for transparency to
work correctly
2016-02-11 09:06:09 +00:00
John Cupitt
d79407f285 almost there
not unpacking correctly though
2016-02-11 08:35:29 +00:00
John Cupitt
9f2da7d0ee small fixes
use 255 for PDF background
2016-02-10 15:19:00 +00:00
John Cupitt
0081f5e4ef another test file
cmyk pdf test file, though it's not actually used yet
2016-02-10 14:40:52 +00:00
John Cupitt
a037346093 better cache sizing for pdfload and svgload 2016-02-10 09:20:28 +00:00
John Cupitt
77b8eaf653 fix svgload priority 2016-02-09 17:12:44 +00:00
John Cupitt
85b21f2201 Merge remote-tracking branch 'origin/master' into add-librsvg 2016-02-09 16:53:56 +00:00
John Cupitt
84abdbbd81 Merge branch 'master' of github.com:jcupitt/libvips 2016-02-09 16:38:28 +00:00
John Cupitt
e68cc33eed move some generated doc stuff out of git 2016-02-09 16:36:30 +00:00
John Cupitt
a739ba9ca2 Merge pull request #380 from felixbuenemann/improve-bootstrap-sh
bootstrap.sh: Better doc pruning / support acdir dirlists
2016-02-09 16:34:06 +00:00
John Cupitt
fc7691b04a oops overflow
thanks lovell
2016-02-09 15:55:22 +00:00
John Cupitt
4a63e961ea much faster is_a_svg 2016-02-09 14:42:27 +00:00
John Cupitt
3e9c0b4068 oop typo 2016-02-09 14:08:09 +00:00
John Cupitt
56e45545d3 fix load from buffer 2016-02-09 11:58:43 +00:00
John Cupitt
153886d2eb add svgload
load from bubffer is not working though, strange ... it seems to be
generating a 16-biit image?
2016-02-09 11:01:12 +00:00
John Cupitt
625e0fbd9e vipsthumbnail knows about pdfload
woo, fast!
2016-02-09 09:26:54 +00:00
Felix Bünemann
cadca29fd1 Better doc pruning / support acdir dirlist
* Clean doc dir with find instead of moving files to keep to temp dir
* Limited support for automake ACDIR dirlists (no wildcard handling)
2016-02-09 05:25:29 +01:00
John Cupitt
8ffbe98a29 note svg and gif loader needs 2016-02-08 21:47:12 +00:00
John Cupitt
5ca90dc2be final polish 2016-02-08 21:40:44 +00:00
John Cupitt
676d35ed74 add pdfload tests 2016-02-08 20:39:39 +00:00
John Cupitt
9f566fa4a9 update cplusplus binding 2016-02-08 20:26:22 +00:00
John Cupitt
991cc4f88b rename as pdfload 2016-02-08 20:25:03 +00:00
John Cupitt
bff4157773 add load pdf from buffer 2016-02-08 17:48:18 +00:00
John Cupitt
b7030d004a add file type sniffing 2016-02-08 17:04:31 +00:00
John Cupitt
5db2c64d90 add @scale option
and set xres/yres
2016-02-08 16:57:37 +00:00
John Cupitt
adfd25a5ed byteswap popplerload
and better path absoluteization
2016-02-08 16:37:47 +00:00