You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking:VipsRegion retains the backing buffer lifetime. Lazy multi-image
operations constrain every input buffer, including secondary images and masks.
Breaking:VipsInterpolateMethod::call is unsafe because prepared-region,
output-size/alignment, and method/interpolator invariants cannot be inferred.
VipsInstance and init share vips-sys's initialization lock and success state.
Failures do not consume the singleton slot. Dropping a VipsInstance leaves the
process-wide library alive for outstanding images and workers.
Drawing detaches borrowed/shared memory before its first modification, preserving
immutable Rust inputs. Memory constructors validate size, dimensions and alignment.
Invalid linear arrays and overflowing/invalid median sizes return errors.
Performance
VipsOwnedBuffer, write_to_memory_owned and write_to_buffer_owned avoid the
additional full-output copy and allocation into a Rust Vec; existing Vec APIs
delegate to the same RAII owner so all returned native allocations are freed.
from_memory retains the original Vec allocation, including spare capacity,
rather than shrinking it through into_boxed_slice.
Add a release-mode ABBA raw-export benchmark. Existing perf_smoke timings now
force pixel evaluation instead of timing lazy pipeline construction alone.
These wrap stable libvips 8.18 APIs; RAW/HDR support depends on optional native codecs.
Validation and delivery
Add borrowed-secondary/conditional/region lifetime regressions, initialization
contention and retry checks, native output ownership/drawing/shape tests, and
8.18 colour/metadata checks.
Resolve published vips-sys 0.3.0 from crates.io for local builds and CI,
including its Windows/vcpkg discovery fix and native build improvements.
The lockfile records the registry source and package checksum; CI no longer
needs a sibling checkout. Local development can still use [patch.crates-io].
CI exercises 8.18 APIs on macOS and default APIs with Linux distro libraries;
CodeQL also tracks the default main branch.
Added
VipsImage::thumbnail_file — vips_thumbnail constructor that combines load + resize (shrink-on-load). Preferred for file sources over from_file + thumbnail.
VipsImage::thumbnail_buffer — vips_thumbnail_buffer constructor for encoded image bytes. Preferred over from_buffer + thumbnail.
examples/ops_smoke smoke coverage for the new APIs.
Changed
Point package.documentation and README docs links at https://docs.rs/vips/ (drop GitHub Pages URLs).
Document that VipsImage::thumbnail (vips_thumbnail_image) is only for already-decoded pixels; file/buffer sources should use thumbnail_file / thumbnail_buffer (issue #9).
VipsBuffer::thumbnail now takes an explicit VipsSize instead of hardcoding VIPS_SIZE_FORCE, is implemented on [u8] (so &[u8]/Vec<u8> work with correct lifetimes), and delegates to VipsImage::thumbnail_buffer.