Re: scaling images with Script-Fu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


--- In script-fu@xxxxxxxxxxxxxxx, "David Kotchen" <dtkotchen@xxxx> 
> I have been playing around with the "gimp-drawable-transform-scale"
> procedure and have written some simple scripts. However, I cannot 
> to match the defaults given by "gimp-image-scale". I thought that
> these two commands would produce the same result:
> (gimp-drawable-transform-scale (car (gimp-image-get-active-drawable
> theImage)) 0 0 568 426 0 1 0 3 0)
> (gimp-image-scale theImage 568 426)
> I believe that I have the correct "default" values plugged into the
> first procedure above.
> I have posted the same image produced by each of these procedures 
> The full scripts for each are also posted on the web page.
> There are significant differences between the two images. In
> particular, the image produced by "gimp-image-scale" is smoother 
> has a smaller file size.
> What accounts for the difference between the two? Are the "default"
> values that I have plugged into "gimp-drawable-transform-scale" not
> the default values used in "gimp-image-scale"? Or is there 
> included in "gimp-image-scale" that is not reflected in
> "gimp-drawable-transform-scale"?
> (By the way, if it is at all helpful, the original image is posted 
> It's large: 2.1 MB)
> I'd be grateful for any thoughts on this. Many thanks!

Hi David,

   I am not sure if this helps, but browsing throught the PDB 
Browser, i saw a series of default provided by the same author,
so you can use gimp-drawable-transform-scale-default,
instead of gimp-drawable-transform-scale. The default
seems to use no interpolation according to documentation.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!

Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> To unsubscribe from this group, send an email to:

<*> Your use of Yahoo! Groups is subject to:

[Index of Archives]     [Gimp Developers]     [Gimp Users]     [Yosemite News]     [Epson Inkjet Printers]     [Scanners]     [Gimp's Home]     [Steve's Art]

&hbsp; Powered by Linux