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
./main.go:26:2: undefined: imagick.Initialize | ./main.go:27:8: undefined: imagick.Terminate | ./main.go:28:8: undefined: imagick.NewMagickWand #269
Comments
How did you come to the idea to try and disable cgo in your build? This library is a binding around the ImageMagick C library, so cgo is a hard requirement. If you disable it, then you get errors when it does not generate any C code or link against ImageMagick. |
Thank you so much @justinfx
Error
Thank you so much for the help. |
@andysteve we are back to your originally posted issue where you have left ImageMagick out of your build and runtime images. It's a hard requirement. |
Is there a way you can help me out on this such that i include it in my build and run time images? |
Well in your previous issue (#268) you were installing the
|
Thank you @justinfx let me try and get back to you. |
have tried following up on the docker file you have provided @justinfx and am thanks full. but still, i get an error bellow "gopkg.in/gographics/imagick.v3/imagick" Docker file
Error |
Your Debian docker image is likely providing you with ImageMagick 6 instead of 7. Please switch to using the v2 version of the imagick bindings instead of v3. |
Thank you so much @justinfx for helping me out on this. My Docker image was finally built successfully I changed to this version and it's the one that is working.
the only error that am facing now is
|
That is specific to ImageMagick GhostScript plugin. This link will probably help you: |
Thanks @justinfx i still continue to get this error
is there a way i can solve this issue via docker image? |
Yes I would have thought you could fix it in your runtime docker image, by editing or removing the policy file. |
Thank you so much my friend @justinfx I managed to solve most of the bugs, with docker issues, Docker
the only thing that is remaining is that |
Congrats on getting it working.
Probably because you are writing it into a directory inside of your container. You likely need to google how to use volumes with docker, to have it mount a directory from your host into the container, where you can write your images and access them on the outside. |
Thank you so much for that brother. @justinfx |
hello @justinfx but when it comes to writing image sample of volume i use
it doesn't write images from docker outside docker though when I upload a file I can access it via the volume kindly help |
This seems wrong and should be |
Thank you @justinfx for supporting me all the way from alpine up to here , I have finally got it working . One more reason to give credit to open source. My challenge was writing the proper docker file and proper docker run command including ImageMagick to help solve the issue I was getting. |
Hello am using Debian with docker to install the ImageMagick library
in our project
but still am getting an error
"gopkg.in/gographics/imagick.v3/imagick"
Docker file
Error message
kindly help
The text was updated successfully, but these errors were encountered: