Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
February 08, 2023, 11:11:42 pm
News:
Problems registering, no confirmation email - see
http://wiki.scribus.net/canvas/Forums_Registration
Home
Help
Search
Login
Register
Scribus Forums
»
Scribus
»
Scripts and Plugins
»
Change image shape with Scripter
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Change image shape with Scripter (Read 531 times)
rguimera
Newbie
Posts: 2
Karma: 0
Scribus User
Change image shape with Scripter
«
on:
June 06, 2022, 02:32:25 pm »
Hello,
Is there a way to change the shape of an ImageFrame with the scripter? I've been stuck with this for a while, and haven't found any relevant information on this.
Thanks!
Logged
Erhard
Newbie
Posts: 5
Karma: 0
Scribus User
Re: Change image shape with Scripter
«
Reply #1 on:
June 16, 2022, 06:30:58 pm »
Yes its possible ....
https://python.hotexamples.com/examples/scribus/-/setScaleImageToFrame/python-setscaleimagetoframe-function-examples.html
And then I use the scripter command setScaleFrameToImage
This two steps are necessary to keep the ratio of the image and to adopt the frame exact to the scaled down image
Health and Peace
Erhard
Logged
rguimera
Newbie
Posts: 2
Karma: 0
Scribus User
Re: Change image shape with Scripter
«
Reply #2 on:
June 20, 2022, 04:53:15 pm »
Thanks for your answer, Erhard. I should have specified better---what I need is to make an image round, for example, as opposed to rectangular. From the link you posted, I wasn't able to see how to do that.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Scribus Forums
»
Scribus
»
Scripts and Plugins
»
Change image shape with Scripter