GithubHelp home page GithubHelp logo

basictextrender.jl's People

Contributors

ianbutterworth avatar juliatagbot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

t-bltg

basictextrender.jl's Issues

Height 23 does not work

img = rand(RGBA{Float64},80,700)
overlaytext!(img, "BasicTextRender.jl", 60, (10,40)) # works
overlaytext!(img, "BasicTextRender.jl", 23, (10,40)) # fails

Error:

ERROR: DimensionMismatch: arrays could not be broadcast to a common size; got a dimension with lengths 24 and 23
Stacktrace:
  [1] _bcs1
    @ ./broadcast.jl:516 [inlined]
  [2] _bcs
    @ ./broadcast.jl:510 [inlined]
  [3] broadcast_shape
    @ ./broadcast.jl:504 [inlined]
  [4] combine_axes
    @ ./broadcast.jl:499 [inlined]
  [5] _axes
    @ ./broadcast.jl:224 [inlined]
  [6] axes
    @ ./broadcast.jl:222 [inlined]
  [7] check_broadcast_axes
    @ ./broadcast.jl:543 [inlined]
  [8] check_broadcast_axes
    @ ./broadcast.jl:546 [inlined]
  [9] instantiate
    @ ./broadcast.jl:284 [inlined]
 [10] materialize!
    @ ./broadcast.jl:871 [inlined]
 [11] materialize!(dest::SubArray{RGBA{Float64}, 2, Matrix{RGBA{Float64}}, Tuple{UnitRange{Int64}, UnitRange{Int64}}, false}, bc::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{2}, Nothing, typeof(+), Tuple{Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{2}, Nothing, typeof(*), Tuple{Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{2}, Nothing, typeof(-), Tuple{Int64, Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{2}, Nothing, typeof(alpha), Tuple{Matrix{RGBA{Float64}}}}}}, Matrix{RGBA{Float64}}}}, Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{2}, Nothing, typeof(*), Tuple{Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{2}, Nothing, typeof(alpha), Tuple{Matrix{RGBA{Float64}}}}, Matrix{RGBA{Float64}}}}}})
    @ Base.Broadcast ./broadcast.jl:868
 [12] overlaytext!(img::Matrix{RGBA{Float64}}, str::String, height::Int64, bottomleft::Tuple{Int64, Int64}; font::String, color::RGBA{Float64})
    @ BasicTextRender ~/.julia/packages/BasicTextRender/FMCWD/src/BasicTextRender.jl:81
 [13] overlaytext!(img::Matrix{RGBA{Float64}}, str::String, height::Int64, bottomleft::Tuple{Int64, Int64})
    @ BasicTextRender ~/.julia/packages/BasicTextRender/FMCWD/src/BasicTextRender.jl:78
 [14] top-level scope
    @ REPL[303]:1

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.