-
Notifications
You must be signed in to change notification settings - Fork 26
Mozjpeg in v2 #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @andrews05, I'd guess you have two libvipses in your system and php-ffi is picking up the wrong one. Try printing You can also add:
Somewhere near the start of your code, the log output can be useful. |
Pretty sure I only have one. Here's the debug output, v8.11.4. Should I upgrade?
And here's the vips cli output, same version, showing optimize-coding.
|
Figured it out, it seems v2 expects underscores instead of dashes: |
Ah, well done! No, you're supposed to be able to use either, this sounds like a silly mistake. I'll have a look. |
OK, I think it's fixed in master, and I credited you in the changelog (hope that's OK). Thanks for pointing out this dumbness! |
php-vips 1.x used to allow "-" as a component separator in arg names, but we forgot to implement this in v2. Thanks andrews05 See #153
Awesome, thanks heaps! |
I've just upgraded to v2 (after enabling FFI). Everything is working except the mozjpeg save options.
Uncaught Jcupitt\Vips\Exception: optional argument 'optimize-coding' does not exist
This was working fine with v1. Is there something I need to configure to enable this?
Note I haven't changed my libvips install, only the composer package version.
The text was updated successfully, but these errors were encountered: