Opened 5 years ago
Last modified 3 years ago
#37750 assigned defect (bug)
Cropping custom logo should preserve attachment properties
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 4.5 |
Component: | Media | Keywords: | needs-patch |
Focuses: | accessibility | Cc: |
Description
I just noticed that, when uploading and cropping a custom logo, the original attachment's properties won't be migrated to the cropped image. I specifically added an "alt" description of the image, but on the website it only showed the file name for the alt tag, since the new cropped image does not preserve any of the data provided into the uploaded image. I think this is unexpected behavior and should be fixed.
I think the data manually changed by the user should be migrated to the cropped image to prevent this.
Change History (21)
#2
@
5 years ago
Good point. Maybe a combination of both would do it. I think we should cover both scenarios - both of our proposals will ignore either one or the other. In my opinion a good solution would be to show the meta sidebar on the cropped image like you said, but fill in the values the user entered for the original image (as defaults). Many times these will apply to the cropped image as well, and if not, they could easily change it.
This ticket was mentioned in Slack in #core by sami.keijonen. View the logs.
4 years ago
#5
@
4 years ago
- Milestone changed from Awaiting Review to 4.8.1
- Owner set to afercia
- Status changed from new to assigned
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
4 years ago
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
4 years ago
This ticket was mentioned in Slack in #core-media by afercia. View the logs.
4 years ago
This ticket was mentioned in Slack in #core-media by joemcgill. View the logs.
4 years ago
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
4 years ago
This ticket was mentioned in Slack in #core by melchoyce. View the logs.
4 years ago
This ticket was mentioned in Slack in #core-media by antpb. View the logs.
3 years ago
#21
@
3 years ago
Why is this being ignored? It is an actual accessibility issue - since it takes away the ability to set proper alt text on the site logo.
Its also a very frustrating bug to come across when trying to set alt text for the site image (when its been cropped).
The very least it should be documented in the WordPress Codex so people can find it and understand that alt text (and other attachment data) is not available for the image after being cropped in the customizer.
I'm not sure I agree (just to give a counterpoint), if I manually crop an image, it is to put emphasis on a part of it, making it no longer relevant to the meta data added to the full image.
Scenario:
I think a much better approach would be if the cropping tool actually provided the meta sidebar like the other media management windows does.
This would allow the meta data to be manipulated there and then, without running the risk of being forgotten or ignored, thoughts?