Giter VIP home page Giter VIP logo

eblurhash's Issues

Do not redistribute the blurhash binary

The versions published to hex redistribute the blurhash binary in priv/

Unfortunately it's builded for MacOS only, so it can't be used directly on other systems. Removing the binary triggers the source recompilation and then it works.

> file blurhash
blurhash: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>

** (FunctionClauseError) no function clause matching in :eblurhash.os_filename/2

Trying to use this in Elixir and getting the following error:

iex(1)> :eblurhash.magick("/home/alex/Pictures/me-avatar.png")
** (FunctionClauseError) no function clause matching in :eblurhash.os_filename/2    
    
    The following arguments were given to :eblurhash.os_filename/2:
    
        # 1
        "/home/alex/Pictures/me-avatar.png"
    
        # 2
        []
    
    (eblurhash 1.0.0) /home/alex/Projects/pleroma/deps/eblurhash/src/eblurhash.erl:104: :eblurhash.os_filename/2
    (eblurhash 1.0.0) /home/alex/Projects/pleroma/deps/eblurhash/src/eblurhash.erl:39: :eblurhash.magick/1

Blurhash compiles into a Mach-O executable on Linux

The title pretty much describes itself.
eblurhash:magick/1 returns {ok,<<"/bin/sh: 1: /home/portasynthinca3/yamka/_build/default/lib/eblurhash/priv/blurhash: Exec format error">>}.
eblurhash:hash/3 returns {error, format}.

$ uname -a
Linux lon1 5.10.0-8-amd64 #1 SMP Debian 5.10.46-5 (2021-09-23) x86_64 GNU/Linux
$ file _build/default/lib/eblurhash/priv/blurhash
_build/default/lib/eblurhash/priv/blurhash: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>

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.