Scribus Forums

Scribus => Scripts and Plugins => Topic started by: joskiboy on March 06, 2012, 02:11:06 PM

Title: Scripting "Adjust frame to image" menu command
Post by: joskiboy on March 06, 2012, 02:11:06 PM
Hello,

I have been trying to get my head around scripting in Scribus to automate some things I want to do when making an image album.

What I have done so far is to itterate through all the images in a document, setting the border and rounding corners. So far simple.

I then do the equivilent of the menu command "adjust image to frame" by using the setScaleImageToFrame(...) command. (I also have that set in preferences)

What I would also like to do is for each image issue the equivilent of the "adjust frame to image" command to help ensure the frames align perfectly to each photo.

I can't seem to find a command that would do this and am wondering how to approach it - bit lost in the difference between the image and the frame with the commands available.

Any thoughts would be great.