
@ryanc Thanks for fixing my MySQL problem!

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?

…. hoping it’s the latter…

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

I don’t think there are transformations builtin.

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

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.

You can read pixel values and resize them though.

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?

I will take a look.

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



Haven’t tried them.

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

@sanchom Deja vu! https://stackoverflow.com/questions/38139043/racket-and-opencv

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

Do you mean racket/draw or pict ?

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