Kris01's avatar

Copress Images

What is the best way to compress images on upload without using any API on Laravel? I have a social network, and the pictures seem to be loading very slow on server, how can I compress them on upload?

0 likes
2 replies
Kris01's avatar

@Sinnbeck the Image size doesn't seem to change after I run

ImageOptimizer::optimize($pathToImage)

What Could The problem be? And also, is 900kb of image for the server a lot to handle?

Please or to participate in this conversation.