[wp-trac] [WordPress Trac] #49290: Add a link to the original image if it was scaled or rotated after uploading
WordPress Trac
noreply at wordpress.org
Sun Jan 26 02:13:51 UTC 2020
#49290: Add a link to the original image if it was scaled or rotated after
uploading
---------------------------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.4
Component: Media | Version: 5.3
Severity: normal | Resolution:
Keywords: has-patch needs-design-feedback | Focuses:
---------------------------------------------+---------------------
Comment (by azaozz):
Replying to [comment:2 joyously]:
> There have been a lot of comments that say naming the attachment as
`-scaled` messes up existing plugins or the plan of the person naming the
image.
WP preserves the original image as uploaded, with the original name.
However when that image is not suitable for web use (i.e. it is above the
threshold), the largest size for web use is the scaled image.
Generally there were two options for naming of the scaled image: either
use the existing pattern, `-1200x800.ext` (which would have made it with
"variable" name like the sub-sizes) or to append a "static" string.
This is for the "web ready" version of the image suitable for use on the
internet when the original image was above the threshold.
> Does putting this link into the media details allow the user to choose
the original where an image is being chosen? Or is it just for
completeness?
You mean when inserting an image the editor? No, not in the editor as the
image is not suitable for web use. Plugins that add functionality where an
image can be chosen can decide if it makes sense for them to list the
original image or not. The links added here are for cases where the users
do not have such plugins but want to access the original image (to either
download it or copy the URL to it, etc.).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49290#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list