-
Notifications
You must be signed in to change notification settings - Fork 10
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
Implement missing functions #14
base: master
Are you sure you want to change the base?
Conversation
Idea for implementation taken from: libvips/libvips#1126
Implementation works for single encoding as I found no way to store this information per Image object
Apply fixes from StyleCI
@bonzai how do you feel about attempting to merge VIPS driver into Intervention? I would gladly do the effort of preparing PR and handling it, of course leaving credit for the work you did here. Intervention community would probably help with testing and reviewing everything done in more efficient way than separate repository ever could. I'm no expert in licensing, but seeing this lib licensed "as is" I think I just need an agreement from you to pursue such goal? |
@Lustmored I'm not a fan of this because it looks like Intervention is "dead", and I don't want to be in a situation where I'm waiting for my PR to be merged. |
Thanks for the feedback! Indeed I missed important step in PixelateCommand and have just pushed the fix. About the text command - I have tested it on a few different fonts and source images and it works here (I have 8.10 as well, under Gentoo Linux). Could you please share the script (with font file and source image if any) you are using? I will happily dive into it if it's something within driver :) |
Here you can find my test image and font: text.zip Image::make('a.jpg')->text('The quick brown fox jumps over the lazy dog.', 250, 250, function ($font) {
$font->file('b.ttf');
$font->size(32);
$font->color('#fdf6e3');
$font->align('center');
$font->valign('top');
$font->angle(45);
}); If you can confirm it looks similar, I'll merge your PR. |
Indeed there were 2 problems:
Font rendering is just as VIPS does that, I have tried to make it look better but failed at a few attempts. |
Would be be possible to get this pulled in, lots of useful draw functions. |
Hi, this is a nice lib and this will be a really great update could you merge it? |
@bonzai could we have this merged, or are there still blocking issues here? At least the ResizeCanvasCommand is needed for using this library with Silverstripe. |
@forsdahl do you have a package for the silverstripe integration? It's on my list to write, so would be a huge help if you were happy to share |
I'll add |
@forsdahl: I've merged Can you test it and if something is wrong, send PR with fixes? Thanks! |
@christopherdarling it doesn't really need any other packages to work with Silverstripe except a yaml config to use it as the image backend, and an ongoing PR (silverstripe/silverstripe-assets#539) I made for |
This PR supersedes #13 and implements all commands.
I have also made some small improvements to previously implemented commands and added some typehint docblocks.
My intention is to implement everything there is in the end and maybe help with upstreaming this driver into intervention if that's OK with you.