image_base64

Convert images to Base64 strings and reconstruct image files from encoded payloads.

9|1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/flaz78/9Lives --skill image-base64
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image_base64
Source: https://github.com/flaz78/9Lives/tree/main/workspace/skills/image_base64
Command: npx skills add https://github.com/flaz78/9Lives --skill image-base64

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the hassle of manually converting images to Base64 strings or data URIs, and then reconstructing images again from that encoded data.

Core Features & Use Cases

  • File to Base64: Read an image already stored in the workspace storage and convert it to a Base64 string.
  • Base64 to Image: Recreate an image file in workspace storage from a pure Base64 string or a full data URI.
  • Practical Use Case: Convert a stored screenshot into Base64 to embed it in an API request or to send it through systems that only accept text, then restore the image later from the returned Base64.

Quick Start

Ask the agent to convert the image file 'photo.png' located in the storage subfolder 'images' into a Base64 string and return the result as a data URI.

Frequently Asked Questions about image_base64

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert an image file to a Base64 string for API requests?

To convert an image to Base64, the Skill reads an image stored in your workspace storage and outputs a Base64 string or data URI suitable for API requests and text-only pipelines.

Can I reconstruct an image file from a Base64 data URI?

Yes, you can reconstruct an image file from a Base64 data URI. The Skill parses both pure Base64 strings and full data URIs to restore the original image artifact into workspace storage.

What is a data URI and when do I need it for image serialization?

A data URI is a Base64-encoded string prefixed with metadata that embeds image data directly in text. You need it when passing images through text-only pipelines or embedding them in web and app contexts.

How do I read and encode images stored in a workspace subdirectory?

You can encode workspace-stored images by providing the subdirectory and file name as inputs. The Skill accesses the workspace-scoped storage, reads the image, and returns the encoded Base64 payload.

Does converting Base64 back to an image handle both pure strings and data URIs?

Yes, converting Base64 back to an image handles both formats correctly. The Skill identifies whether the input is a pure Base64 string or a full data URI and reconstructs the image file accordingly.

Why does my Base64 image conversion require workspace storage access?

Base64 image conversion requires workspace storage access because the Skill reads source images from and writes reconstructed image files back to workspace-scoped subdirectories using specified file names.