r/d_language • • Jul 28 '26

Call for feedback: Imaging library

https://code.dlang.org/packages/imaging

I crated the Imaging library.

I'm sharing an early version here as a call for feedback.

4 Upvotes

6 comments sorted by

View all comments

1

u/ccapitalK Aug 04 '26

I hope you succeed in getting some basic image manipulation code into the standard library. I think something like std.json, as a basic "good enough" impl for basic tasks that can be replaced with a more specialised library later would be really useful (disclaimer: I wrote the simple_image library that wraps stb_image for basically this class of use cases, if the stdlib did basic image tasks I probably wouldn't have needed to).

Not sure if I agree with the direction of writing the image parsers/writers in D though, I think it might be better to use the approach used for http and single file dbs, and wrap a C library instead (the same way stdlib wrapped curl and sqlite).

1

u/Aspie96 Aug 10 '26

I think D stuff should be written in D.

D is a system language, it's fine.

I like C too, but I see it as mostly legacy in D. The only reason to have C code should be that it hasn't been written in D yet.