Add support for libvips

I don’t know about you but I don’t randomly install packages on my production servers without knowing what they do. Also, bold of you to assume I’m using Ubuntu.
 
Who says to test it on a production server? I should try it on a local VM personally...

And I do not assume, I gave an example. If you wanted a better answer you should state your distro of choice.
 
Not being funny but if your response to “why should I try it” is “try it”, I’m not exactly inclined to spend any further time on it.

If it’s worth spending time integrating, the benefits should be made clear so the cost of implementation can be assessed against it.
 
Yes but that doesn't answer why one should try it in the first place.

Is it wildly more efficient than ImageMagick for the uses XenForo has for that? Major functionality it offers that ImageMagick doesn't?

Is it worth the XF team's time to implement in favour of any of the other features on the table for future versions? Especially as it was previously flagged lack of interest.
 
Modern and more efficient is what I get from people who have done tests comparing the two libraries. Personally, if mastodon considers it good enough to replace imagemagick, i think it's good enough for xenforo. in the end, it probably does not affect most forum owners. might cause issues for some who might be running on shared servers etc. but with time, it makes sense to adopt modern libraries just like adopting modern image formats. :) though i imagine, if it gets adopted, it would become the third option besides GD.
 
To be fair, it is a rather new feature (PHP 8.3). Earlier PHP versions would just segfault with runaway recursion :whistle: And from the sound of it, it may be a PHP bug that necessitates it being disabled. Still something I'd like to see resolved before considering libvips a robust solution, personally.
 
While it is stated in the repo that preloading is not (yet) supported, preloading does seem to work just fine (on Linux; preloading generally does not work on Windows at all) with a simple preload script that just calls opcache_compile_file for all php-vips classes that use FFI.

While I understand why the author prefers FFI over a native PHP extension I think this will severely hinder adoption.
 
Back
Top Bottom