Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function getid3_lib::ImageTypesLookup has been deleted #391

Closed
jpyrat opened this issue Aug 2, 2022 · 2 comments
Closed

Function getid3_lib::ImageTypesLookup has been deleted #391

jpyrat opened this issue Aug 2, 2022 · 2 comments

Comments

@jpyrat
Copy link

jpyrat commented Aug 2, 2022

Hi,

I use this function in my code and it has been deleted from the code of the lib with no notice in the changelog (1.9.21).

Could you put it back ?

Regards

@StudioMaX
Copy link
Collaborator

Looks like it was removed since 1.9.16 (released at 17 Oct 2018) with this commit: 9df2674
Just replace it in your code with native image_type_to_mime_type.

@JamesHeinrich
Copy link
Owner

JamesHeinrich commented Aug 2, 2022

It was removed 4+ years ago in v1.9.15-201803150911 in 9df2674
Native PHP function image_type_to_mime_type does the same thing (when getID3 was first written PHP 4.3 wasn't released yet, hence the custom function).

edit: as StudioMaX said, but faster than me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants