Discussion:
[scribus] Image scaling in frames
Colin Madwolf
2018-11-09 13:15:58 UTC
Permalink
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 ?

Cheers
Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20181109/7c4fdaf3/attachment.html>
___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Gregory Pittman
2018-11-09 14:33:59 UTC
Permalink
Post by Colin Madwolf
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

___
Scribus Mailing List: ***@lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net

Loading...