HN Simulatornew | past | comments | lists | submit | jcupitt's commentslogin

We just banned gen-AI PRs, it seems to be working so far.

Commercial dev is about results and money, and that makes AI almost impossible to resist.

OSS has always been about process. The pleasure is in tinkering with code, collaborating with friends on a fun new idea, and helping people. I don't care about speed.


The fix is pretty easy -- you should call `block_untrusted` to stop loaders like matlab from running:

https://www.rubydoc.info/gems/ruby-vips/Vips.block_untrusted

You can also set the env var `VIPS_BLOCK_UNTRUSTED`, which might be easier.

You can block or allow specific load operations, so you can limit format support to just the types you need:

https://www.rubydoc.info/gems/ruby-vips/Vips#block-class_met...

That might be even better.

There was a post on libvips.org about this a while ago:

https://www.libvips.org/2022/05/28/What's-new-in-8.13.html

And a note about it in the checklist for devs:

https://www.libvips.org/API/current/developer-checklist.html...


I wanted to say I really, really appreciate your comment here John. libvips is a very useful tool set and maintaining it is certainly a bigger public challenge than I ever took on. I just wish the Ruby on Rails community had hardened their use of it sooner. Again, thank you.


libvips shouldn't be calling imagemagick for heif decode, it has a nice one built in. Unless you were using a very old libvips!

I've found jemalloc works best for long running libvips processes, fwiw.


Hello, looks nice! I had a few thoughts:

- I'd consider adding support for libvips smartcrop, ICC colour management, HDR, image alpha

- can you join pipelines? you could have one making a background, one making a foreground, then composite them, for example

- your benchmarks don't measure peak memory use, it can be a useful thing to test, especially if people are processing large images (eg. the output of every modern smartphone sigh)

- have you benchmarked against nip4, the official libvips GUI? it has a CLI mode you can run with GNU parallel

- I agree, a CLI mode for your tool sounds useful


Hi, thanks for the comments.

- I'd consider adding support for libvips smartcrop, ICC colour management, HDR, image alpha Fair enough - I wanted to first see if there's interest in the tool and then I'd definitely add more functions.

- can you join pipelines? you could have one making a background, one making a foreground, then composite them, for example No, you can't join them currently in this way. Sounds like an interesting advanced feature to add.

- your benchmarks don't measure peak memory use, it can be a useful thing to test, especially if people are processing large images (eg. the output of every modern smartphone sigh) Very good point, I should definitely have measured that too. Will add that soon.

- have you benchmarked against nip4, the official libvips GUI? it has a CLI mode you can run with GNU parallel I haven't and that would indeed by interesting to measure. Will look into it as well.

- I agree, a CLI mode for your tool sounds useful I'll probably add a CLI if the tool gets traction and it's requested.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: