On Sun, Apr 02, 2000 at 10:47:28PM +0200, Axel Rousseau <[EMAIL PROTECTED]> wrote:
> I try to save a jpeg file with the gimp_file_save fonction but I've got
> an error :
> Caution : quantization tables are too coarse for baseline JPEG
> The image is saved, but with only 3 or 4 colors (black,white and greys)
> What's the problem ? (i've difficult to understand the error message)
Wrong arguments. It is difficult to guess arguments to jpeg_save, since they
are noweher documented (ok, except by reading the source). Here is a starting
point that works (for current gimp cvs versions):
$drawable->file_jpeg_save(($filename)x2, 0.7, 0, 1, 0, "", 0, 1, 0, 0)
--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED] |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|