[–] 1 point 1 year ago (3 children)

If you do delve into improving the performance, I suggest using Rust and no_std crates for dealing with images, such as https://docs.rs/zune-jpeg/latest/zune_jpeg/.

It would probably take some time to get it working, but it would probably increase performance and support any format you can find a crate for. But it does not seem like it's worth it.

I'll add this to my list of "things I might to when I don't have a side project to waste my time on" :D

  • source
  • parent
  • context
  • [–] 1 point 1 year ago

    I've tried nextcloud, it felt too slow.

    Why would you want that all in one container?

    I don't want it, SeaFile provides only such conglomerate Dockerfile. And I didn't have much success with writing my own Dockerfile for it. It's terrible.

  • source
  • parent
  • context
  • [–] 1 point 1 year ago (1 child)

    To be honest, I know little about Mao and beginnings of PRC - I'm quite ignorant about how much of an "absolute leader" he was.

    But I do believe that idolizing a person and concentration of power are dangerous to democracy.

    And it's interesting how much responses I got on this topic.

  • source
  • parent
  • context
  • [–] 3 points 1 year ago (3 children)

    This is just what I need. A few months ago, SeaFile shat the bed and I just could be bothered to fix it. It's deployment is a mess - a server, then a frontend host, a reverse proxy, a database - all in one container!

    So I will try this out. I was contemplating building a thing like this myself, so I can contribute fixes/features too.

  • source
  • [–] 7 points 1 year ago (7 children)

    It's JavaScript.

    And it is slow, but not as slow as I expected it to be. I've optimized a photo I've taken with my DSLR, 6.3MB, 24MP, JPEG. It has taken ~50sec on this phone, in Firefox.

    I know, it's a phone, but also, my phone can and does save, optimize, and apply filters to such images in <1sec.

  • source
  • parent
  • context
  • [–] 3 points 1 year ago (8 children)

    Wait, how does this work in-browser? Does it send the photos to the local server where image magick does the job, or is it using javascript to read/write images, or does it contain WASM to do that?

  • source
  • [–] 69 points 1 year ago (5 children)

    Have you erased the continuation of the message that is saying something about "similar names, but are actually two distinct types"?

    It is a common error if you have two dependecies that export the same third dependency and your code makes an assumption that the versions of the third dep match.

    All other languages either straight-up don't support multiple versions of the same dep, or throw random errors at runtime. So this message is a consequence of rust supporting things that other langs only dream of.

  • source
  • view more: ‹ prev next ›