Lovell Fuller
6c61ad256f
Ensure all source code files contain SPDX licence
2023-02-28 17:01:58 +00:00
Lovell Fuller
34cbc6dec3
Docs: clarify that paths are relative to process working dir
2023-02-23 10:33:13 +00:00
Lovell Fuller
286a322622
Docs: changelog and doc refresh for #3470
2023-01-16 09:27:31 +00:00
Emanuel Jöbstl
6d404f4d2c
Add coords to output when using attention based crop ( #3470 )
2023-01-16 09:20:42 +00:00
Lovell Fuller
eac6e8b261
Upgrade to libvips v8.14.0-rc1
...
- Replace GIF 'optimise' option with 'reuse'
- Add 'progressive' option to GIF
- Add 'wrap' option to text creation
- Add 'formatMagick' property to *magick input metadata
2022-12-29 15:53:50 +00:00
Lovell Fuller
a7fa7014ef
Add experimental support for JPEG-XL, requires libvips with libjxl
...
The prebuilt binaries do not include support for this format.
2022-12-13 21:55:17 +00:00
Lovell Fuller
5740f4545e
Expose GIF opts: interFrameMaxError, interPaletteMaxError #3401
2022-11-14 16:09:52 +00:00
Ingvar Stepanyan
1a563360c6
Fix errors for missing OpenJPEG ( #3442 )
...
Fixes couple of minor issues with JP2 errors:
1. The tests passed as false-positives even if regex is changed to arbitary pattern, because the promise returned from `assert.rejects` was ignored and the test ended prematurely. This is fixed by removing `{ ... }` around the test function body.
2. This, in turn, hid an issue with `toFile` not throwing the expected error message which was instead propagating `Error: VipsOperation: class "jp2ksave" not found` from libvips. This is now fixed by manually checking the extension before calling into libvips.
3. Pre-creating error instances like `errJp2Save` did is sometimes tempting, but is problematic for debugging because it hides the actual stacktrace of the error (the stacktrace is collected at the moment of `new Error` creation). This is now turned into a function that creates error with the right stack.
2022-11-08 19:53:14 +00:00
Lovell Fuller
70e6bb0162
Ensure close event occurs after end event #3313
2022-09-20 08:52:40 +01:00
Lovell Fuller
4b38f56d02
Docs: add avif and heif examples
2022-09-01 09:57:50 +01:00
Lovell Fuller
3a44748f49
Ensure PNG bitdepth can be set for non-palette output #3322
2022-08-22 14:57:12 +01:00
brahima
ea7cf2a2ef
Expose vips_text to create an image containing rendered text ( #3252 )
2022-07-25 11:32:10 +01:00
Lovell Fuller
76c4c51e2a
Remove previously-deprecated reductionEffort and speed options
2022-07-24 11:18:16 +01:00
Lovell Fuller
b46ab510da
Add Buffer and Stream support to tile output #2238
2022-07-24 11:06:41 +01:00
Lovell Fuller
6288c7bced
Expose reoptimise palette option for GIF output
2022-07-12 21:12:31 +01:00
Lovell Fuller
d247c02762
Add mixed and minSize animation options for WebP output
2022-07-12 14:51:03 +01:00
Lovell Fuller
e4160c684d
Docs: add timeout example
2022-07-11 11:12:32 +01:00
Lovell Fuller
905518fab0
Add input fileSuffix and output alias to format #2642
2022-07-11 10:45:19 +01:00
Lovell Fuller
7a8ab452c5
Add support for WebP and PackBits compression with TIFF output #3198
2022-06-29 11:35:58 +01:00
AlexanderTheGrey
4662527a17
Allow WebP encoding effort of 0 ( #3261 )
2022-06-17 08:22:51 +01:00
Lovell Fuller
58c2af3251
Docs: improve output format info for toBuffer
2022-04-25 11:41:06 +01:00
David Humphrey
75e5afcd42
Docs: fix typo in gif example ( #3201 )
2022-04-22 16:09:28 +01:00
Lovell Fuller
4c29368b51
Docs: EXIF metadata unsupported for TIFF output #3074
2022-04-18 09:53:35 +01:00
Lovell Fuller
424660278d
Allow use of toBuffer+toFile w/ same instance #3044
2022-02-03 22:01:46 +00:00
ompal
f7bed69ffb
Add resolutionUnit to metadata and as tiff option #3023
...
Co-authored-by: Lovell Fuller <github@lovell.info>
2022-01-29 14:31:47 +00:00
Lovell Fuller
d67e09ba7c
Add support for IIIF v3 tile-based output
2022-01-07 20:45:48 +00:00
Lovell Fuller
4c3a8a7007
Docs: fix example formatting, remove outdated warning
2021-12-21 12:31:29 +00:00
Lovell Fuller
92399ee5e2
Docs: correct gif resize example
2021-12-13 18:26:35 +00:00
Lovell Fuller
8c0660d71e
Docs: changelog and refresh for #2789
2021-12-11 21:41:41 +00:00
Kleis Auke Wolthuizen
513fb40f40
Improve multi-frame image resizing ( #2789 )
...
* Ports vips_thumbnail logic to sharp
* Deprecates the pageHeight output option for WebP/GIF
2021-12-10 20:32:04 +00:00
Lovell Fuller
e1ba2a7fd8
Standardise HEIF effort option name, deprecate speed
2021-11-24 19:54:04 +00:00
Lovell Fuller
2b1f5cbe07
Standardise WebP effort option name, deprecate reductionEffort
2021-11-24 18:54:30 +00:00
Lovell Fuller
72025051c5
Expose control over CPU effort for palette PNG #2541
2021-11-24 17:12:53 +00:00
Lovell Fuller
f7f3e43490
Add support for GIF output using cgif in prebuilt binaries
2021-11-21 10:22:34 +00:00
Drian Naude
a06b8c296a
Properly emit close events for duplex streams ( #2976 )
2021-11-17 11:19:58 +00:00
Michael B. Klein
342de36973
Impute TIFF xres/yres from withMetadata({density})
2021-11-08 19:43:42 +00:00
Lovell Fuller
1dd4be670d
Add timeout function to limit processing time
2021-09-22 10:33:59 +01:00
Erlend
2679bb567b
Allow use of 'tif' to select TIFF output ( #2893 )
2021-09-16 18:49:14 +01:00
Espen Hovlandsdal
916b04dbac
Allow using speed 9 for AVIF/HEIC encoding ( #2879 )
2021-09-06 16:23:02 +01:00
Espen Hovlandsdal
52307fad5d
Resolve paths before comparing input/output destination ( #2878 )
...
This fixes an issue where if you try to write to the same destination as the
input file but you are not using absolute (or the same relative path) for both
the input and output, sharp/vips might produce errors such as:
someFile.jpg: unable to open for write
unix error: No such file or directory
2021-09-06 16:21:43 +01:00
Lovell Fuller
afb21135c2
Docs: add changelog entry for #2868
2021-09-05 09:35:46 +01:00
Zaruike
b7fbffb3f7
Add support for libvips compiled with OpenJPEG
2021-09-05 09:32:02 +01:00
Lovell Fuller
5d98bcd8d8
Remove unsupported animation props from AVIF #2870
2021-09-05 08:46:15 +01:00
Lovell Fuller
3402656ec5
Set PNG bitdepth based on number of colours #2855
...
Removes use of deprecated libvips API
2021-08-26 22:05:29 +01:00
Lovell Fuller
4e84f743e4
Docs: toFile expects directory structure to exist
2021-08-20 09:22:22 +01:00
Lovell Fuller
b24c9c86d1
Docs: changelog and credit for #2762
2021-08-03 15:28:50 +01:00
Mart
b7add480c7
Add support for bit depth with raw input and output ( #2762 )
...
* Determine input raw pixel depth from the given typed array
* Allow pixel depth to be set on raw output
2021-08-03 14:52:54 +01:00
Lovell Fuller
75cddbdb6d
Default AVIF encoding to 4:4:4 chroma subsampling #2562
2021-07-14 13:45:47 +01:00
Lovell Fuller
6c2e6c5432
Install: multiple platform-arch binaries in same tree
2021-07-14 13:45:47 +01:00
Lovell Fuller
4237f5520f
Allow withMetadata to set density #967
2021-04-17 13:46:54 +01:00