-
-
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
Error: magicksave: libMagick error: NoEncodeDelegateForThisImageFormat `gif' #2402
Comments
I tried using copydeps for the libMagickCore-7.Q16HDRI.so.7 and copied over the ImageMagick folder in lib to lib-filtered like we do with glib2, but it did not help. Not sure what to try next. |
If you've made additions to https://github.com/lovell/sharp-libvips/blob/master/build/lin.sh then please provide the complete modification, perhaps as a forked repo/branch. My best guess would be that you need to make the following changes: - --disable-static --enable-shared --with-modules
+ --enable-static --disable-shared --without-modules |
Thanks! Hopefully that's it! I was following this: #2012 (comment) but having issues with the LDFLAGS, so I think in my journey down the rabbit hole I must have changed those settings. I posted a question about it in #2012 as well a while back, but didn't get very specific so I figured I'd create a new question for it. I need to get better at my copy/pasta. Btw, love this project! I'll post back if it works. |
It worked! It's slow, but it works. I think this is back to where I started, so now I don't know what I did wrong the first time. 🤷 GIFs are so much fun. Thanks for the help! |
@cthorner mind if I ask you the complete lin.sh you used? or at least the portion of the file you modified? I'm trying to compile a version with gif support and I'm getting the same error you got in the title |
Did you see the documentation relating to installation?
Yes
Have you ensured the architecture and platform of Node.js used for
npm install
is the same as the architecture and platform of Node.js used at runtime?Yes
Are you using the latest version? Is the version currently in use as reported by
npm ls sharp
the same as the latest version as reported bynpm view sharp dist-tags.latest
?Custom build
If you are installing as a
root
orsudo
user, have you tried with thenpm install --unsafe-perm
flag?build/lin.sh
If you are using the
ignore-scripts
feature ofnpm
, have you tried with thenpm install --ignore-scripts=false
flag?N/A
What is the complete output of running
npm install --verbose sharp
? Have you checked this output for useful error messages?N/A
What is the output of running
npx envinfo --binaries --system
?npx envinfo --binaries --system
npx: installed 1 in 1.352s
System:
OS: Linux 4.19 Amazon Linux 2
CPU: (4) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 1.08 GB / 1.94 GB
Container: Yes
Shell: 4.2.46 - /bin/bash
Binaries:
Node: 10.21.0 - /var/lang/bin/node
npm: 6.14.4 - /var/lang/bin/npm
ISSUE
I'm trying to use the new gif animation functionality and it is failing for GIFs. It is working great for WEBP.
The error (looks like a libmagick error) is:
Error: magicksave: libMagick error: NoEncodeDelegateForThisImageFormat `gif'
Here is what I'm using to install libmagcik
I have libMagickCore-7.Q16HDRI.so.7 and libgif.so.7 in my vendors/8.10.1/lib directory, but I noticed at the end of the libmagick build I get:
I'm getting that libmagick is compiled with GIF:
GIF* GIF rw+ CompuServe graphics interchange format
GIF87* GIF rw- CompuServe graphics interchange format (version 87a)
but those "coders" (are these the plugins libmagick refers to?) are nowhere to be seen in the final bundle unless they are par of libMagickCore-7.Q16HDRI.so.7.
For VIPS I'm getting:
My question is:
Do I need to manually copy those "coders" in my build script? Or use copydeps in the build/lin.sh script?
The text was updated successfully, but these errors were encountered: