reducing file size with image saving (gdk_pixbuf)



Hi all,

in the Bluefish editor I have the ability for users to create (and save)
thumbnails. Mostly I use png images for thumbnails (users can also select
jpeg). If I create a thumbnail manually I do some color reduction. If I go
from RGB to lets say 64 colors I can reduce the size by 60%. Since the
target is a website size is important.

But if I save using gdk_pixbuf I can only save all RGB colors, resulting
in larger images. I can also not specify the compression factor for the
png compression (I would like to set that very high). How can I improve
this and generate smaller images?

thanks,
        Olivier
-- 
Bluefish web editor
http://bluefish.openoffice.nl/
development mailinglist: bluefish-dev lists ems ru
send "subscribe" to bluefish-dev-request lists ems ru
#bluefish on IRCnet

Attachment: pgpL1aFkRA0Bh.pgp
Description: PGP signature



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