Allow user to specify image size when selecting "Media File" as "Link To" target for image attachments.
|Reported by:||dfcowell||Owned by:|
Currently selecting "Media File" as the "Link To" target causes an embedded image to link to the originally uploaded file. These files can be very large and there is no way to non-destructively resize them on upload while retaining this "Link To" functionality.
This enhancement patch adds a drop down list of available image sizes to the form (defaulting to Full Size - the existing behaviour) when "Media File" is selected, allowing the user to link to custom image sizes as specified in their themes or plugins if desired.
This is a significant improvement over default functionality, especially when used in conjunction with a lightbox plugin. It allows the user to retain the full-size image on the server while being able to specify a link to a smaller size if desired.