Update: Adds negative prompt functionality, deprecates legacy.php/HTML3 suppor

t in favor of HTML 4.0
This commit is contained in:
markmental 2025-01-19 18:04:41 -05:00
commit 3914c00b6d
3 changed files with 132 additions and 456 deletions

View file

@ -3,12 +3,6 @@
A minimalistic, JavaScript-free web interface, front-end and processing server for Stable Diffusion, designed specifically for being accessed by legacy systems and browsers as clients. This interface relies on the API from AUTOMATIC1111's Stable Diffusion WebUI.
## Features
Two separate interfaces are provided:
- `index.php`: HTML 4.01+ compliant interface
- `legacy.php`: HTML 3.2 compliant interface for extremely old systems
Common features across both versions:
- No JavaScript dependencies
- Lightweight and fast loading
- Support for LORA models using square bracket syntax
@ -19,12 +13,11 @@ Common features across both versions:
- Sampling steps
- CFG Scale
- Choice of sampling methods
- Negative Prompt Support (1-19-2025 Update)
## Browser Compatibility
- `index.php`: Tested working on IE4+ and comparable browsers
- `legacy.php`: Tested working on IE3 and comparable browsers
- Both versions work on modern browsers
- `index.php`: Tested working on IE4+, Netscape 4.x and above browsers (HTML 4 compliant)
## Requirements
@ -40,15 +33,14 @@ Common features across both versions:
1. Ensure you have AUTOMATIC1111's Stable Diffusion WebUI running with the `--api` flag
2. Install PHP and ImageMagick on your system
3. Copy both `index.php` and `legacy.php` to your web server directory
3. Copy both `index.php` to your web server directory
4. Ensure the directory is writable by the web server for saved prompts and generated images
5. Access through your web browser:
- Use `index.php` for HTML 4.01+ compatible browsers
- Use `legacy.php` for HTML 3.2 compatible browsers
## Usage
1. Enter your prompt in the text area
1. Enter your prompt and negative prompt if applicable in the text area
2. Configure generation parameters as needed
3. Click "Generate Image" to create your image
4. Save frequently used prompts server-side using the "Save Prompt" feature
@ -68,13 +60,6 @@ Example:
- The interface works without any client-side scripting
- All processing is done server-side
- Compatible with browsers from the late 1990s to now
- The HTML 3.2 version (`legacy.php`) provides basic functionality for extremely old mid 1990s browsers
## Why Two Versions?
- `index.php` provides a more refined interface with better styling and layout options, suitable for browsers supporting HTML 4.01+
- `legacy.php` strips down the interface to basic HTML 3.2 for maximum compatibility with vintage systems and browsers
- Both achieve the same core functionality with different levels of visual polish
## Screenshots
@ -87,7 +72,6 @@ Example:
![Screenshot 2024-12-14 143036](https://github.com/user-attachments/assets/9745d00f-57cc-4788-a17d-43782d7e6fa3)
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request or fork.