google / guetzli

Perceptual JPEG encoder
Apache License 2.0
12.92k stars 977 forks source link

PHP shared hosting #45

Open ilidan85 opened 7 years ago

ilidan85 commented 7 years ago

Is there any way to use that in PHP project on shared hosting (Apache)?

inoas commented 7 years ago

On good hosts (e.g. *nix) you can use one of those: http://stackoverflow.com/questions/732832/php-exec-vs-system-vs-passthru

ilidan85 commented 7 years ago

And for example, if exec() is available how can I use it after uploading to my server? Sorry for noob question ;)

inoas commented 7 years ago

This is the wrong place to ask. See https://github.com/google/guetzli#using

tomByrer commented 7 years ago

At the current speed, I would compress anything larger than a thumbnail offline.

inoas commented 7 years ago

Well there are a lot of ways to run PHP in the background/queued (and possibly within the same framework of code as your web application) to encode with mozjpg or guetzli