-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add webp to images support #6271
Add webp to images support #6271
Conversation
require php 5.6.26 or 7.0.10 Signed-off-by: albertlast [email protected]
Considering PHP 5.4 has been EOL for 5 years now I don't see why we can't bump the min version to 5.6 at this point. Even WordPress' stats show very little usage for PHP 5.4 and 5.5 (just 4% of those reporting info to them, compared to 12.8% for 5.6). |
Is there any particular reason to add this image format? is there a request on simplemachines.org for it? perhaps some benefits? |
get the new image standard for web stuff. |
None of those links declares webp as the new image standard and this requires us to either bump the min PHP version (something that is not planned at the moment) or add extra checks which adds non needed complexity. |
So what is in your eyes the image standard?
When you ask google they say webp.
And yes rise php version would be the best solution.
Since this is a hard reason.
…________________________________
Von: Michel Mendiola <[email protected]>
Gesendet: Mittwoch, 16. Dezember 2020 00:00
An: SimpleMachines/SMF2.1
Cc: albertlast; Author
Betreff: Re: [SimpleMachines/SMF2.1] Add webp to images support (#6271)
None of those links declares webp as the new image standard and this requires us to either bump the min PHP version (something that is not planned at the moment) or add extra checks which adds non needed complexity.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#6271 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AANTI6TFOHFVB2SZFTELHADSU7TADANCNFSM4R2WYOUA>.
|
I don't think there is an image standard, webp is just the format google is pushing. Nevertheless, the required changes overshadows the benefits. Instead I would suggest to change this PR to unify all the $allowedTypes arrays into a single $context key so mod authors can add any format they want. |
the benefits are that we supporting what the most broads needs and The last php raise was in 2017 where 5.3 got dropped, based on this, we had to raise php version to 5.6, |
Its not my personal choice, never has been. |
Since smf 2.0.17 support php 7.2 and with this a migration path exists between 3 php version when i take php 7.0 as baseline, On the other hand we waist out time with version checks and workaround to support old stuff. |
Then help me out with a serious proposal, expose usage data for PHP versions, specially among shared hostings. The more data we have the more we can push towards changing the min PHP version. And by serious I really mean a serious proposal and not just posting a couple of links and rant about how its our fault. I alone can't make the decision. |
no i make not your job. The shared hoster are not the problem of this project. the admin had the option to change the hoster, The supported php version is hugh enough even with 7.0, |
https://www.php.net/usage.php (apparently from 2013) leads to netcraft (2013) and w3techs (current), and the latter numbers aren't very beautiful: 40% (or 32%, according to the following link 😕 ) of PHP sites still use 5.x! But: of the sites using 5.x,
Wordpress shows slightly different numbers:
AFAIK, the SMF detailed stats are broken, so we can't know our real numbers. The detailed market reports of various sites aren't available for free. |
using doesn't mean they had no others to choose. and still the question if smf had the dev power to support sutch amount of php versions. |
@MissAllSunday requesting reopening of this pr since #6501 got merged |
And the min was raised to 5.6.0 |
5.6.40 is the last version and 5.6.26 would be a good meet in the middle. |
Note that IMAGETYPE_WEBP is only defined in php 7.1+. |
@sbulen since thed idea to implement webp again, this pr exists closed for this topic |
@albertlast Since @sbulen has committed to supporting it. Would you want to get this up to sync with current code and a viable PR ready? |
@jdarwood007 pr is updated now, feel free to test the code |
What about certain file inputs like this one: SMF/Themes/default/Profile.template.php Lines 2992 to 2996 in 5d05c65
Should they be updated to accept="image/*" ? Actually it seems to be the only one. |
See SimpleMachines#6271 Signed-off-by: Jon Stovell <[email protected]>
Add support for the webp image format,
since imagetype stuff on php side is used,
the needed php version is 5.6.26 or 7.0.10 (we are on 5.4.0).
https://www.php.net/manual/en/image.constants.php
Could handle this in some ways:
raise the min version (would be the right way).
Do not add this or
do some version checks.
Since both last idea are stupid i guess we will take one of this?