| Scripthea is a free, open-source Windows application for
text-to-image prompt engineering.
Scripthea is designed to streamline the process of crafting prompts
for text-to-image AI generators like Stable Diffusion. It offers a
structured environment for building, testing, and refining prompts,
making it an invaluable tool for artists, designers, and AI
enthusiasts seeking greater control over their creative outputs. At
its core, Scripthea simplifies prompt engineering by breaking down
prompts into two components: cues (descriptive text or phrase) and
modifiers (attributes like style, lighting, or artist references).
This modular approach allows users to experiment with various
combinations, facilitating a more systematic exploration of visual
styles and themes. |
New! Scripthea now includes
external prompt collections with one and half million unique prompts (see
here). NEW! Scripthea now can ask an LLM (via LM Studio) to tailor (fashion) your prompts in a particular way (see here). See a short introduction video-clip HERE or on YouTube. Read some reviews:
The software is distributed as a freeware and it is an open source project (under MIT license) hosted in GitHub repository. |
What is it for ?Traditional approachText-to-image generation become a common tool for anybody trying to visualize their thoughts, visions or just playing around out of curiosity. From the very beginning the common (traditional) approach has been: you describe as much as possible what your vision is and text-to-image generator translate that into an image. As the domain develops a number of guides, tutorials and lists of tips accumulate. Common tips for writing a good prompts include: state the main subject of your image; give in clear terms as much as possible details including lighting, describe the composition/framing, the mood and your preferred style. The traditional approach is suitable for generating both realistic and arty images. Within this approach Scripthea can help you by cataloging you images along with the prompts you write in image depot. More than enough number of categorized modifiers are there at your disposition. If you are not certain about some of the modifiers effect on the image, you may experiment using the most powerful Scripthea feature in this regard is its ability to easy set iterations (scans) over number of modifiers. (see Scenario #2). The scans will give you an increasingly good feeling how the text (cue) you are currently using reacts on different combination of modifiers. There will be always some chance involved in the text-to-image creation process but the aim here is to minimize it. Another way to instruct Stable Diffusion to follow more strictly your description is to increase (relative to that model) CFG (classifier-free guidance) scale in SD parameters. All this can be very productive but relies on two
conditions: |
|
|
|
||

| On the left, you see the log panel which will text you about any ongoing operations. For prompt composing, there are two modes: Single and Scan. In Single mode, you can use a single cue with one or many modifiers. In Scan mode, you can select any number of cues and any number of modifiers although each prompt will be combination of one cue + all Fixed modifiers + with a number (modifiers sample number) of Scannable modifiers. Modifiers are divided into switchable (on/off) categories. | If you wonder about any modifier, hover over it, there will be a hint for
the most of
them. If you right-click on any modifier you will be asked to confirm a google
search for that modifier. In options, you can specify the image depot folder
where the images from your scan (or a single query) will go. All the options, external and internal sizes and main window position are saved on application closing and retrieved on starting. |

| The viewer shows a Scripthea image depot (a folder with bunch of images and description.idf file). You can select a image depot folder from the directory browser on the left while the image depot text box rim is highlighted (in navy). Check Viewer page for more details about the directory browser. You can chose between table view and thumbnail (grid) view. In the grid view you can adjust the thumbnails from the menu (bottom left button). You can move around with the arrows on the bottom, all self-explanatory (I think). The only other than viewing operation you can do here is delete an image. | On the very bottom common (for both views) there is the find panel which will find a word(s) in the prompts of the active image depot and select it. Mark button will highlight the some of the prompt/images by the same criterion. The shown image itself can be zoomed in/out (buttons), panned (scroll-bars) or fit (the middle button), more tools are coming... |
Image Depot MasterImage Depot Master (IDM) is image depot manager for copying and moving images from image depot to another or to an empty one, as well deleting images from an image depot. It provides an option to validate image depot consistency as erase entries in description.idf without corresponding images. The selection of a folder (image depot or an empty one) is done the same way as in image viewer, as well as two possible views - list and grid, similar to the viewer arrangement. |
Import/Export utilitiesThe forth tab of Scripthea contains an
import utility of converting
image files
from some some text-to-image generator (e.g. Stable Diffusion, Craiyon). The import utility will convert these
images into Scripthea image depot.
The description.idf
file is a text file where each line is json formatted property
dictionary of the generated images including the prompt. You can edit
the file for any reason as you like as long as you keep the json
structure. |
Python scriptingPython scripting provides you (if you speak Python) with scripting abilities with access to a key Scripthea features as well as some specific to the integrated version of Python features. Great for automation of any routine task or anything time-consuming you know in advance what that would be. That is another way (a part of Custom Scripthea addon) to open Scripthea to any software/library. |
contactKeep in mind that the application is under active development so I would appreciate any bug report. Let me know HERE and I'll do my best to fix it ASAP. In the same way, you can communicate any ideas for improvement, experiences with the software or your willingness to help me with the project. legalScripthea software has been written by and is copyrighted to Teodor Krastev. The sources are distributed under MIT's open source license.
|
|