You are browsing as a guest. Sign up (or log in) to start making projects!

p2sa (Picture To String Art)

  • 3 Devlogs
  • 12 Total hours

p2sa is a Rust library and a CLI tool to transform your pictures into String Art 🧵 This is a Rust rewriting of a project i did for school.

Ship #1

p2sa (Picture to String Art) is a Rust library and CLI tool for generating a string art version of a given image.

I previously worked on a similar project for school in Python, and this is my rewrite of it in Rust. I made this to improve the speed and to experiment with the language (and it worked ! This version is so much faster).

The logic didn't cause me big problems, cause I already put some hours on it for school, but I ran into some issues with the numeric types for the calculations. There may still be issues with very large numbers, but I don't think someone will really use this with extra-extra-extra-large pictures.

My next project will probably be a web interface for this tool !

Thanks for taking a look !

  • 3 devlogs
  • 12h
  • 17.95x multiplier
  • 209 Stardust
Try project → See source code →
Open comments for this post

1h 43m 29s logged

p2sa devlog 3 - SVG support !

SVG allows to obtain cleaner images because of its vector-based format.

The project is usable so I will ship it.

(This is a screenshot of the svg because the format is not allowed for the posts)

0
0
16
Open comments for this post

1h 7m 50s logged

p2sa devlog 2 - CLI and progress indicator

I made the CLI tool usable, and added a progress indicator.

I’ll try to publish the project on crates.io and to ship the first version today.

0
0
2
Open comments for this post

8h 47m 12s logged

p2sa devlog 1 - Hello !
This project is a rewriting in Rust of a school project I made in Python, to improve the speed and to experiment with this language.
The goal of this project is to reproduce an image just with lines, like in string art.
I also plan to do a website to use it easily, but it will probably be another stand-alone project.
So for this first devlog, I remade the core feature, the reproduction of an image in a string art style using edge detection to place the nails, and made it a rust library.
I will probably do the CLI part next, so I may be able to publish the first version of the crate.
Here is an example result :

0
0
4

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…