Giter VIP home page Giter VIP logo

exmagick's People

Contributors

dgvncsz0f avatar nirev avatar rranelli avatar soteras avatar thalesmg avatar umamaistempo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

exmagick's Issues

exmagick 0.5.0 doesn't compile on Apple Silicon (M1) with arm64 graphicsmagick

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

How to do generic "convert" functions?

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..?

New format to open issues

We could add a new format when someone wants to open a new issue. We can follow Elixir/Ecto format.

Environment

  • Elixir & Erlang versions (elixir --version):
  • Operating system:

Current behavior

Include code samples, errors and stacktraces if appropriate.

Expected behavior

Memory Leak

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

Transferência de mantenedor da biblioteca

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!

Integration with Ebert

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/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.