Scripter/Images

I decided to beef up this page a bit, since we get a number of questions about whether a script can be written for some task or other, and one quickly realizes that it takes some time to find all the scripts that deal with such a task. What people really need is a quick survey of what's out there, so that they can either modify some existing script themselves, or be able to ask for help with the modification for their particular needs.

I'll try to start with simple scripts first, then go to more complicated or perhaps esoteric ones down the page.

Swap Images
This is just a simple utility to switch the images in 2 selected frames. If you work a lot with images, utilities like this can be timesavers. Note that the images don't have to be on the same page, just click the first, Shift-click the second, then run the script.

This is undo-able, but you will need to click Undo twice, since there are two separate operations in the script.

Image crop, resize and CMYK conversion. Save and reload in TIFF format
I've not used this script, though it does generally seem to be a useful thing. The one thing I would question is whether the colorspace conversion is necessary, since we mostly recommend that users let Scribus do the colorspace conversion to CMYK.

Gallery.py
This is a little different approach to importing images. This script expects you to have created and selected one or more image frames. You are first shows a message that tells you have many frames you have selected. You are then presented with a file dialog to begin choosing images.

In the 1.4.x series of Scribus versions, you go back to your starting directory rather than where you last were. There should be a drop-down list of directories you have recently accessed to help with navigation. On some systems, Preview may only work effectively if you right-click the file first, since left-clicking rapidly selects the file before you have a chance to see it in the preview window. When you have selected as many images as you want, click Cancel. You then can choose the width of the frame for resizing, if you have the Python Imaging Library. The script continues until it runs out of images or runs out of selected frames to fill.