scaling images with Script-Fu

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


I have been playing around with the "gimp-drawable-transform-scale"
procedure and have written some simple scripts. However, I cannot seem
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 here:
http://www.stop-the-madness.net/GimpScale/ScaledImageTest.html

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 and
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 something
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 here:
http://www.stop-the-madness.net/GimpScale/IMG_1322.jpg
It's large: 2.1 MB)

I'd be grateful for any thoughts on this. Many thanks!





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/e4wwlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/script-fu/

<*> To unsubscribe from this group, send an email to:
    script-fu-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





Photo 4 Less

[Gimp Developers]     [Gimp Users]     [Photos]     [Yosemite News]     [Yosemite Photos]    [Epson Inkjet]     [Scanner]     [Gimp's Home]     [Steve's Art]

Add to Google Powered by Linux