Episode 5

full
Published on:

1st May 2023

🤖 AI-based image and code generation tools

Kerri and Ash play with AI!

Image generation

First up, our co-hosts look at text-to-font and text-to-image capabilities of these tools:

  • Adobe Firefly
  • Midjourney
  • Stable Diffusion

You can see all of the images we mention in this Mastodon thread.

Code generation

Next up, code-generation tools like GitHub Copilot, GitHub Copilot for Docs, and ChatGPT get a look.

Here's the Adobe UXP plugin code that was generated (notice the sweet, sweet use of Papyrus):

```

const { executeAsModal } = require("photoshop").core;

const { LayerKind } = require("photoshop").constants;

async function main() {

  try {

    await executeAsModal(async () => {

      const activeDocument = require("photoshop").app.activeDocument;

      const textLayers = activeDocument.layers.filter(layer => layer.kind === LayerKind.TEXT);

      await Promise.all(textLayers.map(async layer => {

        layer.textItem.characterStyle.font = "Papyrus";

        await layer.textItem.convertToParagraphText();

      }));

    });

  } catch (err) {

    console.log(err);

  }

}

```

Links!

Subscribe to I’d Rather Be Scripting on:


Kerri 

Ash

Listen for free

Show artwork for I'd Rather Be Scripting

About the Podcast

I'd Rather Be Scripting
Adventures in Technology Tangents
Ash and Kerri go on mostly random tangents about technology, music, photography, and just about anything else. You never know what you'll hear!

About your hosts

Ash Ryan Arnwine

Profile picture for Ash Ryan Arnwine
Here! #DevRel human. #JavaScript hacker. #vinyl newb. Life tourist.
 Wouldn't you rather be scripting?

Mastodon-don-don: https://indieweb.social/@ashryan

Kerri Shotts

Profile picture for Kerri Shotts
Principal Product Manager for UXP @Adobe, #JavaScript fangirl, Technical writer, Photographer, #Trans (she/her), #Atheist. All opinions are my own.

On Mastodon (@kerrishotts@mastodon.cloud): https://mastodon.cloud/@kerrishotts