[scribus] patching getImageScale()

a.l.e ale.comp_06 at xox.ch
Thu Feb 17 10:27:24 CET 2011


On 2/17/11 12:03 AM, José Antonio Rocha wrote:
> 2011/2/16 a.l.e<ale.comp_06 at xox.ch>
>
>> this means that scaleImage() is probably also "broken" and should be fixed
>> the same way as getImageScale() is.
>>
> This is true.
>
> I do some Dexter's Lab jobs here, and find why scaleImage() is deprecated:
> it scale at 72-points-base.
>
> getImageScale() works in the same manner. If a image is at 72 DPI,
> getImageScale() will return (1.0, 1.0).
> If a image is at 144 DPI, will return (0.5, 0.5), and so on
yep, setImageScale() is what you should be using.

imo, it's a bug one can't use the result from getImageScale() and pass 
it to setImageScale().

creating a patch also for the existing (but deprecated) imageScale() 
should allow existing script to keep on working and make future scripts 
saner!

ciao
a.l.e



More information about the scribus mailing list