John Cupitt
538aa2a841
remove autotools ( #2941 )
...
* remove autotools
It seems to all work. I tested with gtk-doc enabled. I probably missed a
few things argh.
* oop, forgot m4/
2022-07-24 11:14:52 +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
Kleis Auke Wolthuizen
5b79a744a7
thumbnail: avoid upsizing via libwebp ( #2874 )
2022-06-19 12:02:00 +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
Kleis Auke Wolthuizen
bae0342d95
Update C++ binding and function list ( #2851 )
...
* Update C++ binding and function list
Also, start with a capital letter in descriptions whenever possible.
* Ensure `dzsave_target` is generated
2022-06-10 14:43:44 +01:00
John Cupitt
460a19b78e
revise arg names
...
use _ everywhere (we have a few uses of - as a separator)
2022-05-07 14:50:05 +01:00
John Cupitt
cdcafbc4c5
add changelog notes
...
and linewrap for 80 column limit
2022-05-07 12:51:58 +01:00
Kleis Auke Wolthuizen
894ed1cb13
Resize improvements; add `ceil` and `gap` options ( #1769 )
...
* Add a round-up option to shrink
* Only leave the final 200% to reduce
* Add gap option to reduce and resize
* Add unit tests
* Incorporate feedback
2022-05-07 12:45:38 +01:00
John Cupitt
f06c9f3bcf
add fail-on to thumbnail
...
see https://github.com/libvips/libvips/discussions/2781
2022-04-28 09:08:34 +01:00
Kleis Auke Wolthuizen
07edfe37b1
Improve symbol visibility ( #2688 )
...
* Improve symbol visibility
* Decorate required internal symbols with VIPS_API
* Remove a couple of stray header decls
* Incorporate review comment
- Ensure symbol visibility is also set on static libraries.
- Prefer to use `cc.has_function_attribute('visibility:hidden')`.
* Don't export internal deprecated symbols
* Move deprecated symbols to vips7compat.h
* `IM_FORMAT_H` -> `VIPS_FORMAT_H`
* Move `vips_window_ref` compat stub to `vips7compat.c`
* Disable deprecation warnings internally
* `vips_image_get_kill` -> `vips_image_iskilled`
* Ensure API compatibility
* Add missing include directives
* Move `vips__init` decl to vips7compat
* Move `vips__get_sizeof_vipsobject` to vips7compat
* Fix introspection build
* Fix 2 introspection warnings
* Ensure compatibility with vipsdisp
/usr/bin/ld: tilesource.o: in function `tile_source_new_from_source':
vipsdisp/tilesource.c:1627: undefined reference to `vips__region_no_ownership'
2022-04-16 10:58:55 +01:00
John Cupitt
55723a980f
add a seq to thumbnail_image
...
otherwise we can get horrible cache thrashing as the shrink will run
without any locality
2022-04-14 10:37:17 +01:00
John Cupitt
168d7652c2
Merge branch '8.12'
2022-03-11 16:25:11 +00:00
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
ede67090cb
revise resample docs
...
see https://github.com/libvips/libvips/discussions/2711
2022-03-06 11:42:27 +00:00
John Cupitt
3073ee90b7
Improve edge handling for mapim ( #2681 )
...
* almost there
* smol changes
* getting close now
segv on the test suite, annoyingly
* argh still not quite thert
* phew
2022-02-28 09:12:09 +00:00
Kleis Auke Wolthuizen
0337c09700
Cleanup gettext handling ( #2695 )
...
Use GLib's i18n support instead of copying and pasting that
logic into its own header. This deprecates the vips/intl.h
header in favour of glib/gi18n.h.
2022-02-27 15:27:28 +00:00
Kleis Auke Wolthuizen
50a74ceeec
Mark some functions and variables as static ( #2691 )
...
These are only used in the same file, and not exported.
2022-02-27 13:41:39 +00:00
Corentin Noël
02901436d4
Add meson build system ( #2637 )
...
Allows to use the Meson build system to build the project.
2022-02-08 15:19:36 +00:00
Kleis Auke Wolthuizen
42c8f43432
Improve doc comments ( #2504 )
...
* Fix a couple of incorrect doc comments
Helps GIR.
* Add missing doc comment for VIPS_KERNEL_MITCHELL
2021-10-29 13:37:39 +01:00
John Cupitt
6f9d3ecf91
Merge branch '8.11'
2021-09-05 12:00:20 +01:00
Kleis Auke Wolthuizen
632badabe1
Ensure vips_thumbnail doesn't send an axis to 0 ( #2416 )
2021-09-05 11:58:44 +01:00
John Cupitt
2041f228f5
fix thumbnail with small plus crop plus no upsize
...
thumbnail could fail for small images if upsize was disallowed and crop
was enabled, thanks Andrewsville
see https://github.com/libvips/libvips/issues/2157
2021-07-18 15:00:35 +01:00
John Cupitt
69fcf1b9e9
Merge branch 'master' into add-openjpeg
2021-03-27 15:22:13 +00:00
John Cupitt
9589a51f09
fix a compiler warning
2021-03-27 11:35:07 +00:00
Fabrice Fontaine
1b002cc32b
drop last remnant of dmalloc
...
Drop last remnant of dmalloc which was removed in version 7.28.0 with
ae8faf6597
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-03-22 23:49:54 +01:00
John Cupitt
7a900e0a4e
add vipsthumbnail support for jp2k
...
It'll use the jp2k pyramid, if possible.
2021-03-20 12:33:38 +00:00
John Cupitt
fc4ad15f97
Merge branch '8.10'
2021-03-07 12:26:24 +00:00
John Cupitt
6666b941bf
fix a ref leak in vipsthumbnail
...
from the previous refactoring
2021-03-06 13:33:00 +00:00
John Cupitt
2e56828053
Merge branch '8.10'
2021-03-06 11:47:02 +00:00
John Cupitt
726fded66c
formatting
2021-03-05 11:24:00 +00:00
John Cupitt
9585feb5a8
allow thumbnail colourspace export with no import
...
allow this case:
vipsthumbnail k2.jpg --export-profile cmyk
for an image with no embedded profile
2021-03-05 11:11:49 +00:00
John Cupitt
c4d56fd475
Merge branch 'revise-premultiply' of github.com:libvips/libvips into revise-premultiply
2021-03-05 10:46:21 +00:00
John Cupitt
ef4f95cddc
cleanup for Kleis comments
2021-03-05 10:46:06 +00:00
John Cupitt
ea2264ea2e
Update libvips/resample/thumbnail.c
...
Co-authored-by: Kleis Auke Wolthuizen <github@kleisauke.nl>
2021-03-05 10:44:31 +00:00
John Cupitt
e1fc576252
back to srgb/b-w processing space
...
for compat in thumbnail behaviour
2021-02-27 16:34:50 +00:00
John Cupitt
303513e52d
small comment polish
2021-02-27 16:00:33 +00:00
John Cupitt
3c60e9de60
start tinkering
2021-02-24 14:48:50 +00:00
John Cupitt
eacef0799a
mapim nan-avoidance was not quite right
...
fix the nan-avoidance code in mapim
2021-02-22 09:37:35 +00:00
John Cupitt
29599e00eb
avoid NaN in mapim
...
We were not avoiding NaN in float transform images, leading to segvs in
some cases.
Thanks afontenot
see https://github.com/libvips/libvips/issues/1971
2021-01-30 15:17:25 +00:00
John Cupitt
df3b80fa40
add vipssave_target()
2021-01-02 15:49:32 +00:00
Kleis Auke Wolthuizen
4533375f63
Fix centre convention
2020-11-02 13:51:27 +01:00
Kleis Auke Wolthuizen
fdc140e8e9
Round sum values to the nearest integer in *_notab
2020-11-02 13:51:27 +01:00
Kleis Auke Wolthuizen
49d8051e22
Revert "Remove round-to-nearest behaviour"
...
This reverts commit ac30bad6
2020-11-02 13:51:27 +01:00
John Cupitt
e3181e0579
get docs building with goi 1.66+
...
It builds now, but some doc sections are missing. Fix this properly in
8.11.
See https://github.com/libvips/libvips/issues/1836
2020-09-28 12:32:06 +01:00
John Cupitt
10bada0161
tiny thumbnail speedup
...
thumbnail can skip premultiply/unpre if there's no residual resize
2020-09-21 09:38:11 +01:00
John Cupitt
48a2551957
fix TIFF thumbnail of buffer and source
...
We had dropped a couple of patches.
see https://github.com/libvips/libvips/issues/1815
2020-09-14 17:26:19 +01:00
John Cupitt
cdcf63f8e5
fix regression in thumbnail of pyr tiff
...
The new subifd pyramid thumbnail code broke the old page-based pyramid
detector.
Thanks tand826
See https://github.com/libvips/libvips/issues/1784
2020-08-17 10:10:23 +01:00
John Cupitt
97eb2e53bd
missing copy-memory during thumbnail rotation
...
see https://github.com/libvips/libvips/issues/1704#issuecomment-655691041
2020-07-09 07:08:49 +01:00
John Cupitt
5540fa97f4
small cleanups for disable deprecated
...
- move matrixinvert to mosaicing, fix a leak
- add note to changelog
- small fixes
see https://github.com/libvips/libvips/pull/1593
2020-06-28 12:14:13 +01:00
Kleis Auke Wolthuizen
f6b9f382ec
Avoid using unneeded variables
2020-06-18 14:40:29 +02:00