How can the global content width$content_width
affect the post thumbnail ?
Let's check how the global $content_width
can affect the output of the_post_thumbnail( 'large' )
and trace out the relevant functions dependencyfunction dependencies:
and for the large size we have specifically this partpart within the image_constrain_size_for_editor()
:
where the default value isdefault value is:
since 560 = min( 560, 1024 )
isbecomes the maximum image width.
One way around that is to change the maximum image width/height through the editor_max_image_size
editor_max_image_size
filter: