John Cupitt
55cbde674b
reformat meson_options
...
in the style gtk uses
2022-07-03 14:21:57 +01:00
John Cupitt
5493103a7a
small reformat
2022-06-30 14:41:44 +01:00
Ali Naqvi
c223ec5e4b
Updated README.md to add crystal-vips bindings ( #2905 )
2022-06-30 14:01:06 +01:00
John Cupitt
0971344785
improve behaviour of pipelines with seq sources
...
Loaders which supported random access would not set the seq flag even if
seq mode was requested.
This would make operations like shrinkv to not run in seq mode, causing
massive cache thrashing.
See https://github.com/libvips/libvips/discussions/2898
2022-06-29 17:54:20 +01:00
Kleis Auke Wolthuizen
6dfb49b976
cplusplus: remove i18n include ( #2890 )
...
Since these files doesn't use any i18n features.
2022-06-26 18:59:47 +01:00
Kleis Auke Wolthuizen
f28e3f1e36
Remove stray soname.h ( #2893 )
...
This became obsolete after commit f11b58ff
.
2022-06-26 18:59:32 +01:00
Kleis Auke Wolthuizen
d70317e0a8
Regenerate POTFILES.in ( #2894 )
2022-06-26 18:59:01 +01:00
Kleis Auke Wolthuizen
26de04d147
Meson: avoid using deprecated feature ( #2895 )
2022-06-26 18:57:41 +01:00
Kleis Auke Wolthuizen
2cc1947177
Doxygen: use SVG for the call graph images ( #2896 )
...
Now that IE is finally gone, all the main browsers support this, which
provides higher quality and smaller sizes.
2022-06-26 18:50:34 +01:00
Kleis Auke Wolthuizen
ae831a145e
Cleanup .gitignore ( #2889 )
...
* Cleanup .gitignore
* Re-add `patches` directory to `Makefile.am`
And ensure it's being tracked by git.
2022-06-23 16:36:47 +01:00
Kleis Auke Wolthuizen
f26a025516
doc: ensure pandoc-docbook-template.docbook
is distributed ( #2891 )
...
Since that is also used by Meson (when configuring with `-Dgtk_doc=true`
and when pandoc is available).
2022-06-23 16:36:02 +01:00
John Cupitt
e81f7f1fab
fix stray jp2k save message
...
we had a stray "valid clipped" message
2022-06-23 10:31:36 +01:00
John Cupitt
1c600c83b6
test jp2k in test_formats.sh
2022-06-23 10:03:29 +01:00
John Cupitt
748a99d245
reorder Target struct to improve compat
...
so fields are at the same position at least
see https://github.com/libvips/libvips/issues/2880
2022-06-21 19:07:35 +01:00
John Cupitt
16e0182e52
fix dzsave_target on older libgsf
...
Older libgsf needs TRUE back from the GsfOutput seek method.
see https://github.com/libvips/libvips/issues/2878
2022-06-21 18:00:07 +01:00
Kleis Auke Wolthuizen
3bd0701604
Meson: improve dependency handling for nifticlib ( #2882 )
...
This allows users to build against nifticlib 2.0.0 with e.g.:
`-Dnifti-prefix-dir=/usr`
2022-06-20 15:47:57 +01:00
John Cupitt
d9f31be67d
configure should add meson files to make dist
...
add meson.build etc. to EXTRA_DIST
see https://github.com/libvips/libvips/issues/2876
2022-06-20 15:04:33 +01:00
John Cupitt
e9414f8d8f
fix build with older libgsf
...
build on libgsf without zip64 support was broken, thanks @remicollet
see https://github.com/libvips/libvips/issues/2878
2022-06-20 13:19:35 +01:00
John Cupitt
a129476f0f
fix "make dist" ready for 8.13 rc1
2022-06-19 16:20:30 +01:00
John Cupitt
dfeb270fe0
don't enable fatal-warnings in debug builds
...
too annoying to have it on all the time
2022-06-19 13:00:04 +01:00
John Cupitt
01d5fbd6a4
use a contiguious buffer for the frame
...
fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48021
2022-06-19 12:57:47 +01:00
John Cupitt
89615465b7
avoid size_t pixel counts in cgifsave
...
since we limit frame size to INT_SIZE / 4
2022-06-19 12:26:02 +01:00
Daniel Löbl
905a6fe79f
cgifsave: limit max number of colours to 255 ( #2863 )
...
* cgifsave: limit max number of colours to 255
* switch to VIPS_MIN
2022-06-19 12:16:03 +01:00
Sergey Alexandrovich
41da0d28e0
cgifsave: remove regressions from 2853 ( #2870 )
...
* cgifsave: pick the best quantizer instead of the first good enough
* cgifsave: fix palettes comparison
* cgifsave: don't copy unchanged pixels to previous_frame
2022-06-19 12:15:40 +01:00
Kleis Auke Wolthuizen
5b79a744a7
thumbnail: avoid upsizing via libwebp ( #2874 )
2022-06-19 12:02:00 +01:00
John Cupitt
c61b458904
add jxlsave tests
...
and revise colour encoding set
see https://github.com/libvips/libvips/issues/2872
2022-06-18 16:40:10 +01:00
John Cupitt
156e6a91e4
try to improve jxl lossless, again
...
now seems to handle scrgb and srgb, lossless and lossy, with and without
an ICC profile
see https://github.com/libvips/libvips/issues/2872
2022-06-18 16:01:51 +01:00
Kleis Auke Wolthuizen
9c22d74cff
doc: make pandoc optional ( #2866 )
...
Since it's currently unavailable on RHEL 9.
2022-06-15 10:19:49 +01:00
John Cupitt
e0b5eeecde
Merge branch 'master' of github.com:libvips/libvips
2022-06-14 12:08:20 +01:00
John Cupitt
5ef16188ca
display blocked/untrusted status in vips -l
...
though only for loaders/savers
2022-06-14 12:06:41 +01:00
Kleis Auke Wolthuizen
8c7576a5fe
cgifsave: reject images that exceed the pixel limit of libimagequant ( #2865 )
2022-06-14 10:23:11 +01:00
John Cupitt
a7697b462f
use size_t for GIF n_pels
...
fixes an overflow, thanks Kleis
2022-06-13 14:25:39 +01:00
Kleis Auke Wolthuizen
ebfef68707
cgifsave: fix stack-use-after-scope ( #2862 )
...
By reusing `cgif->palette_rgb`, this ensures that `pLocalPalette`
doesn't become indeterminate when it reaches `cgif_addframe`.
2022-06-13 12:59:40 +01:00
John Cupitt
48d13f4828
oop, left some DEBUG on
2022-06-13 10:27:42 +01:00
John Cupitt
0922d60000
Merge branch 'master' of github.com:libvips/libvips
2022-06-12 16:46:18 +01:00
John Cupitt
9f3860ec22
fix up scrgb support in JXL
...
after some discussion on discord with the libjxl maintainers
see https://github.com/libvips/libvips/issues/2830
to do: save scrgb to eg. JPEG fails right now :( we need to do
scRGB->sRGB in jpegsave
2022-06-12 16:43:26 +01:00
Kleis Auke Wolthuizen
468c13693b
CI: upgrade runner to Ubuntu 22.04 ( #2850 )
...
* CI: upgrade runner to Ubuntu 22.04
- Compile with GCC 11 and Clang 14.
- Remove redundant PPAs.
- Use system provided Meson.
- Update LeakSanitizer suppressions.
* CI: ensure `VIPS_BLOCK_UNTRUSTED` is tested
`magicksave` cannot be used for testing when building with
`-Dmodules=enabled` (default), since that would require the
loadable modules to be installed first.
2022-06-12 12:24:30 +01:00
John Cupitt
fe22f80f7d
Merge branch 'master' of github.com:libvips/libvips
2022-06-12 12:24:06 +01:00
Kleis Auke Wolthuizen
7553f60aed
Minor cleanups ( #2857 )
...
- Remove `HAVE_LCMS` definition in favor of `HAVE_LCMS2`.
- Remove `HAVE_WINDOWS_H` definition in favor of `G_OS_WIN32`.
- Remove stray `vips_text_get_type` in `conversion.c`.
- Remove duplicated `unistd.h` include.
- Remove redundant `strcasecmp` definition, we use `g_ascii_strcasecmp` everywhere.
- Remove unnecessary header checks in `configure.ac` and `meson.build`.
- Ensure `unistd.h` include is guarded with `HAVE_UNISTD_H`.
- Fail early when `-Dfontconfig=enabled` and `pangoft2` is not found.
2022-06-12 12:22:36 +01:00
John Cupitt
b0f38b5197
add tests for tiffload/save_target, dzsave_target
2022-06-12 12:18:45 +01:00
John Cupitt
7fbdb01fb9
try to make cgifsave easier to read ( #2853 )
...
* try to make cgifsave easier to read
and fix a few memory errors
* move another loop out of write_frame
slightly smaller
2022-06-12 11:25:32 +01:00
John Cupitt
b74504b985
Merge branch 'master' of github.com:libvips/libvips
2022-06-12 11:08:47 +01:00
John Cupitt
687209e1cb
add some notes on getting nifti working
2022-06-12 10:41:02 +01:00
Kleis Auke Wolthuizen
296c263099
Meson: maintain autotools compatibility on macOS ( #2856 )
...
By setting the correct compatibility/current version.
2022-06-11 22:54:43 +01:00
Kleis Auke Wolthuizen
cdf12dd849
Mark Poppler as untrusted ( #2855 )
2022-06-11 16:25:28 +01:00
Kleis Auke Wolthuizen
1214f942f9
Prefer to use flags |=
everywhere ( #2854 )
...
Use the bitwise OR assignment operator to ensure that derived
classes does not overwrite the flags from the base class. Also,
move the flags from `openslideload_source` to its base class.
2022-06-11 15:40:39 +01:00
John Cupitt
c7baa4535a
cleaner blocking code
...
thanks kleis!
2022-06-11 15:37:27 +01:00
John Cupitt
399fba2124
fix error in prev commit
2022-06-11 14:03:45 +01:00
John Cupitt
8bf90ed44e
fix BLOCK_UNTRUSTED after previous commit
2022-06-11 12:38:43 +01:00
John Cupitt
bd65ddda66
fix operation_block_set
...
kleis discovered that it needs a full class name, and found a missing
"*"
2022-06-11 11:41:03 +01:00