-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some images are only displayed in black & white, old Intel (before 2009) and QEMU-emulated CPUs #3893
Comments
This is due to the use of a custom CPU, possibly QEMU-emulated, with somewhat non-standard flags. There's an upstream fix to support this configuration at libvips/libvips#3763 that has not yet been included in a libvips release. You can workaround it for now with one of the following:
|
The |
@icetee You'll need to set |
I will use Docker and I defined the env before installing anything. If print the envs (printenv), I see VIPS_NOVECTOR=0 This is correct environment :/ |
It looks like the Line 204 in c9e3996
|
D'oh! I'll take a look at your PR now @icetee, thank you. |
Setting the CPU Type in Proxmox to "Host" instead of "default" did indeed solve the issue for me. |
v0.33.2 now available with prebuilt binaries that include libvips v8.15.1 and therefore the upstream fix. |
sorry, how to fix this |
@ImamAlfariziSyahputra Please ensure you are using at least version 0.33.2 of sharp. |
Same here inside a docker container on Linux:
Is the phrasing in the error specific to sharp? I wonder if there may be some other package that’s causing it. |
If you're relying on a globally-installed libvips, please ensure it is at least version v8.15.1. |
The following warning:
originates from Highway and indicates a discrepancy between the capabilities of the CPU and the requirements set by the prebuilt binaries. Specifically, the Details#include <cstdio>
#include <cstdint>
#define HWY_EMU128 (1LL << 61)
#define HWY_SCALAR (1LL << 62)
#define HWY_SSE2 (1LL << 14)
#define HWY_SSSE3 (1LL << 12) // S-SSE3
int main() {
const uint64_t bits_u = static_cast<uint64_t>(HWY_SCALAR | HWY_EMU128 | HWY_SSE2);
const uint64_t enabled = static_cast<uint64_t>(HWY_SCALAR | HWY_SSSE3 | HWY_SSE2);
fprintf(stderr,
"WARNING: CPU supports 0x%08x%08x, software requires 0x%08x%08x\n",
static_cast<uint32_t>(bits_u >> 32),
static_cast<uint32_t>(bits_u & 0xFFFFFFFF),
static_cast<uint32_t>(enabled >> 32),
static_cast<uint32_t>(enabled & 0xFFFFFFFF));
// WARNING: CPU supports 0x6000000000004000, software requires 0x4000000000005000
return 0;
} In summary, the appearance of this warning on an To check for the presence of specific features on Linux, one can examine |
Possible install-time or require-time problem
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.Are you using a supported runtime?
^18.17.0 || ^20.3.0 || >=21.0.0
Are you using a supported package manager and installing optional dependencies?
--include=optional
What is the complete output of running
npm install --verbose --foreground-scripts sharp
in an empty directory?What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?I'm building my project with Sharp (Next.js app) and some images are black & white. There's also a message when I'm running
npm run build
:The text was updated successfully, but these errors were encountered: