hbz / lobid

Linking Open Bibliographic Data
https://lobid.org/
Eclipse Public License 2.0
17 stars 4 forks source link

Improve imagesproxy php script #502

Closed Phu2 closed 1 year ago

dr0i commented 1 year ago

Thx! Can you deploy this?

Phu2 commented 1 year ago

Thx! Can you deploy this?

Will do on monday.

Phu2 commented 1 year ago

It's Thursday already.. finally deployed on stage.

Testing the Content-Type for svg: curl --head http://stage.lobid.org/imagesproxy?url=https://commons.wikimedia.org/wiki/Special:FilePath/POL%20COA%20Pilawa%20Z%C5%82ota.svg?width=270 for axample

Testing the PHP Warning "ctype variable not set" by a (fake) request for the webp image format which is not considered by the script: curl --head http://stage.lobid.org/imagesproxy?url=https://commons.wikimedia.org/wiki/Special:FilePath/POL%20COA%20Pilawa%20Z%C5%82ota.webp?width=270 for axample. There should be no warnings in the error logs.