[wp-trac] [WordPress Trac] #30269: Expose an option to customize the default image size when inserting an image into a post
WordPress Trac
noreply at wordpress.org
Thu Nov 6 07:44:36 UTC 2014
#30269: Expose an option to customize the default image size when inserting an
image into a post
------------------------------------------+-----------------------------
Reporter: andresma | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.0
Severity: normal | Keywords:
Focuses: ui, administration, template |
------------------------------------------+-----------------------------
When inserting a new image into a post the default size is set to "full
size", and this is a problem because the file size of the image can
potentially be very big (like ~3MB or more).
The request is to add a "setting" that allows administrators to define a
"default image size" for posts. I also suggest that this setting is set to
use "large" size instead of "full" by default.
Many users don't even realize that using the "full" size of a picture can
be a problem because the Editor re-sizes the "displayed" image to a
smaller size on the screen so they don't even know that the actual size of
the image is like 10 times bigger. All they know is that their blog is now
"slow" after they inserted a couple of pictures in their posts.
With this setting the user will still be able to choose "full" size if
they really want it.
The change will involve modifying the code of this file:
wp-includes\media-template.php
which has a hardcoded default size of "full":
<option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value,
'full' ); ?>
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30269>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list