{"id":4314617,"date":"2013-11-13T16:08:47","date_gmt":"2013-11-13T16:08:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/is-there-any-php-code-to-enlarge-image\/"},"modified":"2016-08-21T12:32:03","modified_gmt":"2016-08-21T12:32:03","slug":"is-there-any-php-code-to-enlarge-image","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/is-there-any-php-code-to-enlarge-image\/","title":{"rendered":"Is there any php code to enlarge image?"},"content":{"rendered":"<p>Hello everybody,<br \/>\nIs there any php code to enlarge image? For example, my original image is set to 300&#215;400, can I enlarge the resolution to 400&#215;500 or any size I want?<br \/>\nI want to create custom thumbnail for my image,<br \/>\nfor eg if I want 1500&#215;1200 I use this code:<\/p>\n<blockquote>\n<p>add_image_size( &#8216;customresolution&#8217;, &#8216;1500&#8217;, &#8216;1200&#8217;, true );\n<\/p>\n<\/blockquote>\n<p>but, when the original image resolution is smaller than the custom image that I want, the code don&#8217;t work.<\/p>\n","protected":false},"template":"","class_list":["post-4314617","topic","type-topic","status-closed","hentry","topic-tag-thumbnail"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4314617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4314617\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4314617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}