{"id":41939,"date":"2016-02-24T18:00:42","date_gmt":"2016-02-24T18:00:42","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=41939"},"modified":"2016-03-17T12:16:06","modified_gmt":"2016-03-17T12:16:06","slug":"41939-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/41939-2\/","title":{"rendered":"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x"},"content":{"rendered":"<p>As we love to upload images in both Opencart admin end and front end then we should know about how to use opencart default image library.Opencart has been changed some codes in image library file of\u00a0version 2.1.x.x and today we are going to learn about the object constructor differences between Opencart version 2.0.x.x and version 2.1.x.x image library file.<\/p>\n<p>Version 2.0.x.x &#8211;<\/p>\n<p>when we make an object of image class then this constructor is called<\/p>\n<pre class=\"brush:php\">$image= new Image(DIR_IMAGE.'\/home\/demo\/public_html\/image\/demo_product.png');<\/pre>\n<pre class=\"brush:php\">public function __construct($file) {\r\n\t\tif (file_exists($file)) {\r\n\t\t\t$this-&gt;file = $file;\r\n\r\n\t\t\t$info = getimagesize($file);\r\n\r\n\t\t\t$this-&gt;info = array(\r\n\t\t\t\t'width'  =&gt; $info[0],\r\n\t\t\t\t'height' =&gt; $info[1],\r\n\t\t\t\t'bits'   =&gt; isset($info['bits']) ? $info['bits'] : '',\r\n\t\t\t\t'mime'   =&gt; isset($info['mime']) ? $info['mime'] : ''\r\n\t\t\t);\r\n\r\n\t\t\t$this-&gt;image = $this-&gt;create($file);\r\n\t\t} else {\r\n\t\t\texit('Error: Could not load image ' . $file . '!');\r\n\t\t}\r\n\t}\r\n\r\nprivate function create($image) {\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0$mime = $this-&gt;info['mime'];\r\n\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0if ($mime == 'image\/gif') {\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0return imagecreatefromgif ($image);\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0} elseif ($mime == 'image\/png') {\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0return imagecreatefrompng($image);\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0} elseif ($mime == 'image\/jpeg') {\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0return imagecreatefromjpeg($image);\r\n\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0}\r\n\u00a0\u00a0 \u00a0}<\/pre>\n<p>Version 2.1.x.x &#8211;<\/p>\n<pre class=\"brush:php\">public function __construct($file) {\r\n\t\tif (file_exists($file)) {\r\n\t\t\t$this-&gt;file = $file;\r\n\r\n\t\t\t$info = getimagesize($file);\r\n\r\n\t\t\t$this-&gt;width  = $info[0];\r\n\t\t\t$this-&gt;height = $info[1];\r\n\t\t\t$this-&gt;bits = isset($info['bits']) ? $info['bits'] : '';\r\n\t\t\t$this-&gt;mime = isset($info['mime']) ? $info['mime'] : '';\r\n\r\n\t\t\tif ($this-&gt;mime == 'image\/gif') {\r\n\t\t\t\t$this-&gt;image = imagecreatefromgif($file);\r\n\t\t\t} elseif ($this-&gt;mime == 'image\/png') {\r\n\t\t\t\t$this-&gt;image = imagecreatefrompng($file);\r\n\t\t\t} elseif ($this-&gt;mime == 'image\/jpeg') {\r\n\t\t\t\t$this-&gt;image = imagecreatefromjpeg($file);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\texit('Error: Could not load image ' . $file . '!');\r\n\t\t}\r\n\t}<\/pre>\n<p>Main difference is that when we pass the image path as parameter of the constructor then<\/p>\n<p>width,height,bits and mime values are stored as indexes of class global variable in Version 2.0.x.x but in Version 2.1.x.x these values are used the class global variable to store the value.and we can get these values by calling these functions<\/p>\n<pre class=\"brush:php\">        public function getFile() {\r\n\t\treturn $this-&gt;file;\r\n\t}\r\n\r\n\tpublic function getImage() {\r\n\t\treturn $this-&gt;image;\r\n\t}\r\n\r\n\tpublic function getWidth() {\r\n\t\treturn $this-&gt;width;\r\n\t}\r\n\r\n\tpublic function getHeight() {\r\n\t\treturn $this-&gt;height;\r\n\t}\r\n\r\n\tpublic function getBits() {\r\n\t\treturn $this-&gt;bits;\r\n\t}\r\n\r\n\tpublic function getMime() {\r\n\t\treturn $this-&gt;mime;\r\n\t}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>As we love to upload images in both Opencart admin end and front end then we should know about how to use opencart default image library.Opencart has been changed some codes in image library file of\u00a0version 2.1.x.x and today we are going to learn about the object constructor differences between Opencart version 2.0.x.x and version <a href=\"https:\/\/webkul.com\/blog\/41939-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":71,"featured_media":41008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[2071],"class_list":["post-41939","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-opencart"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/41939-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"As we love to upload images in both Opencart admin end and front end then we should know about how to use opencart default image library.Opencart has been changed some codes in image library file of\u00a0version 2.1.x.x and today we are going to learn about the object constructor differences between Opencart version 2.0.x.x and version [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/41939-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-24T18:00:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-17T12:16:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sambit Pattanayak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sambit Pattanayak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/\"},\"author\":{\"name\":\"Sambit Pattanayak\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01\"},\"headline\":\"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x\",\"datePublished\":\"2016-02-24T18:00:42+00:00\",\"dateModified\":\"2016-03-17T12:16:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/\"},\"wordCount\":158,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"keywords\":[\"opencart\"],\"articleSection\":[\"php\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/41939-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/41939-2\/\",\"name\":\"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"datePublished\":\"2016-02-24T18:00:42+00:00\",\"dateModified\":\"2016-03-17T12:16:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/41939-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/41939-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01\",\"name\":\"Sambit Pattanayak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sambit Pattanayak\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/sambit-p819\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/41939-2\/","og_locale":"en_US","og_type":"article","og_title":"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x - Webkul Blog","og_description":"As we love to upload images in both Opencart admin end and front end then we should know about how to use opencart default image library.Opencart has been changed some codes in image library file of\u00a0version 2.1.x.x and today we are going to learn about the object constructor differences between Opencart version 2.0.x.x and version [...]","og_url":"https:\/\/webkul.com\/blog\/41939-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-02-24T18:00:42+00:00","article_modified_time":"2016-03-17T12:16:06+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","type":"image\/png"}],"author":"Sambit Pattanayak","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sambit Pattanayak","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/41939-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/41939-2\/"},"author":{"name":"Sambit Pattanayak","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01"},"headline":"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x","datePublished":"2016-02-24T18:00:42+00:00","dateModified":"2016-03-17T12:16:06+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/41939-2\/"},"wordCount":158,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/41939-2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","keywords":["opencart"],"articleSection":["php"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/41939-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/41939-2\/","url":"https:\/\/webkul.com\/blog\/41939-2\/","name":"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/41939-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/41939-2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","datePublished":"2016-02-24T18:00:42+00:00","dateModified":"2016-03-17T12:16:06+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/41939-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/41939-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/41939-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/41939-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Difference Between Opencart Image Library Of Version 2.0.x.x and 2.1.x.x"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01","name":"Sambit Pattanayak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sambit Pattanayak"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/sambit-p819\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/41939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=41939"}],"version-history":[{"count":3,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/41939\/revisions"}],"predecessor-version":[{"id":41942,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/41939\/revisions\/41942"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/41008"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=41939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=41939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=41939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}