sbs
Trending in Announcing
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
Hello,
I’m sharing my plugin here in forum after some time so it has time to mature and proof yourself.
I use Claude Code daily on a pr...
New
Aloha gang,
There’s a new class of AI model out from TypeSafe. Jev is their flagship model. You can learn about it here:
...
New
I’ve recently created a small library phoenix_vite integrating the vite build tooling with phoenix.
It
provides an igniter.installer t...
New
I needed something like premailer for rails, and after searching, I decided to make an easy-to-use library to handle inline styles and co...
New
If you’ve ever had to debug a BEAM node you know it can be a painful process. Parsing raw data, or dealing with clutter often gets in the...
New
Other Trending Topics
Hey there,
I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first.
...
New
Hi everyone :waving_hand:
I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly)
AI dream has many faces, but general...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Code BEAM Europe 2026 – Call for Talks is Open!
We’re excited to announce that Code BEAM Europe 2026 is now open for talk submissions :t...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #elixirconf-us
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #security
- #elixirconf-eu
- #api
- #forms
- #performance










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Neurofunk
Hey that’s quite nice!
Does it only do ANSI output or is there any chance you’d implement images? Perhaps by taking Francois Ribemont / qrcode · GitLab as a backend?
sbs
Thanks!!
Don’t have plan to include png encoder. Render to terminal is just one way to represent the qr code, though one can pipe the data to any other png library.
Eiji
@sbs: No need to implement png encoder from scratch. Just draw QR code in canvas and add simple option to export it.
For example you can draw a canvas and change it to image really easy in JavaScript:
It’s much more simpler and allows to simple export in much more formats without any library for this!
Raddi_On
How is that supposed to work? We have
QRCode.encode("some data)with “canvas”?How?
Eiji
@Raddi_On: Just few steps:
jsonformat)0(white) and1(black) squares. Drawing squares in canvas is one of the easiest things to do.I will show you how it could look in Elixir:
As you can see square coordinates are noting special. You just need to know in which row and column you are and simply multiply them by number of pixels that you wish to have for each cell.
Raddi_On
Thanks.
What’s Canvas? It doesn’t exist in Elixir.
My goal is to something pass qr_code binary data into a Phoenix template where I can draw it with this:
How can I do this?
Eiji
@Raddi_On: Of course not. It’s only example, because
).
Elixiris easier thanJavaScript, so I could write it faster (also don’t usedJavaScriptfor some timeI just show you how to collect required info that you will need in Canvas.
Canvas is drawn by web browser.
Raddi_On
I know. But my question remains: how to pass qr code binary data to a Phoenix template? Or rather: what exactly should I pass given that I have
QRCode.encode("some data)?Eiji
@Raddi_On:
You can use for example request for
json.For example:
You can also use probably
Drab:Raddi_On
That’s an array of arrays. Doesn’t it have to be converted an image format before it’s passed to a phoenix template?