monsterdream's avatar

Homestead / Forge -> Image compression on the fly

Hi, This is more generally question. Somebody of you use image optimization on the fly when user upload those images ? I'm searching and looking for some simply way to do that without success so far. I found that library:

https://github.com/psliwa/image-optimizer

But for that I need install for example jpegtrans on my machine so I'm guessing If I would like to use it, I need to install it on DigitalOcean server. This is more problematic for my, then install something through composer.

The question is: Is there any more simply way to do that ? (I want to compress image (not only resize) with some good quality/size ratio if its possible).

Take care guys

0 likes
2 replies
monsterdream's avatar

Hi, No it doesn't, I'm using it to resize and crop image, but AFTER that I would like to compress image. It is big differences between saving with lower quality and compare that to all that fancy turbo image compressor like jpegtran, jpegoptim, optiPNG and so on... But I'm start guessing such methodology to do that is not common in use and I just imagine with my head that because it's not often subject on internet when I'm searching.

Please or to participate in this conversation.