{"id":6297,"date":"2016-06-13T13:27:39","date_gmt":"2016-06-13T17:27:39","guid":{"rendered":"https:\/\/themespress.ca\/?p=6297"},"modified":"2022-09-09T06:16:11","modified_gmt":"2022-09-09T10:16:11","slug":"crop-resize-images","status":"publish","type":"post","link":"https:\/\/themespress.ca\/en\/crop-resize-images\/","title":{"rendered":"Crop \/ Resize images in WordPress templates"},"content":{"rendered":"<p>This tutorial will set up something similar of TimThumb where you can efficiently crop and resize WordPress images.<\/p>\n<p>It allows us to avoid using primary WordPress functions such as adding <strong>add_image_size<\/strong>. We also need to develop the way we will display thumbnail images and image attached to WordPress queries.<\/p>\n<p>Here are the 3 files included with <strong>Crop \/ Resize images<\/strong>:<br \/>\nthumb.php &#8211; <strong>Crop and resize function<\/strong><br \/>\nfunctions.php &#8211; <strong>Requires thumb.php<\/strong><br \/>\nresults.php &#8211; <strong>Displays Thumbnails and WordPress attachments in various formats.<\/strong><\/p>\n<p>No known conflicts<\/p>\n<h2>Crop \/ Resize images<\/h2>\n<p><a class=\"more\" href=\"https:\/\/themespress.ca\/produits\/ressources\/crop-resize-images-wordpress\/\">Crop \/ Resize WordPress images<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will set up something similar of TimThumb where you can efficiently crop and resize WordPress images. It allows us to avoid using primary WordPress functions such as adding<\/p>\n<div class=\"read-more\"><a class=\"btn button-secondary\" href=\"https:\/\/themespress.ca\/en\/crop-resize-images\/\">Read More<\/a><\/div>\n","protected":false},"author":81,"featured_media":4533,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[283],"tags":[318],"class_list":["post-6297","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-functions"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/comments?post=6297"}],"version-history":[{"count":0,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6297\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media\/4533"}],"wp:attachment":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media?parent=6297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/categories?post=6297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/tags?post=6297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}