I've used it a bit - works very well. I guess you wouldn't want to use it if you know you always want to create maybe a large/mid/thumb size image up-front and you know the dimensions or you have some other particular needs. There are commercial versions that act as CDN's too - like imgix and cloudimage.
Nov 14, 2016
7
Level 20
Anyone use URL based image manipulation?
I'm looking into image uploads with Laravel 5.3. I really like the simplicity of being able to do the following:
$image = $request->file('avatar')->store('path');
But 99% of the time, I want to do some sort of image manipulation, so I end of having to do something like this instead:
$image = Image::make($request->file('avatar'));
$image->fit(800, 800)->save('/path/avatar-lg.jpg');
$image->fit(400, 400)->save('/path/avatar-md.jpg');
$image->fit(100, 100)->save('/path/avatar-sm.jpg');
I stumbled across URL based image manipulation and thought it looked interesting, but I've never heard of it until now.
Has anyone used this before? Is there a general preference in the community to do one over the other, and why is that?
Any additional insight would be great.
Please or to participate in this conversation.