[wp-trac] [WordPress Trac] #35128: Srcset may include a much-too-large image, apparently no way to set size in context
WordPress Trac
noreply at wordpress.org
Sat Dec 19 17:24:32 UTC 2015
#35128: Srcset may include a much-too-large image, apparently no way to set size in
context
--------------------------+------------------------------
Reporter: programmin | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by programmin):
It seems odd that the parameters for that filter have arguments for sizes
and attributes of the image, but not what the enclosing html was.
Unless every image in a specific type of post will have the same
width/maxwidth properties, or you want to change size attributes based on
the ''image'', not the ''size of where it is placed'' this doesn't really
help. Perhaps a 'pre-html' attribute could be added to that filter so we
could see if the html post-content just before the image-tag was '<div
class="smaller-area">' for example.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35128#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list