[wp-meta] [Making WordPress.org] #5171: Plugin Directory: Limit file size for 'asset' images
Making WordPress.org
noreply at wordpress.org
Tue Apr 28 02:32:59 UTC 2020
#5171: Plugin Directory: Limit file size for 'asset' images
------------------------------+---------------------
Reporter: Ipstenu | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: Plugin Directory | Resolution:
Keywords: |
------------------------------+---------------------
Comment (by dd32):
> I don't know. Can we grep them right now for an average filesize?
Could probably look at the last 5,000 plugins with assets and see what
they have.. It's not as easy as a grep but it's doable.
I'm not really sure if it's worthwhile setting "sane" limits here, or if
we're not just better off by putting an 'absurd' high limit (say 2MB?) on
to block any stupid-sized images.
{{{
$ svn ls -v https://plugins.svn.wordpress.org/hello-dolly/assets/ | grep
-v '/$' | awk '{ byte = $3/1024; print byte " KB " $7 }'
175.067 KB banner-1344x500.jpg
75.3008 KB banner-772x250.jpg
46.5469 KB icon-128x128.jpg
55.04 KB icon-256x256.jpg
$ svn ls -v https://plugins.svn.wordpress.org/jetpack/assets/ | grep -v
'/$' | awk '{ byte = $3/1024; print byte " KB " $7 }'
38.71 KB banner-1544x500.png
17.8594 KB banner-772x250.png
0.50293 KB icon-128x128.png
1.08789 KB icon-256x256.png
1.02246 KB icon.svg
266.567 KB screenshot-1.png
1140.15 KB screenshot-2.png
1479.11 KB screenshot-3.png
304.58 KB screenshot-4.png
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5171#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list