How to store a modified image and be able to see it in the files module
william - 2 months ago
I have the image i want to modify:
I modify the image:
$newImage = $image->make()->crop(100,100,10,10)
Now, i want to store this
$newImage to my local disk, in a directory (existing, but let's say it doesn't) called 'modified_images'.
Finally, i want to have the ID of the stored image returned and when i go to files i want to be able to see it there.
What's the best approach to this?