![scribus link text frames scribus link text frames](http://1.bp.blogspot.com/-ET5Xt123xfY/VfkEkxx6NAI/AAAAAAAAEZQ/fpVvskjkzeY/s400/rootmagz-cover8.png)
We know the dimensions of this resized image, since it's the dimensions of the frame. It then resizes image to frame (with keep proportions off), and rechecks the image scale again (fullScaleX and fullScaleY). We can't really know the dimensions of this image in page units since there is no Scripter command for that. First, it gets the image scale settings (saveScaleX and saveScaleY). When you click the Align button, the AlignImage function is called.ĪlignImage is rather ingenious in how it determines how far to move the origin of the image in the frame. When you start the script it first calls the Tkinter function, which sets up the dialog to choose your position for the image in the frame. So be careful, and save often! How It Works However, due to a multi-threading bug with Python scripts in Scribus, if you attempt to launch another script while this one is running, Scribus will probably crash and you'll lose your document. Warning: You can leave the script dialog open, and continue to process more images. Of course, if you need more fine-tuned adjustments than these 9 options, you should probably use the Image Properties toolbar to manually set the X and Y offsets of the image in its frame. It requires Tkinter to be properly installed.
![scribus link text frames scribus link text frames](https://wiki.scribus.net/wiki/images/2/23/RM-tables.png)
It has been tested in Scribus 1.3.3.9 and 1.3.4. When you press the "Align" button, it will align all the selected images in their frames, using the alignment option you selected. Bottom Left, Bottom Center, Bottom Right.Middle Left, Middle Center, Middle Right.This script will give you a dialog window, allowing you to select on of 9 alignments: However, I have not found any way to align an image in its frame. This lets you align items on the page, for example centering them horizontally or vertically, aligning them to the left margin, etc. Under Scribus' "Windows" menu, there is a very nice option called "Align and Distribute".