soegaard2
2019-6-4 08:06:49

@ryanc Thanks for fixing my MySQL problem!


pocmatos
2019-6-4 08:31:42

Is there any library in Racket to deal with png/jpg etc ? I can see you can load them using bitmap from pict but I can’t see any transformations library on this like reading pixel color, converting to black-white or grayscale, resizing. Is this something that’s missing in the ecosystem or am I missing something?


pocmatos
2019-6-4 08:32:08

…. hoping it’s the latter…


soegaard2
2019-6-4 08:32:59

There is bitmap% and bitmap-dc% for working with bitmaps.


soegaard2
2019-6-4 08:33:21

I don’t think there are transformations builtin.


soegaard2
2019-6-4 08:34:01

Except for flomaps (but I don’t think that’s what you are looking for).


pocmatos
2019-6-4 08:35:35

Shame… Wanted to create a small utility to clean up my google photos drive by doing some basic recognition of similarity. Might call convert from imagemagik from racket to start with then.


soegaard2
2019-6-4 08:36:50

You can read pixel values and resize them though.


soegaard2
2019-6-4 08:38:03

Hmm. Maybe it’s possible to convert to grey scale too. What happens if you create a gray scale image and then use draw-bitmap to draw a color bitmap on top?


pocmatos
2019-6-4 08:50:35

I will take a look.


spdegabrielle
2019-6-4 09:15:40

http://Repl.it\|Repl.it is an online IDE that supports a variety of languages.

It would be nice if it supported Racket

Please upvote here: https://repl.it/language-requests/p/racket


soegaard2
2019-6-4 17:52:21


soegaard2
2019-6-4 17:52:40

Haven’t tried them.


soegaard2
2019-6-4 17:53:38

The first one has some small examples in the tutorials folder.


soegaard2
2019-6-4 19:03:28

joelmccracken
2019-6-4 20:38:37

Are there any packages that make it nicer to use the drawing library? it seems fine, just have noticed that using it involves a lot of manual math, and i’d rather think more abstractly


soegaard2
2019-6-4 20:39:09

Do you mean racket/draw or pict ?


soegaard2
2019-6-4 20:39:47

Not exactly “less math” but there are some pict tools here: https://docs.racket-lang.org/metapict/index.html?q=metapict