[wp-trac] [WordPress Trac] #35390: Responsive image size issue when `large` is used to display thumbnail

WordPress Trac noreply at wordpress.org
Sun Jan 10 04:01:25 UTC 2016


#35390: Responsive image size issue when `large` is used to display thumbnail
-----------------------------+-----------------------------
 Reporter:  rabmalin         |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Post Thumbnails  |    Version:  4.4
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 {{{

     <img width="680" height="510" src="http://staging.dev/wp-
 content/uploads/2011/07/dsc02085-1200x900.jpg" class="attachment-post-
 thumbnail size-post-thumbnail wp-post-image" alt="Orange Iris"
 srcset="http://staging.dev/wp-content/uploads/2011/07/dsc02085-300x225.jpg
 300w, http://staging.dev/wp-content/uploads/2011/07/dsc02085-768x576.jpg
 768w, http://staging.dev/wp-content/uploads/2011/07/dsc02085-1024x768.jpg
 1024w, http://staging.dev/wp-content/uploads/2011/07/dsc02085-1200x900.jpg
 1200w, http://staging.dev/wp-content/uploads/2011/07/dsc02085.jpg 1600w"
 sizes="(max-width: 680px) 100vw, 680px">

 }}}

 I am using Twenty Fifteen theme, WordPress version 4.4. `post-thumbnail`
 size is `825x510`. Original image size is `1600x1200`. But I am not
 getting expected image. After some testing I found that this problem
 arises if post thumbnail `large` is used. I could not understand how width
 and height is set to 680 and 510 respectively.

 I am not sure this is related to
 https://core.trac.wordpress.org/ticket/35108

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35390>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list