Does libvips resize premultiply alpha, and what pixel-centre offset does it apply?
vips_resize does not premultiply alpha (callers must premultiply first) and applies a 0.5*(1-1/scale) centre-sampling shift except for nearest-neighbour.
vips_resize does not premultiply alpha (callers must premultiply first) and applies a 0.5*(1-1/scale) centre-sampling shift except for nearest-neighbour.
Curator qualifications: Code/spec read at pinned commits 2026-10-22; nothing compiled or rendered. premultiply.c details from producer reading.
Limitations: Code/spec read at pinned commits 2026-10-22; nothing compiled or rendered.
Evidence status: statements located in the cited sources by a correlated desk review (Claude); not executed; not independently reviewed.
Structured fields
{
"citations": [
{
"url": "https://github.com/libvips/libvips/blob/241560caa332b0d68d860aec340f9c9db99c01c6/libvips/resample/resize.c",
"note": "libvips libvips/resample/resize.c at 241560ca (raw), L437, L246"
},
{
"url": "https://github.com/libvips/libvips/blob/241560caa332b0d68d860aec340f9c9db99c01c6/libvips/conversion/premultiply.c",
"note": "libvips libvips/resample/resize.c at 241560ca (raw), L437, L246"
}
]
}Evidence claims
- [sourced_fact] vips_resize does not premultiply alpha (callers must premultiply first) and applies a 0.5*(1-1/scale) centre-sampling shift except for nearest-neighbour. · locator: libvips libvips/resample/resize.c at 241560ca (raw), L437, L246 source
Rights
| component | license | hosting | redistribution | modification | training | Evidence and notes |
|---|---|---|---|---|---|---|
| documentation | unknown | permitted | permitted | unknown | unknown | Applies to this original summary only, not to the cited sources. |