pngquant icon indicating copy to clipboard operation
pngquant copied to clipboard

fix: replace imghdr (removed from Python 3.13) by puremagic

Open thebaptiste opened this issue 1 year ago • 1 comments

imghdr is deprecated since Python 3.11 and removed from Python 3.13 (see pep-0594) You should use puremagic instead

thebaptiste avatar Nov 19 '24 12:11 thebaptiste

Another possibility would be to add standard-imghdr in requirements, but I think it's better to remove this deprecated call...

thebaptiste avatar Nov 19 '24 12:11 thebaptiste

@thebaptiste Thanks. I'll release a new version tomorrow.

Brightcells avatar Mar 09 '25 19:03 Brightcells

@Brightcells Don't forget to release

thebaptiste avatar Mar 12 '25 09:03 thebaptiste

@Brightcells Don't forget to release

Apologise for the late response. Version 3.0.2 has released

Brightcells avatar Mar 25 '25 08:03 Brightcells

Thanks

thebaptiste avatar Mar 25 '25 08:03 thebaptiste

It's a good idea to have the same release number for the pngquant library and for the python module !

thebaptiste avatar Mar 25 '25 16:03 thebaptiste