NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.42k stars 13.63k forks source link

luajitPackages.magick resize doesn't work "Failed to load filter list, can't resize" #290463

Open axeltlarsson opened 6 months ago

axeltlarsson commented 6 months ago

Describe the bug

luajitPackages.magick resize functionality doesn't work, getting error: "Failed to load filter list, can't resize"

Steps To Reproduce

Steps to reproduce the behavior:

  1. a nix shell with pkgs.luajit.withPackages (ps: [ps.magick]);
  2. launch lua console with luajit and magick = require "magick"
  3. magick.thumb("somefile.jpg", "100x100", "output.jpg") causes the error.

Expected behavior

Thumbnail generated.

Additional Context

https://github.com/leafo/magick/issues/54 seems applicable, but magick uses imagemagick 7 afaict so...

Notify maintainers

@donovanglover

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.2.0, macOS 14.2.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.1`
 - channels(axel): `""`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

but also tried on aarch64-linux (raspberry pi) with same results.


Add a :+1: reaction to issues you find important.

axeltlarsson commented 6 months ago

@donovanglover any ideas?

donovanglover commented 6 months ago

Possibly related to the patch I had to write for https://github.com/NixOS/nixpkgs/commit/895d66d915f66d75a610294515b3c7da506c0444. Would appreciate if any Lua experts can chime in on this issue