[Gtk-sharp-list] Pixbuf image conversion performance < System.Drawing.Image

Christopher Sawyer christoofar at gmail.com
Fri Apr 9 22:17:03 EDT 2010


I noticed that when using Gdk.Pixbuf to do a mass conversion of files from
TIFF to PNG, Pixbuf was horribly slow, especially for large image sizes
(11"x17" @ 600dpi).  I'm using PNG to knock down the size of large TIFF
scans coming in from a high speed scanner.

// Conversion A (Pixbuf)
Pixbuf a = new Pixbuf(myTiffFile);
a.Save("mypng.png", "png");
File.Delete(myTiffFile);

// Conversion B (Image)
System.Drawing.Image b = System.Drawing.Image.FromFile(myTiffFile);
b.Save("mypng.png", System.Drawing.Imaging.ImageFormat.Png);
File.Delete(myTiffFile);


Is just an issue of a poorer/slower implementation of PNG in GTK?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20100409/a34176fa/attachment.html 


More information about the Gtk-sharp-list mailing list