{"id":167,"date":"2008-08-28T17:15:24","date_gmt":"2008-08-28T16:15:24","guid":{"rendered":"http:\/\/blog.ginchen.de\/?p=167"},"modified":"2008-12-19T14:35:29","modified_gmt":"2008-12-19T13:35:29","slug":"grosse-bilder-in-wordpress","status":"publish","type":"post","link":"http:\/\/blog.ginchen.de\/en\/2008\/08\/28\/grosse-bilder-in-wordpress\/","title":{"rendered":"Large images in WordPress"},"content":{"rendered":"<p>Yet another small, but annoying problem solved:<br \/>\r\nSince sometime ago (allegedly since version 2.5 &#8211; I haven&#8217;t noticed it until 2.6), WordPress has started to scale all larger images, which were added in the editor by clicking &#8220;add&nbsp;image&#8221;, down to a width of 500 pixels. This will also happen, if you even chose &#8220;full&nbsp;size&#8221; in the dialogue before. This behaviour is meant to prevent you from accidentally hosing your layout with outsized images.<br \/>\r\nI for one always make sure my images have a suitable size <em>before<\/em> the upload, and aside from that, I loathe when programs infantilise me! Of course, one could still change the image size manually later, but who has the mind to do so&#8230;<\/p>\r\n\r\n<p>I found the solution <a  rel=\"external\" href=\"http:\/\/mainstreetopen.com\/wordpress-26-and-full-width-images\/\">here<\/a>: Somewhere in your theme, e.&nbsp;g. in <code>functions.php<\/code>, set the variable <code>$GLOBALS['content_width']<\/code> to the desired maximum width of your images. Like I said, I want to have full control over all image sizes, so I set this maximum value to 9999:<\/p>\r\n\r\n<pre lang=\"php\"><?php $GLOBALS['content_width'] = 9999; ?><\/pre>\r\n\r\n<p>As mentioned above, if this variable is not set, the value 500 will be used instead.<\/p>","protected":false},"excerpt":{"rendered":"Yet another small, but annoying problem solved: Since sometime ago (allegedly since version 2.5 &#8211; I haven&#8217;t noticed it until 2.6), WordPress has started to scale all larger images, which were added in the editor by clicking &#8220;add&nbsp;image&#8221;, down to a width of 500 pixels. This will also happen, if you even chose &#8220;full&nbsp;size&#8221; in [&hellip;]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[97,101,98,99,100,104,606,105],"_links":{"self":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/167"}],"collection":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":17,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":784,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/posts\/167\/revisions\/784"}],"wp:attachment":[{"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.ginchen.de\/en\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}