John Cupitt
f0eb493643
fix thumbnail with cmyk output
...
see https://github.com/libvips/php-vips/issues/138
thanks AdamGaskins
2022-03-11 16:21:12 +00:00
John Cupitt
68a8bf42a7
better arg checking for hist_find_ndim
...
we were not checking the number of input bands
move checks to _build
thanks travisbell
see https://github.com/libvips/libvips/issues/2634
2022-01-28 08:47:30 +00:00
John Cupitt
5c249e0e8e
note pipe read fix in changelog
2022-01-24 12:12:32 +00:00
John Cupitt
646f2d7fd7
Fix read from pipe with variable chunk sizes
...
free the header cache only once it's exhausted
2022-01-24 12:12:03 +00:00
John Cupitt
774c969d43
fix GIF save change detector
...
We were only using the top 25% of the frame for GIF pallette change
detection.
Thanks TheEssem
See: https://github.com/libvips/libvips/issues/2622
2022-01-18 18:15:38 +00:00
John Cupitt
6b475c92a2
raise linpng size limit
...
By default libpng is limited to 1m pixels per axis. Raise this to
VIPS_MAX_COORD, ie. 10m pixels.
2022-01-13 11:44:28 +00:00
John Cupitt
f75b3c1ee9
adjust GIF alpha threshold
...
see https://github.com/libvips/libvips/discussions/2604
2021-12-31 20:20:56 +00:00
John Cupitt
d3f77e4433
add a sniffer for TTF
...
since TTF files can be caught by the almost unfixably overgenerous TGA sniffer
see https://github.com/libvips/php-vips/issues/127
2021-12-22 10:25:52 +00:00
Joel Larsson
93ff76ce53
Fix documentation typo ( #2591 )
...
A small typo fix on the documenation of `vips_percent`
2021-12-21 14:54:02 +00:00
John Cupitt
6020d25be4
update changelog for iiif change
2021-12-21 09:47:23 +00:00
Aaron
b6ca9eeff3
dzsave.c: Remove trailing comma from IIIFv3 folder names ( #2590 )
...
Fixes #2589 .
Signed-off-by: Aaron <admin@datahoarder.dev>
2021-12-21 09:46:04 +00:00
John Cupitt
1502b4af0c
oop, dropped patch
2021-12-18 18:24:13 +00:00
John Cupitt
9420911ba8
change default GIF frame delay from 1s to 0.1s
...
This is the delay if the GCB is missing.
See https://github.com/libvips/libvips/issues/2582
2021-12-18 18:08:30 +00:00
John Cupitt
65d84d1cbe
fix a crash with 0 length vectors
2021-12-16 10:45:10 +00:00
John Cupitt
1fe283cc85
remove GIF frame size limit
...
We limited GIFs to 16k on an axis, but there are a few larger than
this. Check for 64k instead (the GIF format limit).
2021-12-12 10:12:00 +00:00
John Cupitt
6d23a3615e
add a fallback path for gif save if no cgif
...
Via imagemagick. See https://github.com/libvips/libvips/issues/2574
2021-12-09 13:00:58 +00:00
John Cupitt
cd80b5ae94
note win fd change in changelog
2021-12-06 13:58:46 +00:00
Lovell Fuller
b28ee777ab
Windows: don't set create time for invalid/stream fd ( #2571 )
2021-12-06 13:52:02 +00:00
John Cupitt
e0bb8e5d58
make exif resunit optional and default to inch
...
Some images don't set the exif resolution unit. We were ignoring exif
resolution in this case, but that's not correct, it's supposed to
default to inch.
See https://web.archive.org/web/20190624045241if_/http://www.cipa.jp:80/std/documents/e/DC-008-Translation-2019-E.pdf for the full spec.
2021-11-26 11:10:29 +00:00
John Cupitt
edf63dfeeb
fix insert
...
We were not detecting the shortcut cases for insert correctly, thanks
chreru.
See https://github.com/libvips/libvips/issues/2548
2021-11-21 14:50:55 +00:00
John Cupitt
f352bcd191
Revert "switch macos CI to the new cgif formula"
...
This reverts commit 6cdb199646
.
2021-11-19 18:13:23 +00:00
John Cupitt
6cdb199646
switch macos CI to the new cgif formula
2021-11-19 16:24:19 +00:00
John Cupitt
7ed9760ab9
enable debug for CI
...
It turns on quite a few useful asserts.
2021-11-19 14:57:34 +00:00
John Cupitt
cb58d7d960
_source loaders should all be nocache
...
When we image_new_from_source, the source object has some of the loader
state: it tracks the current read position of the load library. This
means that we mustn't keep source loaders in the operation cache, since
a second call could give a different result because the source object
read position might have changed.
Also: add a rewind to get_flags_source in spngload, and jp2k needs to
tag its load region as having no thread ownership or you'll get assert
fails in the test suite with debug enabled.
2021-11-19 13:55:49 +00:00
John Cupitt
4fd2de5754
fix function list
...
jxl/jp2k had dropped from the list for some reason
2021-11-16 14:15:22 +00:00
John Cupitt
80f2581e0c
expand the docs for vips_shutdown()
...
see https://github.com/libvips/libvips/discussions/2540
2021-11-16 10:56:43 +00:00
John Cupitt
7544b27e90
small typos
2021-11-16 10:49:16 +00:00
Remi Collet
407bd1391d
allow libjxl 0.5 ( #2539 )
2021-11-16 09:51:19 +00:00
John Cupitt
57a0bd82f9
small fixes
...
update func list in docs
add missing C decls for hyperbolic trig funcs
2021-11-15 11:17:36 +00:00
John Cupitt
09771a54ea
fix typos
2021-11-14 21:47:43 +00:00
John Cupitt
fef024061f
layout fixes for tga sniff
2021-11-14 04:09:23 +00:00
Moggers
b3ff4d9ed6
Implement Header Sniffing For Magickload Tga ( #2533 )
...
Add TGA sniffing
2021-11-14 04:04:32 +00:00
John Cupitt
01e3f1fc33
set libvips orientation on magickload ( #2535 )
...
Pick up the imagemagick / graphicsmagick orientation field for libvips.
Tested with graphicsmagick, magick6 and magick7.
see https://github.com/libvips/libvips/issues/2528
2021-11-13 14:38:30 +00:00
John Cupitt
ad295b5d41
add changelog notes
2021-11-13 14:36:38 +00:00
Kleis Auke Wolthuizen
008fe2d2f5
Add unit test
2021-11-13 11:29:46 +01:00
John Cupitt
8195b67d83
better exif string value change detection
...
see https://github.com/libvips/libvips/pull/2518
2021-11-09 19:28:55 +00:00
John Cupitt
296fd99925
clarify doc comments for hist_find_
...
Say when u8 or u16 are picked.
See https://github.com/libvips/libvips/issues/2519
2021-11-07 11:14:52 +00:00
John Cupitt
6f081de0a0
add minimise to insert
...
This patch makes "insert" issue minimise signals for inputs in sequential
mode. This can drop memory use in some programs, for example:
```python
import sys
import random
import pyvips
image = pyvips.Image.black(20000, 20000)
for filename in sys.argv[2:]:
tile = pyvips.Image.new_from_file(filename, access='sequential')
x = random.randint(0, image.width - tile.width)
y = random.randint(0, image.height - tile.height)
image = image.insert(tile, x, y)
image.write_to_file(sys.argv[1])
```
Before this patch:
```
$ for i in {0..1000}; do cp ~/pics/k2.jpg $i.jpg; done
$ /usr/bin/time -f %M:%e ../manyjoin.py ../x.jpg *.jpg
5456256:4.34
```
With this patch:
```
$ /usr/bin/time -f %M:%e ../manyjoin.py ../x.jpg *.jpg
2475324:3.38
```
2021-11-05 12:14:50 +00:00
John Cupitt
41e92b9ada
tiny arrayjoin polish
2021-11-05 10:09:16 +00:00
John Cupitt
f0e89ac29b
Merge branch 'master' of github.com:libvips/libvips
2021-11-04 17:19:15 +00:00
John Cupitt
778ff7fce5
wider margin for arrayjoin minimise
...
This patch makes arrayjoin leave a bigger margin off the end of each
input image. This can help some loaders which have large output caches.
See https://github.com/libvips/libvips/issues/2440
2021-11-04 17:17:17 +00:00
Lovell Fuller
a274a2f7e6
pngsave: allow valid bitdepth of 16 ( #2515 )
2021-11-04 16:39:12 +00:00
John Cupitt
30fdc3df77
add jp2k load of untiled images
...
with this patch, untiled jp2k images are loaded in chunks, saving loads
of memory (but runs much slower)
2021-11-04 15:26:04 +00:00
John Cupitt
3488c6b410
reorder hyperbolic enums to fix an ABI break
2021-11-03 17:57:42 +00:00
John Cupitt
4b7915994f
better test for hyperbolics
2021-11-02 23:03:05 +00:00
John Cupitt
c6d863f9d3
fix inverse hyperbolics
...
oop, typo
2021-11-02 22:58:19 +00:00
Heshy Roskes
d8c04011ea
Add hyperbolic functions ( #2508 )
...
* add hyperbolic functions
* add hyperbolic function tests
* changelog
* add inverse hyperbolic functions for old compilers
2021-11-02 15:05:37 +00:00
Kleis Auke Wolthuizen
fc92290bb9
Try the new target API first in VImage::write_to_buffer
( #2511 )
...
Needed after PR #2499 .
2021-11-02 13:36:27 +00:00
Kleis Auke Wolthuizen
e95e8c5155
Fix typo in magick7load
( #2512 )
...
Introduced in commit f92069b
.
2021-11-02 12:04:19 +00:00
Kleis Auke Wolthuizen
f92069b035
Incorporate #2506 also in {webp,magick7}load ( #2507 )
2021-11-01 18:33:27 +00:00