Commit Graph

4972 Commits

Author SHA1 Message Date
John Cupitt
7134c64836 notes 2017-08-11 09:23:59 +01:00
John Cupitt
a59b9e6c7e Merge pull request #706 from astavale/add-c-header-to-gir
Add C header to GIR file
2017-08-08 16:58:08 +02:00
Alistair Thomas
4db3983a43 Add C header to GIR file 2017-08-08 10:51:14 +01:00
John Cupitt
63550280a4 Merge branch '8.5' 2017-08-04 18:31:25 +01:00
John Cupitt
47a763209a hide warnings if VIPS_WARNING is defined
If VIPS_WARNING is defined, suppress all warning messages from vips by
installing a null log handler.

Libraries should not call g_log_set_handler(), it is supposed to be for
the application layer, but this can be awkward to set up if you are using
libvips from something like Ruby.

This env var hack is a workaround.

see https://github.com/jcupitt/ruby-vips/issues/119
see https://github.com/jcupitt/libvips/issues/544
2017-08-04 18:01:19 +01:00
John Cupitt
3a29cea09f turn off some debug messages 2017-08-04 17:40:02 +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
7c8bcff110 heh oops try again 2017-08-02 10:56:34 +01:00
John Cupitt
58f9757467 fix transparency detection in merge
a typo meant we were just testing the first band for zero, not all three

thanks Haida!
2017-08-02 10:41:10 +01:00
John Cupitt
a3b226aa9b version bump 2017-08-02 10:40:17 +01:00
gargsms
8f660ab45b [WIP] Autofit text in the requested dimensions 2017-08-01 23:26:24 +05:30
John Cupitt
6e89ac4850 oops, forgot something 2017-07-29 11:05:29 +01:00
John Cupitt
639b0f5021 Merge branch '8.5' 2017-07-29 10:40:44 +01:00
John Cupitt
69f70a7e24 Merge branch '8.5' into tweak-smartcrop-8.5 2017-07-28 18:04:23 +01:00
John Cupitt
9c1af2289c doc update 2017-07-26 16:45:55 +01:00
John Cupitt
2a9c522de8 Merge branch 'master' into add-find-trim 2017-07-26 16:45:27 +01:00
John Cupitt
999dfb2870 fix Windows build 2017-07-26 16:45:04 +01:00
John Cupitt
18595ca0dd find_trim works for all bg images
width/height == 0 if whole image is bg
2017-07-26 15:13:12 +01:00
John Cupitt
34970d0cf2 remove some casts
and use VIPS_AREA instead
2017-07-26 14:57:27 +01:00
John Cupitt
254e6a8b2a flatten alpha, bg default adjusts
bg default adjusts to image type, thanks Kleis
2017-07-26 14:56:28 +01:00
John Cupitt
6359c92c01 polish, add test for find_trim 2017-07-26 10:43:28 +01:00
John Cupitt
effc1d53d0 works 2017-07-25 19:00:21 +01:00
John Cupitt
1e7541bfb8 add find_trim
compiles, not yet working
2017-07-25 14:52:45 +01:00
John Cupitt
42b04e48de fix doc typo 2017-07-19 14:54:13 +01:00
John Cupitt
0dd8de5450 update NYU path reference
since the page has gone

see https://github.com/jcupitt/libvips/issues/694
2017-07-19 13:34:22 +01:00
John Cupitt
58e0884178 formatting 2017-07-18 09:35:38 +01:00
John Cupitt
a8fb38fb6a Merge branch '8.5' 2017-07-08 16:06:18 +01:00
John Cupitt
060bdd2cf0 fix svgload resolution again
use rsvg_handle_set_dpi() rather than cairo_scale() to avoid int
truncation on dimensions

see https://github.com/jcupitt/libvips/issues/688
2017-07-08 16:03:56 +01:00
John Cupitt
f3393fb89b try to fix cli format test
add a threshold for svgload, librsvg seems to vary a bit between
platforms
2017-07-08 15:26:48 +01:00
John Cupitt
7408c6c9b2 fix sh part of test suite 2017-07-08 15:09:35 +01:00
John Cupitt
dad4e5b709 fix svgload test 2017-07-08 12:43:03 +01:00
John Cupitt
64fe910fc5 fix DPI mixup
librsvg defaulted to 90 DPI, but libvips to 72 DPI -- add a correction
factor

thanks Fosk!

see https://github.com/jcupitt/libvips/issues/688
2017-07-08 12:31:36 +01:00
John Cupitt
9a1c3f9405 rename 'disc' as 'memory'
the old 'disc' flag to open defaulted TRUE and disabled read via disc if you
set it FALSE, which was very confusing

replace it with a flag called 'memory' which defaults FALSE and forces
read via memory if set TRUE

'disc' is still there and still works, it's just tagged as deprecated

see https://github.com/jcupitt/libvips/issues/677
2017-07-07 09:45:49 +01:00
John Cupitt
7d98b39843 small speedup to conv
remove a table for a few % speedup
2017-07-02 19:25:52 +01:00
John Cupitt
91e52f3d36 oops 2017-06-28 09:32:30 +01:00
John Cupitt
61d5ba7b58 larger strip size for pdfload
We had 128-pixel high strips for pdfload. This kept mem use very low,
but meant many calls to page_render. For a tall page with an image
background, we could take almost an hour to render a single page as the
background was repeatedly repainted.

Change the strip height to 5000. This will render most pages in a single
call, but still allow huge images.

See https://github.com/jcupitt/libvips/issues/681
2017-06-28 09:16:06 +01:00
John Cupitt
47f35dd2f1 oop left a DEBUG on 2017-06-23 12:19:35 +01:00
John Cupitt
52daec74e4 note gcc 7.1 stuff 2017-06-20 18:34:25 +01:00
John Cupitt
91457e455a add "page-height" save property 2017-06-19 09:31:49 +01:00
John Cupitt
882c686553 make hist_equal output format match input format
If the input image was ushort but had only uchar range, hist_equal would
output a uchar image, thanks to hist_norm's auto-clip feature. Make sure
this can't happen bu casting after the norm.

See https://github.com/jcupitt/libvips/issues/680

Thanks Simon Harris
2017-06-19 09:15:51 +01:00
John Cupitt
dbf7729aee tag merge as seq 2017-06-13 14:26:41 +01:00
John Cupitt
e66891a4df Merge branch '8.5' 2017-06-13 09:52:53 +01:00
John Cupitt
351dd67b62 trim 2017-06-13 09:52:37 +01:00
John Cupitt
1615cb41e1 remove old compat macro
thanks benjamin!
2017-06-13 07:31:14 +01:00
John Cupitt
5383554724 Merge branch '8.5' 2017-06-12 18:23:07 +01:00
John Cupitt
4d846534b8 transform cmyk->rgb automatically
if:

- we are writing a cmyk image
- there is an embedded profile
- the saver does not support cmyk

see https://github.com/jcupitt/libvips/issues/676
2017-06-12 18:19:20 +01:00
John Cupitt
3c3cd77fc4 backport some 8.6 stuff 2017-06-09 12:27:07 +01:00
John Cupitt
3278420dab version bump 2017-06-09 12:17:14 +01:00