{"id":10922,"date":"2022-09-25T12:04:08","date_gmt":"2022-09-25T06:34:08","guid":{"rendered":"http:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/"},"modified":"2022-09-25T12:04:08","modified_gmt":"2022-09-25T06:34:08","slug":"solved-trying-to-rotate-canvas-something-is-going-wrong","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/","title":{"rendered":"[Solved] Trying to rotate canvas, something is going wrong"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-18498999\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"18498999\" data-parentid=\"18494419\" data-score=\"9\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>After you have translated and rotated the context you need to translate back:<\/p>\n<pre><code>context.translate(canvas.width \/ 2, canvas.height \/ 2);\ncontext.rotate(180 * Math.PI \/ 180);\n\n\/\/\/ here, translate back:\ncontext.translate(-canvas.width \/ 2, -canvas.height \/ 2);\n\ncontext.drawImage(tempCanvas, 0, 0);\n<\/code><\/pre>\n<p>(you don&#8217;t need to clip and\/or specify width and height if destination size is the same as source size).<\/p>\n<p>But if you simply want to flip the image or rotate it 180 you can instead use <code>scale<\/code> the canvas instead using a negative value &#8211; just remember to reverse the coordinates (<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/jsfiddle.net\/AbdiasSoftware\/AXb2E\/\">here&#8217;s a demo of this technique<\/a>):<\/p>\n<pre><code>context.scale(-1, -1);\ncontext.drawImage(tempCanvas, -tempCanvas.width, -tempCanvas.height);\n<\/code><\/pre>\n<h1>More in-depth on transformation in general (update)<\/h1>\n<p>To better explain how transformations works lets go through the various stages.<\/p>\n<p><code>Origo<\/code> (<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.wiktionary.org\/wiki\/origo\">see definition here<\/a>) is always point [0, 0] in a coordinate system (or more accurately the point where the axis crosses). When you use transformations this is the point that gets translated in a context for a canvas.<\/p>\n<p>This is also the reason why you manipulate the <em>context<\/em> an not the canvas directly as the transformations are applied to context and not the element (otherwise the element would be rotated itself when you applied a rotate transformation to it &#8211; which you can do by CSS).<\/p>\n<p>Initially the coordinate system looks like this (white blended is non-visible areas of the canvas, the center square is canvas and the blue grid is the context and the current coordinate system):<\/p>\n<p>(Note: ignore the negative Y axis &#8211; I somehow managed to overlook that detail when making the graphics &#8211; the y axis is of course positive vertically down).<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\" alt=\"Inital\"><\/p>\n<p>If we now translate the canvas 3.5 by 3.5 points to get <code>origo<\/code> at center the context and coordinate system will now look like this:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/1664087648_527_Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\" alt=\"translated\"><\/p>\n<p>If we now wanted to apply rotation that will happen at the <code>origo<\/code> point. This is why we need to translate before rotate as when rotate is applied we get this result:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/1664087648_725_Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\" alt=\"rotated\"><\/p>\n<p>If we now just draw the image it will not be centered cause <code>drawImage<\/code> draws an image from the image&#8217;s upper left corner. Which means it would look like this:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/1664087648_445_Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\" alt=\"drawImage non translated\"><\/p>\n<p>This is why we need to translate back <code>origo<\/code> so that we compensate for the image corner.<\/p>\n<p>However, since we also have rotation applied the origo will be moved relative to the current systems orientation as well.<\/p>\n<p>We translate back (half the size of the image to get the image&#8217;s center point at the previous <code>origo<\/code> point) &#8211; the rotation remains the same:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/1664087648_756_Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\" alt=\"translated back\"><\/p>\n<p>Now we can call the <code>drawImage<\/code> as now you can see the <code>origo<\/code> seem to be in the correct position for this operation:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/1664087648_997_Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\" alt=\"final transform\"><\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">6<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Trying to rotate canvas, something is going wrong <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] After you have translated and rotated the context you need to translate back: context.translate(canvas.width \/ 2, canvas.height \/ 2); context.rotate(180 * Math.PI \/ 180); \/\/\/ here, translate back: context.translate(-canvas.width \/ 2, -canvas.height \/ 2); context.drawImage(tempCanvas, 0, 0); (you don&#8217;t need to clip and\/or specify width and height if destination size is the same as &#8230; <a title=\"[Solved] Trying to rotate canvas, something is going wrong\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/\" aria-label=\"More on [Solved] Trying to rotate canvas, something is going wrong\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[1728,346,333],"class_list":["post-10922","post","type-post","status-publish","format-standard","hentry","category-solved","tag-canvas","tag-html","tag-javascript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Trying to rotate canvas, something is going wrong - JassWeb<\/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:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Trying to rotate canvas, something is going wrong - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] After you have translated and rotated the context you need to translate back: context.translate(canvas.width \/ 2, canvas.height \/ 2); context.rotate(180 * Math.PI \/ 180); \/\/\/ here, translate back: context.translate(-canvas.width \/ 2, -canvas.height \/ 2); context.drawImage(tempCanvas, 0, 0); (you don&#8217;t need to clip and\/or specify width and height if destination size is the same as ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-25T06:34:08+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\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:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Trying to rotate canvas, something is going wrong\",\"datePublished\":\"2022-09-25T06:34:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/\"},\"wordCount\":420,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\",\"keywords\":[\"canvas\",\"html\",\"javascript\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/\",\"name\":\"[Solved] Trying to rotate canvas, something is going wrong - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\",\"datePublished\":\"2022-09-25T06:34:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#primaryimage\",\"url\":\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\",\"contentUrl\":\"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Trying to rotate canvas, something is going wrong\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Trying to rotate canvas, something is going wrong - JassWeb","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:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Trying to rotate canvas, something is going wrong - JassWeb","og_description":"[ad_1] After you have translated and rotated the context you need to translate back: context.translate(canvas.width \/ 2, canvas.height \/ 2); context.rotate(180 * Math.PI \/ 180); \/\/\/ here, translate back: context.translate(-canvas.width \/ 2, -canvas.height \/ 2); context.drawImage(tempCanvas, 0, 0); (you don&#8217;t need to clip and\/or specify width and height if destination size is the same as ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/","og_site_name":"JassWeb","article_published_time":"2022-09-25T06:34:08+00:00","og_image":[{"url":"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Trying to rotate canvas, something is going wrong","datePublished":"2022-09-25T06:34:08+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/"},"wordCount":420,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#primaryimage"},"thumbnailUrl":"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png","keywords":["canvas","html","javascript"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/","url":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/","name":"[Solved] Trying to rotate canvas, something is going wrong - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#primaryimage"},"thumbnailUrl":"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png","datePublished":"2022-09-25T06:34:08+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#primaryimage","url":"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png","contentUrl":"http:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/09\/Solved-Trying-to-rotate-canvas-something-is-going-wrong.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-trying-to-rotate-canvas-something-is-going-wrong\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Trying to rotate canvas, something is going wrong"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/10922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=10922"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/10922\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=10922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=10922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=10922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}