[scribus] Image scaling in frames

Gregory Pittman gpittman at iglou.com
Fri Nov 9 14:33:59 UTC 2018


On 11/9/18 8:15 AM, Colin Madwolf wrote:
> 
> 
>> On 9 Nov 2018, at 12:00, scribus-request at lists.scribus.net wrote:
>>
>> A file dialog opens to choose a new image file. The file is loaded and the scaling set to the previous settings.
>>
>> Greg
>>
>> #!/usr/bin/env python
>> # -*- coding: utf-8  -*-
> 
> 
> Sounds perfect to me - how do we implement that on our own systems ?
> 

Hi Colin,

It's actually quite simple, even if you've never done it before. 
You need a plain-text editor. Copy the lines of the script -- the first line should be '#!/usr/bin/env python', then paste to a new document in the editor. Save that file as retainscaling.py (or whatever you choose).

In Scribus, select the image frame you wish to perform this on, go to the main menu item Scripter, choose Execute Script... and find your file. The next thing you should see is the File Dialog from the script asking you to choose your new image file. Once you click Ok, the image should be loaded and scaled and the script is done.

After you've done this once, you can go to Scripter > Recent Scripts, and you should see the script as the top choice.
You can send the script file retainscaling.py to as many others who want to put it on their computer for their own use.

Greg



More information about the scribus mailing list