-
Notifications
You must be signed in to change notification settings - Fork 85
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
Reduce zip file size #401
Comments
I am not opposed to the using AVIF, core also has a script for reducing the image sizes that will be ran before commit. |
Now that this theme has shipped into core, I zipped this directory and measured its size, finding it to be 11.4MB. |
I reduced some of the image size https://github.com/WordPress/twentytwentyfive/pull/475/files but I was in a hurry. |
@juanfra @beafialho This issue needs more attention. |
Taking a look at the heavier images, I think their size can be reduced they don't need to be as big. We can remove this image from the theme We can replace |
When I removed the files necessary for development from this repository and converted it to a zip file, I found that the file size in my environment was 14.711 MB.
The theme directory does not mention any requirements regarding file size, but the maximum size of a zip file that can actually be uploaded to the theme directory is 10 MB:
https://wordpress.org/themes/upload/
Although there is a file size limit for the theme directory, it seems strange that the default theme exceeds that size.
One approach to reducing the size might be to convert to the AVIF image format proposed in #383.
The
/assets/fonts
directory (about 8 MB) and/assets/images
directory (about 6 MB) take up most of the overall size.Incidentally, the file sizes when downloading the wordpress-develop theme directory and converting each theme to zip are as follows:
The text was updated successfully, but these errors were encountered: