nirev / exmagick Goto Github PK
View Code? Open in Web Editor NEWGraphicsMagick bindings for Elixir
License: BSD 3-Clause "New" or "Revised" License
GraphicsMagick bindings for Elixir
License: BSD 3-Clause "New" or "Revised" License
I wasn't able to debug in depth, but I could not get mix deps.compile exmagick
to work on Apple Silicon (M1, 2020) using arm64 graphicsmagick
.
I kept getting this error:
glibtool: link: clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o /Users/hugo/workspace/seatscouts/gamma/_build/dev/.libs/libexmagick.0.dylib /Users/hugo/workspace/seatscouts/gamma/_build/dev/lib/c/.libs/exmagick.o -L/opt/homebrew/Cellar/graphicsmagick/1.3.36/lib -L/opt/home
brew/opt/freetype/lib -L/usr/local/lib /opt/homebrew/Cellar/graphicsmagick/1.3.36/lib/libGraphicsMagick.dylib -llcms2 -lfreetype -lbz2 -lz -lltdl -lm -lpthread -install_name /opt/homebrew/opt/freetype/lib/libexmagick.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-sin
gle_module
ld: library not found for -llcms2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/hugo/workspace/seatscouts/gamma/_build/dev/libexmagick.la] Error 1
==> exmagick
could not compile dependency :exmagick, "mix compile" failed. You can recompile this dependency with "mix deps.compile exmagick", update it with "mix deps.update exmagick" or clean it with "mix deps.clean exmagick"
** (MatchError) no match of right hand side value: {%IO.Stream{device: :standard_io, line_or_bytes: :line, raw: false}, 2}
/Users/hugo/workspace/seatscouts/gamma/deps/exmagick/mix.exs:13: Mix.Tasks.Compile.ExMagick.runcmd/2
/Users/hugo/workspace/seatscouts/gamma/deps/exmagick/mix.exs:8: Mix.Tasks.Compile.ExMagick.run/1
(mix 1.11.3) lib/mix/task.ex:394: Mix.Task.run_task/3
(mix 1.11.3) lib/mix/tasks/compile.all.ex:90: Mix.Tasks.Compile.All.run_compiler/2
(mix 1.11.3) lib/mix/tasks/compile.all.ex:70: Mix.Tasks.Compile.All.compile/4
(mix 1.11.3) lib/mix/tasks/compile.all.ex:57: Mix.Tasks.Compile.All.with_logger_app/2
(mix 1.11.3) lib/mix/tasks/compile.all.ex:35: Mix.Tasks.Compile.All.run/1
The only way I got this library to compile was installing a Rosetta 2 Homebrew and running arch -x86_64 /usr/local/bin/brew install graphicsmagick
.
The installed graphicmagick
was:
graphicsmagick: stable 1.3.36 (bottled), HEAD
Image processing tools collection
http://www.graphicsmagick.org/
/usr/local/Cellar/graphicsmagick/1.3.36 (494 files, 15.9MB) *
Poured from bottle on 2021-06-29 at 17:12:06
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/graphicsmagick.rb
==> Dependencies
Build: pkg-config ✘
Required: freetype ✔, jasper ✔, jpeg ✔, libpng ✔, libtiff ✔, libtool ✔, little-cms2 ✔, webp ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 6,606 (30 days), 22,585 (90 days), 106,490 (365 days)
install-on-request: 4,220 (30 days), 14,320 (90 days), 62,309 (365 days)
build-error: 0 (30 days)
This could be an issue with graphicsmagick
dependency or the way exmagick
is trying to make
it.
I'm on macOS 11.4
I'm just trying to do this...
gm convert -resize 300x input.jpg -crop 300x200+0+50 -extent 300x300 output.jpg
I am not sure why it isnt working though, it looks like this isnt a wrapper but every function has to be added..?
Does this plugin still work, is it being maintained?
We could add a new format when someone wants to open a new issue. We can follow Elixir/Ecto format.
Include code samples, errors and stacktraces if appropriate.
I'm processing about 2000 images per minute across 8 nodes in production and noticed that system memory is going up.
:erlang.memory() is stable, but system memory goes up by about ~50mb per hour per node until the VM just crashes.
It seems that the NIF bindings from exmagick might be the issue here where memory is not being freed up somewhere.
The commands I'm using are init! image_load!, image_dump!, and size!
0.0.5
Olá, pessoal!
Tudo certo?
Vi que a lib não está sendo mantida, com algumas issues abertas e sem novos commits.
Como eu fui um dos desenvolvedores iniciais da lib, será que vocês poderiam passar a lib para mim?
Para fazê-lo seria necessário transferir o pacote no hex:
mix hex.owner transfer exmagick nirev
Quanto ao repo, eu poderia simplesmente forkar e continuar ou transferir.
Obrigado!
Is exmagick supported on windows? What is the build process?
Because libtool does not seem to be in choco, and when installing graphicsmagick, exmagick still fails to find graphicsmagick-config, using graphicsmagick 1.3.28.
Here is the log from attempting to build:
https://gist.github.com/Moggers/9f90eb01fc37fabad8af4f4d3fd36b8a
Note, this project is correctly building on linux.
We could integrate with Ebert
Hello, @soteras! This is your first Pull Request that will be reviewed by Ebert, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.
Ebert project link:
https://ebertapp.io/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.