Giter Site home page Giter Site logo

bow's People

Contributors

azranel avatar boochek avatar drozdzynski avatar hodak avatar jtomaszewski avatar k4ju avatar kacperpucek avatar mentero avatar mskv avatar rindek avatar skarpesh avatar szajbus avatar teamon 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

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

bow's Issues

Bow not on hex.pm and not adequately documented

Some hopefully helpful eedback:

  1. Bow is not available on hex.pm. I got it using github
  2. Adding the following to the photo schema file does not work:

def changeset(photo \ %MODULE{}, params) do
photo
|> cast(params, [:photo, :sort_order, :alt_tag, :title, :description, :publish])
|> Bow.Ecto.cast_uploads(params, [:photo])
|> Bow.Ecto.validate([:photo])
end

It doesn't recognize Bow.Ecto. I tried

use Bow.Ecto

and

use Bow.Ecto.Schema

I would say this plugin is not adequately documented. If there is a fully working example with Phoenix 1.3, that would be very helpful. Let me know how I can help on that front.

I think it would be awesome to have something as smooth and well documented as Carrierwave in Elixir.

Best documentation is very explicit, nothing implicit for an easier onboarding path for Elixir noobs. Having looked at the code, it does look quite a bit more concise than Arc :)

(Protocol.UndefinedError) protocol Enumerable

This code

  def transform(source, target, :thumb) do
    Bow.Exec.exec source, target,
      "convert ${input} -strip -gravity Center -resize 250x175^ -extent 250x175 ${output}"
  end

produces this error

{:error,
 %{
   original: :ok,
   thumb: {:error,
    %Protocol.UndefinedError{
      description: "",
      protocol: Enumerable,
      value: "convert ${input} -strip -gravity Center -resize 250x175^ -extent 250x175 ${output}"
    }}
 }}

I think is this part about put info about input and output of command

https://github.com/Recruitee/bow/blob/master/lib/bow/exec.ex#L43-L45

    cmd =
      command
      |> Enum.map(fn

If I try

command = "convert ${input} -strip -gravity Center -resize 250x175^ -extent 250x175 ${output}"
cmd = command |> Enum.map(fn x -> x end)

return

** (Protocol.UndefinedError) protocol Enumerable not implemented for "convert ${input} -strip -gravity Center -resize 250x175^ -extent 250x175 ${output}" of type BitString. This protocol is implemented for the following type(s): Ecto.Adapters.SQL.Stream, Postgrex.Stream, DBConnection.Stream, DBConnection.PrepareStream, HashSet, Range, Map, Function, List, Stream, Date.Range, HashDict, GenEvent.Stream, MapSet, File.Stream, IO.Stream
    (elixir 1.10.1) lib/enum.ex:1: Enumerable.impl_for!/1
    (elixir 1.10.1) lib/enum.ex:141: Enumerable.reduce/3
    (elixir 1.10.1) lib/enum.ex:3383: Enum.map/2

I think the purpose of this code snippet is to have the final command to process the conversion, so I tried to map the input and output to put the information, but I was not successful ๐Ÿ˜ž

Bow vs. Arc ?

Could you please add a sentence to your Readme.md, (or send me a a reply) about why someone might want to choose Bow over Arc, or vice versa?

Thanks.

Trying to get bow from hex.pm

I am trying to get bow from hex.pm, but it says it does not recognize the package.

Could you let me know how to write the code to get it directly from github.

Thanks.

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.