View Issue Details

IDProjectCategoryView StatusLast Update
0007744ScribusScripterpublic2009-01-22 19:44
ReporteraliB Assigned Tojghali  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformDell Inspiron 9400OSLinuxOS VersionOpenSuSE 11.1
Product Version1.3.5svn 
Fixed in Version1.3.5svn 
Summary0007744: scaleImage(x,y,"name") does not behave correct on some images
DescriptionThe Scripter documentation says, x and y are values from 0 up to ...
where 1 means 100 %
Calling scaleImage(1,1,"Image1") for the image
http://interfacelift.com/wallpaper_beta/details/1465/frozen_trees.html
does not scale the image to 100 %
Steps To Reproduce1. Create a document and insert an image frame and call it Image1
2. Load the above image (with resolution 2560x1600) into this image frame.
3. open the scripter console and type
scaleImage(1,1,"Image1")
4. Execute and see the result
TagsNo tags attached.
Patch

Activities

jghali

2009-01-21 22:53

administrator   ~0020959

scaleImage() set the internal scaling factors which are different from the values viewed on PP. To fix the issue and avoid potential breakage of existing scripts, i added a new setImageScale method() which allows to set values as seen on PP. It can be used the same way as scaleImage.

aliB

2009-01-22 14:39

reporter   ~0020966

The documentation on
http://docs.scribus.net/index.php?lang=en&page=scripterapi-setobjprop
should be fixed.

"Sets the scaling factors of the picture in the image frame "name". If "name" is not given the currently selected item is used. A number of 1 means 100 %."

And the new function should be added.

jghali

2009-01-22 19:34

administrator   ~0020972

Documentation is now updated in svn. Update on website should come shortly.

Issue History

Date Modified Username Field Change
2009-01-21 21:15 aliB New Issue
2009-01-21 22:53 jghali Note Added: 0020959
2009-01-21 22:53 jghali Status new => resolved
2009-01-21 22:53 jghali Fixed in Version => 1.3.5svn
2009-01-21 22:53 jghali Resolution open => fixed
2009-01-21 22:53 jghali Assigned To => jghali
2009-01-22 14:39 aliB Note Added: 0020966
2009-01-22 14:39 aliB Status resolved => feedback
2009-01-22 14:39 aliB Resolution fixed => reopened
2009-01-22 19:34 jghali Note Added: 0020972
2009-01-22 19:34 jghali Status feedback => resolved
2009-01-22 19:34 jghali Resolution reopened => fixed
2009-01-22 19:44 cbradney Status resolved => closed