Scripting "Adjust frame to image" menu command

Previous topic - Next topic



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.