Select a bitmap and one or more other objects, and run Extensions → Raster → Pixels to Objects…. The extension will place one copy of an object at each pixel coordinate. For example, a 32×32 image will lead to objects being placed at coordinates (0, 0) through (31, 31). Options enable objects to have their stroke and/or fill color adjusted to match the corresponding image pixel; background-colored pixels to be either considered or ignored; image coordinates to be scaled up or down; and multiple objects to be assigned to coordinates either randomly or deterministically. For instance, in the banner image above, a 16×16 bitmap was selected along with four path objects of size at most 18×18. In the dialog box, "Apply color to stroke" and "Ignore background pixels" were checked. "Image coordinate scaling" was set to 18 to prevent the path objects from overlapping. And "Instantiation of multiple objects" was set to "By image coordinates" to cycle evenly through all four path objects.
A set of Inkscape extensions which uses third party software like ImageJ, R, PyMOL and Processing to generate figure panel images from source code taken from the current rectangle or image object. Installation: Unzip to 'User Extensions' folder. History: 2023-07-28: thanks to Tim-Oliver Buchholz, directly specify panel DPIs for R and Matplotlib 2023-06-16: add matplotlib panels; fix coordinates for panel and lane labels; assessed 1.3beta compatibility. 2022-04-08: upload version compatible with both 1.1 and 1.2beta 2021-07-12: fix file separators on windows for R, PyMOL, Processing; work around call returntype for inkscape 1.2 2021-05-24: fix file separators on windows
# Inkscape ComfyUI Extension An Inkscape extension that integrates ComfyUI - turning Inkscape into Recraft, but with all Inkscape's features! The **Inkscape ComfyUI Extension** integrates Inkscape with the ComfyUI API, enabling users to generate images based on selected SVG objects and specified prompts. This extension facilitates the creation of AI-generated images directly within Inkscape, streamlining the design workflow. ## Key Features: * AI Image Generation: Transform selected SVG elements into AI-generated images using custom positive and negative prompts. * Seamless Integration: Directly interact with the ComfyUI API from within Inkscape. * Customizable Parameters: Adjust settings such as CFG Scale, Denoise, Seed, and Steps to fine-tune image generation. * Workflow Management: Load and utilize predefined workflows in JSON format. ## Dependencies: * Inkscape: Version 1.3.2 or higher. * ComfyUI API: Accessible at the specified API URL (default: 127.0.0.1:8188). ## Compatibility: * Operating Systems: Compatible with Windows, macOS, and Linux. * Inkscape Versions: Designed for Inkscape 1.0 and above. ## Installation: 1. Set Up ComfyUI: Ensure ComfyUI is running and accessible at the specified API URL. 2. Install Inkscape 3. Install Extension: Place the extension files in Inkscape’s user extensions directory. You can find this folder in: - Edit>Preferences or Inkscape>Settings on Mac - Select System - Press the **"Open"** button next to "User extensions" 4. Restart Inkscape: Restart Inkscape to load the new extension. 5. Use the Extension: Select SVG objects, navigate to the extension, input prompts and parameters, and generate images. ## Setup: 1. An api version workflow is included - check to make sure you have all the right models by opening it in ComfyUI. * Or use your own after saving it to API format. 2. The features are currently limited to: * A positive prompt * A negative prompt * An image input * A KSampler's: * CFG Scale * Denoise * Seed * Steps 3. You need to find the correct IDs in the JSON file and set those in the IDs tab. * These IDs will differ from what you see in your normal (non-api) workflow in ComfyUI, so remember to check. 4. If your ComfyUI IP or port differs, update to match. * If ComfyUI is on a different PC on your network, remember to start it with the argument: > "--listen 0.0.0.0" 5. Remember to follow the above process when you change the workflow. Would be nice to improve this to a history - help welcome! ## Usage: 1. Draw something or select an existing object. 2. Extensions>Render>ComfyUI 3. If you haven't done the setup, do so now 3. Enter your prompt and select your values 4. Press Apply 5. Wait for ComfyUI to finish producing your results 6. Rave in awe! ### Additionally * Once you have the image, it is a simple matter of tracing the bitmap. You can find this feature at **Path>Trace Bitmap**. Play around with the settings. * It often helps to combine the results with the same prompt to refine the outcome - play around! ## Security Considerations: * API Interactions: The extension communicates with the ComfyUI API via HTTP requests. Ensure the API URL is correctly configured and secure. * File Handling: Temporary files are created during image processing. The extension manages these files securely, but users should be aware of their system’s temporary directory policies. By integrating AI-driven image generation into Inkscape, this extension enhances creative workflows, offering designers a powerful tool to expand their design capabilities.
Extension Inkscape with Pillow Straighten your image embrace the Straight Fit ! Select a quadrilateral portion of the image to adapt it to the page format, regardless of the size of the format." This version, compatible with all operating systems, does not require additional modules and works (normally) with the modules pre-installed by Inkscape. It is therefore better suited for Windows users (not tested on macOS). " Redresse ton image, adopte le Straight Fit ! Sélectionner une partie quadrilatérale de l'image pour l'adapter au format de la page quelle que soit la taille du format. Cette version adaptée à tous les O.S. ne nécessite pas de modules complémentaire et fonctionne (normalement) avec les modules pré-installés par inkscape. Elle sera ainsi mieux adaptée aux utilisateurs de Windows (pas testée sur MacOS)
Straightening A4 format from raster image. Adaptation of Shrinivas Kulkarni's extension