{"id":388,"date":"2017-05-21T16:32:07","date_gmt":"2017-05-21T16:32:07","guid":{"rendered":"https:\/\/ricardomoinhos.com\/?p=388"},"modified":"2017-05-21T16:50:04","modified_gmt":"2017-05-21T16:50:04","slug":"photoshop-scripting","status":"publish","type":"post","link":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/","title":{"rendered":"Photoshop Scripting &#8211; Batch resizing image size and image canvas"},"content":{"rendered":"<p>Later today,\u00a0a friend\u00a0of mine was editing some images and I&#8217;ve noticed that he was repeating the same process again and again&#8230; open the image&#8230; resize the width to 720 pixels&#8230; selecting a matching background colour (because when resizing canvas, bars on top and bottom of the image were being added) and resize canvas so the image had\u00a0the expected 720 x 1024.<\/p>\n<p>After 15 minutes I asked him what he was doing. He had more than 200 files to process.\u00a0If it took 1 min (I believe he was taking longer) to process each file, he was gonna\u00a0take more than 3 hours to complete it. And when new images become available, he would once again repeat the same process again&#8230;<\/p>\n<p>Below, an example of what he was doing.<\/p>\n<p>Original image example:<\/p>\n<p id=\"WmGmSrN\"><a href=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/photoshop_batch_image_example.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-390\" src=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/photoshop_batch_image_example-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/photoshop_batch_image_example-300x225.jpg 300w, https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/photoshop_batch_image_example.jpg 720w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>(Original image downloaded from <a href=\"http:\/\/www.shunvmall.com\">http:\/\/www.shunvmall.com<\/a>)<\/p>\n<p>This image&#8217;s original dimension was\u00a01000 x 750 so he needed to resize the image to 720 x 540, choose the background color that\u00a0the top\/bottom added bars should have (black was used in this case) and then resize the canvas to 720 x 1024.<\/p>\n<p><a href=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/photoshop_batch_image_example_new.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-391\" src=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/photoshop_batch_image_example_new-211x300.jpg\" alt=\"\" width=\"211\" height=\"300\" srcset=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/photoshop_batch_image_example_new-211x300.jpg 211w, https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/photoshop_batch_image_example_new.jpg 720w\" sizes=\"auto, (max-width: 211px) 100vw, 211px\" \/><\/a><\/p>\n<p>This is the final image, with the expected dimensions (720 x 1024).<\/p>\n<p>So I thought&#8230; &#8220;hum&#8230; let&#8217;s get to work\u00a0and make this guy happy!&#8221;.<\/p>\n<p>First I tried to use Photoshop Actions but it wouldn&#8217;t\u00a0work because\u00a0I couldn&#8217;t automatically define the background color to be used in\u00a0each image, otherwise that would be the fastest and easiest way to do this.<\/p>\n<p>So I moved to Photoshop scripting. This allows you to make almost everything, including to check the color of the pixel in the top left corner of the image to be used as the background colour. This way \u00a0the colour of the added bars matches\u00a0the original image&#8217;s colours \ud83d\ude42<\/p>\n<p>I share with you the script I&#8217;ve created and used. Please let me know if you have any doubts.<\/p>\n<blockquote><p>#target photoshop<br \/>\napp.preferences.rulerUnits = Units.PIXELS;<\/p>\n<p>if (app.documents.length &gt; 0)<br \/>\n{<br \/>\nalert (&#8220;Please close all open documents before running this script.&#8221;);<br \/>\n} else {<\/p>\n<p>\/\/ The width and height I wanted to consider. You may have to change this to make it dynamic.<br \/>\nvar finalWidth = 720;<br \/>\nvar finalHeight = 1024;<\/p>\n<p>\/\/The file suffix to add to the new files, if you want to.<br \/>\nvar fileSuffix = &#8220;_new&#8221;;<\/p>\n<p>\/\/ Use folder selection dialogs to get the location of the input files<br \/>\n\/\/ and where to save the new output files.<br \/>\nvar sourceFolder = Folder.selectDialog (&#8220;Please choose the location of the source image files.&#8221;, Folder.myDocuments);<br \/>\nvar destFolder = Folder.selectDialog (&#8220;Please choose a location where the new image files will be saved.&#8221;, sourceFolder);<\/p>\n<p>\/\/ Consider only some images filetypes.<br \/>\nvar files = sourceFolder.getFiles(\/.+\\.(?:jpe?g|bmp|png)$\/i);<br \/>\nvar nrOfFiles = files.length;<\/p>\n<p>for (var i = 0; i &lt; files.length; i++)<br \/>\n{<br \/>\nvar f = files[i];<\/p>\n<p>if (f instanceof Folder)<br \/>\ncontinue;<\/p>\n<p>var docRef = app.open (f);<br \/>\nvar layerRef = docRef.activeLayer;<\/p>\n<p>\/\/Image resize<br \/>\nvar actualWidth = docRef.width;<br \/>\nvar actualHeight = docRef.height;<br \/>\nvar newHeight = finalWidth * actualHeight \/ actualWidth;<\/p>\n<p>docRef.resizeImage(finalWidth,newHeight);<\/p>\n<p>\/\/Get top left pixel color to use as background color<br \/>\nfor (var j = 0; j &lt; docRef.colorSamplers.length; j++) {<br \/>\ndocRef.colorSamplers[j].remove();<br \/>\n}<br \/>\nvar sampler = docRef.colorSamplers.add([0, 0]);<\/p>\n<p>\/\/Set the background color<br \/>\napp.backgroundColor = sampler.color;<\/p>\n<p>\/\/Resize canvas<br \/>\ndocRef.resizeCanvas(finalWidth, finalHeight, AnchorPosition.MIDDLECENTER);<\/p>\n<p>\/\/Get filename and extension to use it when saving.<br \/>\nvar fileExtension = getFileExtension(f.name);<br \/>\nvar filename = getFilename(f.name);<\/p>\n<p>var outputFile = new File (destFolder.absoluteURI + &#8220;\/&#8221; + filename + fileSuffix + &#8220;.&#8221; + fileExtension);<br \/>\nsaveAsJPG(docRef, outputFile, 8);<\/p>\n<p>docRef.close ();<br \/>\n}<\/p>\n<p>alert(nrOfFiles + &#8221; files have been processed.&#8221;);<br \/>\n}<\/p>\n<p>function getFileExtension (fullFilename) {<br \/>\nreturn fullFilename.split(&#8216;.&#8217;).pop();<br \/>\n}<\/p>\n<p>function getFilename (fullFilename) {<br \/>\nvar finalDotPosition = fullFilename.lastIndexOf(&#8220;.&#8221;) ;<\/p>\n<p>if ( finalDotPosition &gt; -1 ) {<br \/>\nreturn fullFilename.substr( 0 , finalDotPosition );<br \/>\n}<br \/>\nreturn fullFilename;<br \/>\n}<\/p>\n<p>function saveAsJPG(docRef, saveFile, jpegQuality) {<br \/>\noptions = new JPEGSaveOptions();<br \/>\noptions.quality = jpegQuality;<br \/>\ndocRef.saveAs(saveFile, options, false,Extension.LOWERCASE);<br \/>\n}<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Later today,\u00a0a friend\u00a0of mine was editing some images and I&#8217;ve noticed that he was repeating the same process again and again&#8230; open the image&#8230; resize the width to 720 pixels&#8230; selecting a matching background colour (because when resizing canvas, bars on top and bottom of the image were being added) and resize canvas so the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":397,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[17],"tags":[54,55],"class_list":{"0":"post-388","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-photoshop","8":"tag-photoshop","9":"tag-scripting","11":"post-with-thumbnail","12":"post-with-thumbnail-icon"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Photoshop Scripting - Batch resizing image size and image canvas - Ricardo Paiva Moinhos<\/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:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Photoshop Scripting - Batch resizing image size and image canvas - Ricardo Paiva Moinhos\" \/>\n<meta property=\"og:description\" content=\"Later today,\u00a0a friend\u00a0of mine was editing some images and I&#8217;ve noticed that he was repeating the same process again and again&#8230; open the image&#8230; resize the width to 720 pixels&#8230; selecting a matching background colour (because when resizing canvas, bars on top and bottom of the image were being added) and resize canvas so the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/\" \/>\n<meta property=\"og:site_name\" content=\"Ricardo Paiva Moinhos\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-21T16:32:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-21T16:50:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/blog_feature_image_photoshop.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"375\" \/>\n\t<meta property=\"og:image:height\" content=\"366\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ricardo Paiva Moinhos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ricardo Paiva Moinhos\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/\"},\"author\":{\"name\":\"Ricardo Paiva Moinhos\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#\\\/schema\\\/person\\\/16dcfdd54ec1c46bd1941659739de4cc\"},\"headline\":\"Photoshop Scripting &#8211; Batch resizing image size and image canvas\",\"datePublished\":\"2017-05-21T16:32:07+00:00\",\"dateModified\":\"2017-05-21T16:50:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/\"},\"wordCount\":616,\"commentCount\":6,\"image\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ricardomoinhos.com\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/blog_feature_image_photoshop.jpg\",\"keywords\":[\"photoshop\",\"scripting\"],\"articleSection\":[\"Photoshop\"],\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/\",\"url\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/\",\"name\":\"Photoshop Scripting - Batch resizing image size and image canvas - Ricardo Paiva Moinhos\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ricardomoinhos.com\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/blog_feature_image_photoshop.jpg\",\"datePublished\":\"2017-05-21T16:32:07+00:00\",\"dateModified\":\"2017-05-21T16:50:04+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#\\\/schema\\\/person\\\/16dcfdd54ec1c46bd1941659739de4cc\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ricardomoinhos.com\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/blog_feature_image_photoshop.jpg\",\"contentUrl\":\"https:\\\/\\\/ricardomoinhos.com\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/blog_feature_image_photoshop.jpg\",\"width\":375,\"height\":366},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/photoshop-scripting\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ricardomoinhos.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Photoshop Scripting &#8211; Batch resizing image size and image canvas\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#website\",\"url\":\"https:\\\/\\\/ricardomoinhos.com\\\/\",\"name\":\"Ricardo Paiva Moinhos\",\"description\":\"Welcome\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ricardomoinhos.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ricardomoinhos.com\\\/#\\\/schema\\\/person\\\/16dcfdd54ec1c46bd1941659739de4cc\",\"name\":\"Ricardo Paiva Moinhos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g\",\"caption\":\"Ricardo Paiva Moinhos\"},\"url\":\"https:\\\/\\\/ricardomoinhos.com\\\/pt\\\/author\\\/ricardopaiva\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Photoshop Scripting - Batch resizing image size and image canvas - Ricardo Paiva Moinhos","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:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/","og_locale":"pt_PT","og_type":"article","og_title":"Photoshop Scripting - Batch resizing image size and image canvas - Ricardo Paiva Moinhos","og_description":"Later today,\u00a0a friend\u00a0of mine was editing some images and I&#8217;ve noticed that he was repeating the same process again and again&#8230; open the image&#8230; resize the width to 720 pixels&#8230; selecting a matching background colour (because when resizing canvas, bars on top and bottom of the image were being added) and resize canvas so the [&hellip;]","og_url":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/","og_site_name":"Ricardo Paiva Moinhos","article_published_time":"2017-05-21T16:32:07+00:00","article_modified_time":"2017-05-21T16:50:04+00:00","og_image":[{"width":375,"height":366,"url":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/blog_feature_image_photoshop.jpg","type":"image\/jpeg"}],"author":"Ricardo Paiva Moinhos","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Ricardo Paiva Moinhos","Tempo estimado de leitura":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/#article","isPartOf":{"@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/"},"author":{"name":"Ricardo Paiva Moinhos","@id":"https:\/\/ricardomoinhos.com\/#\/schema\/person\/16dcfdd54ec1c46bd1941659739de4cc"},"headline":"Photoshop Scripting &#8211; Batch resizing image size and image canvas","datePublished":"2017-05-21T16:32:07+00:00","dateModified":"2017-05-21T16:50:04+00:00","mainEntityOfPage":{"@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/"},"wordCount":616,"commentCount":6,"image":{"@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/#primaryimage"},"thumbnailUrl":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/blog_feature_image_photoshop.jpg","keywords":["photoshop","scripting"],"articleSection":["Photoshop"],"inLanguage":"pt-PT","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/","url":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/","name":"Photoshop Scripting - Batch resizing image size and image canvas - Ricardo Paiva Moinhos","isPartOf":{"@id":"https:\/\/ricardomoinhos.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/#primaryimage"},"image":{"@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/#primaryimage"},"thumbnailUrl":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/blog_feature_image_photoshop.jpg","datePublished":"2017-05-21T16:32:07+00:00","dateModified":"2017-05-21T16:50:04+00:00","author":{"@id":"https:\/\/ricardomoinhos.com\/#\/schema\/person\/16dcfdd54ec1c46bd1941659739de4cc"},"breadcrumb":{"@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/"]}]},{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/#primaryimage","url":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/blog_feature_image_photoshop.jpg","contentUrl":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/blog_feature_image_photoshop.jpg","width":375,"height":366},{"@type":"BreadcrumbList","@id":"https:\/\/ricardomoinhos.com\/pt\/photoshop-scripting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ricardomoinhos.com\/"},{"@type":"ListItem","position":2,"name":"Photoshop Scripting &#8211; Batch resizing image size and image canvas"}]},{"@type":"WebSite","@id":"https:\/\/ricardomoinhos.com\/#website","url":"https:\/\/ricardomoinhos.com\/","name":"Ricardo Paiva Moinhos","description":"Welcome","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ricardomoinhos.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-PT"},{"@type":"Person","@id":"https:\/\/ricardomoinhos.com\/#\/schema\/person\/16dcfdd54ec1c46bd1941659739de4cc","name":"Ricardo Paiva Moinhos","image":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/secure.gravatar.com\/avatar\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/248366f4e615e182964f85f799c6e33cbd541a6f4ca7ee948fc16d1c14030c76?s=96&d=mm&r=g","caption":"Ricardo Paiva Moinhos"},"url":"https:\/\/ricardomoinhos.com\/pt\/author\/ricardopaiva\/"}]}},"jetpack_featured_media_url":"https:\/\/ricardomoinhos.com\/wp-content\/uploads\/2017\/05\/blog_feature_image_photoshop.jpg","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/comments?post=388"}],"version-history":[{"count":8,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/posts\/388\/revisions"}],"predecessor-version":[{"id":400,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/posts\/388\/revisions\/400"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/media\/397"}],"wp:attachment":[{"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/media?parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/categories?post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ricardomoinhos.com\/pt\/wp-json\/wp\/v2\/tags?post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}