in reply to Re: Batch conversion of images using gimp and Perl
in thread Batch conversion of images using gimp and Perl
Perl module Gimp that provides bindings allows you to call this function asIn: IMAGE image INT32 new_width INT32 new_height
It also does some magick so you can call same operation under different names. All following calls do the same thing:Gimp->gimp_image_scale($img, $new_width, $new_height);
All you have to do is adding such call before saving jpeg file.Gimp->gimp_image_scale($img, $new_width, $new_height); Gimp->image_scale($img, $new_width, $new_height); $img->scale($new_width, $new_height);
You can learn more from documenation in Gimp module and from Gimp-Perl web site.
--
Ilya Martynov
(http://martynov.org/)
|
|---|