psliwa / image-optimizer

Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
MIT License
906 stars 141 forks source link

PHP 8 Support #81

Open marin246 opened 2 years ago

marin246 commented 2 years ago

is PHP8 support in the works? Thanks in advance!

mad-briller commented 2 years ago

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

i've added this pr which seems to work fine in php8.1 using symfony 6 components just waiting for the maintainer to merge it, although the repo seems like it's abandoned and might need to be forked

Flynsarmy commented 2 years ago

I also submitted 2 PRs before noticing this repo may be abandoned so I've forked and implemented a bunch of improvements here https://github.com/Flynsarmy/image-optimizer

So far:

My version of the package is only compatible with PHP 8.0+. If you're on an outdated PHP, use this repo instead.

mad-briller commented 2 years ago

yeah there is the spatie/image-optimizer library that i've moved to instead of this one.