[scribus] patching getImageScale()

a.l.e ale.comp_06 at xox.ch
Tue Feb 15 13:44:16 CET 2011


hi scribusers

during the weekend i was trying to help out jimjo and write a script 
which would resize the current frame to the image size.

i stumbled upon the  getImageScale() and noticed that its return value 
does not make much sense. i've openened a bug report and attached a 
patch which gives the same results as in the PP

http://bugs.scribus.net/view.php?id=9745

my question to you is:

is anybody using a script which already uses the value returned by  
getImageScale()?
(comparing the X and Y value does not count: the proportions among X and 
Y scale will not be changed, except in the case you have pictures which 
really weird X and Y resolutions).

if yes, can you test the patch and see if it affects your scripts?

craig was suggesting to create new commands and not touch the current 
implementation of  getImageScale()...
personally, i'd prefer to get a good value out of  getImageScale() and 
avoid creating several commands which basically do the same (and one of 
them returns a value which can't really be used).

i'm waiting for your feedback.

ciao
a.l.e



More information about the scribus mailing list