r22544 by gpittman - Put script Align_image_in_frame.py back in trunk. Put info about setScaleFrameToImage() also in Commands for Images & Vectors in manual.

scribus-commit scribus-commit at lists.scribus.net
Fri May 18 14:11:04 UTC 2018


Author: gpittman
Date: Fri May 18 14:11:04 2018
New Revision: 22544

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22544
Log:
Put script Align_image_in_frame.py back in trunk. Put info about setScaleFrameToImage() also in Commands for Images & Vectors in manual.

Added:
    trunk/Scribus/scribus/plugins/scriptplugin/scripts/Align_image_in_frame.py
Modified:
    trunk/Scribus/doc/en/scripterapi-images.html
    trunk/Scribus/scribus/plugins/scriptplugin/scripts/CMakeLists.txt

Modified: trunk/Scribus/doc/en/scripterapi-images.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22544&path=/trunk/Scribus/doc/en/scripterapi-images.html
==============================================================================
--- trunk/Scribus/doc/en/scripterapi-images.html	(original)
+++ trunk/Scribus/doc/en/scripterapi-images.html	Fri May 18 14:11:04 2018
@@ -28,6 +28,11 @@
 <dd><code>getImageFile(["name"]) -> string</code>
 <p>Returns the filename for the image in the image frame. If "name" is not given the currently selected item is used.</p></dd>
  
+<dt><a name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
+<dd><code>setScaleFrameToImage([name])</code>
+<p>Set frame size on the selected or specified image frame to image size.</p>
+<p>May raise WrongFrameTypeError.</p></dd>
+
 <dt><a name="-setScaleImageToFrame"><strong>setScaleImageToFrame</strong></a>(...)</dt>
 <dd><code>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>)</code>
 <p>Sets the scale to frame on the selected or specified image frame to `scaletoframe'. If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. Both `scaletoframe' and `proportional' are boolean.</p>

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/CMakeLists.txt
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22544&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripts/CMakeLists.txt
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripts/CMakeLists.txt	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripts/CMakeLists.txt	Fri May 18 14:11:04 2018
@@ -3,6 +3,7 @@
 )
 
 install(FILES
+Align_image_in_frame.py
 Autoquote.py
 Autoquote2.py
 CalendarWizard.py




More information about the scribus-commit mailing list