[scribus] image width and frame width

Gregory Pittman gpittman at iglou.com
Sun Jan 27 15:10:51 UTC 2019


On 1/26/19 6:02 PM, ale rimoldi wrote:
> ok,
> 
> i've finally found out how to correctly calculate the values.
> 
> https://github.com/aoloe/scribus/blob/image-move-inner/scribus/pageitem.cpp#L10172
> 
> a few more things to do, and then i should be ready for submitting a
> patch...
> 

This was always a bit tricky, even with a script. I have used the Python Imaging Library to get the size of an image, then use that to resize an image frame.
Another method is to use getImageScale() to get the X and Y scales, then figure out how to resize the frame from that information.

Greg




More information about the scribus mailing list