<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts tagged #graysonhicks</title><description>All posts tagged with graysonhicks on queen.raae.codes</description><link>https://queen.raae.codes/tag/graysonhicks/</link><item><title>🧑‍💻 ✨ ~ &quot;What a legend&quot; — coding and chatting with Grayson Hicks of Gatsby</title><link>https://queen.raae.codes/2022-06-17-grayson/</link><guid isPermaLink="true">https://queen.raae.codes/2022-06-17-grayson/</guid><description>We had a blast yesterday coding and chatting with Grayson Hicks of Gatsby on our unauthorized and rum-fueled treasure hunt in the sharky waters around the…</description><pubDate>Fri, 17 Jun 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;We had a blast yesterday coding and chatting with Grayson Hicks of Gatsby on our &lt;a href=&quot;https://youtu.be/2moLttHSLWc&quot;&gt;unauthorized and rum-fueled treasure hunt&lt;/a&gt; in the sharky waters around the Gatsby islands. And it seems we were not the only ones 👇&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/tujoworker/status/1537516435907411968&quot;&gt;&lt;img src=&quot;./tweet.jpg&quot; alt=&quot;What a legend @graysonhicks ✨ together with @raae and @OlaHolstVea 💪&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We worked on Gatsby ImageCDN support for Grayson&apos;s gatsby-plugin-remote-images.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Read &lt;a href=&quot;/2022-06-10-remote-image/&quot;&gt;Skip handling remote images yourself; there is a plugin for that!&lt;/a&gt; to learn more about why this plugin is da 💣&lt;/li&gt;
&lt;li&gt;Read &lt;a href=&quot;/2022-05-20-image-modes/&quot;&gt;Your plugin should support both Gatsby Image CDN and downloading images as local file nodes&lt;/a&gt; for the why, what and how!&lt;/li&gt;
&lt;li&gt;Review the code in this &lt;a href=&quot;https://github.com/graysonhicks/gatsby-plugin-remote-images/pull/88&quot;&gt;Draft PR&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt; &lt;br&gt;
All the best,&lt;br&gt;
Queen Raae&lt;/p&gt;
</content:encoded></item><item><title>🧱 🖼 ~ Skip handling remote images yourself; there is a plugin for that!</title><link>https://queen.raae.codes/2022-06-10-remote-image/</link><guid isPermaLink="true">https://queen.raae.codes/2022-06-10-remote-image/</guid><description>On yesterday&apos;s unauthorized and rum-fueled treasure hunt in the sharky waters around the Gatsby islands, we played around with remote images again. You get a…</description><pubDate>Fri, 10 Jun 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;On yesterday&apos;s &lt;a href=&quot;https://youtu.be/QB1Y8dWZpgM&quot;&gt;unauthorized and rum-fueled treasure hunt&lt;/a&gt; in the sharky waters around the Gatsby islands, we played around with remote images again.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://youtu.be/QB1Y8dWZpgM&quot;&gt;&lt;img src=&quot;./youtube-screengrab.jpg&quot; alt=&quot;YouTube Screengrab&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You get a genuinely atomic build by sourcing remote images into your Gatsby Data Layer as File nodes. Pointing to a URL you do not control on the world wide web is not a super robust solution.&lt;/p&gt;
&lt;h2&gt;The What?&lt;/h2&gt;
&lt;p&gt;Make use of &lt;a href=&quot;https://github.com/graysonhicks/gatsby-plugin-remote-images&quot;&gt;gatsby-plugin-remote-images&lt;/a&gt; by &lt;a href=&quot;https://twitter.com/graysonhicks&quot;&gt;Grayson Hicks&lt;/a&gt;, Staff Software Engineer at Gatsby in our web-scraping ScrapingBee demo.&lt;/p&gt;
&lt;p&gt;Or, more broadly, utilizing the Gatsby Plugin Ecosystem.&lt;/p&gt;
&lt;h2&gt;The Why?&lt;/h2&gt;
&lt;p&gt;So we do not have to go through the motions of creating remote file nodes ourselves!&lt;/p&gt;
&lt;p&gt;Or, more broadly, let&apos;s not do it all in one plugin. Many plugins, for instance, create remote filed nodes, then realize the need to add an option to disable such functionality. Maybe the images should rather be uploaded to Cloudinary... Offloading the functionality to gatsby-plugin-remote-images such an option is no longer needed.&lt;/p&gt;
&lt;h2&gt;The How&lt;/h2&gt;
&lt;p&gt;Install the plugin:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;yarn add gatsby-plugin-remote-images
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and add it to your Gatsby configuration:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-remote-images`,
      options: {
        nodeType: &amp;quot;CrowdcastWebinar&amp;quot;,
        imagePath: &amp;quot;coverSrc&amp;quot;,
        name: &amp;quot;cover&amp;quot;,
      },
    },
  ],
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will create a file node for the remote image found at &lt;code&gt;coverSrc&lt;/code&gt; on a &lt;code&gt;CrowdcastWebinar&lt;/code&gt; node and make it available on &lt;code&gt;cover&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Take a look at yesterday&apos;s &lt;a href=&quot;https://github.com/queen-raae/gatsby-demo-web-scraping/pull/5/files&quot;&gt;Pull Request&lt;/a&gt; for the complete picture.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;There are some nifty options if the structure of your nodes is not as straightforward as for &lt;code&gt;CrowdcastWebinar&lt;/code&gt;. Check out the &lt;a href=&quot;https://github.com/graysonhicks/gatsby-plugin-remote-images&quot;&gt;gatsby-plugin-remote-images docs&lt;/a&gt; for those and more.&lt;/p&gt;
&lt;p&gt;If you would like to use the file with the Gatsby Image component, make sure you follow the &lt;a href=&quot;https://www.gatsbyjs.com/plugins/gatsby-plugin-image&quot;&gt;gatsby-plugin-image instructions&lt;/a&gt; as well.&lt;/p&gt;
&lt;p&gt; &lt;br&gt;
All the best,&lt;br&gt;
Queen Raae&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PS:&lt;/strong&gt; Next week, Grayson joins us to work on &lt;a href=&quot;https://github.com/graysonhicks/gatsby-plugin-remote-images/issues/87&quot;&gt;GatsbyImageCDN&lt;/a&gt; support 🎉&lt;/p&gt;
</content:encoded></item></channel></rss>