Hi Kou, hi List

Basically I'm just saving the pixbuf as a JPEG or PNG file for integration of it on a webpage.
Any clue how I could get that done headless? Never used Cairo directly, I'm rather used to this pixmap/pixbuf save method.


2011/12/22 Kouhei Sutou <kou@cozmixng.org>

In <CAH9U35myVFycG0BO=if4T9ZP4PDfPtLysVmoTr-PvNb-cq3myQ@mail.gmail.com>
 "[ruby-gnome2-devel-en] Headless running Segfault" on Mon, 19 Dec 2011 16:19:54 +0100,
 Chloé Desoutter <chloe.desoutter@gmail.com> wrote:

> chloe@ayodhya:~/pdfparser$ cat test.rb
> begin
> require 'gtk2'
> rescue Gtk::InitError
> end
> require "poppler"
> buf = Gdk::Pixbuf.new(Gdk::Pixbuf::COLORSPACE_RGB, true, 8, 1024, 768)
> # copy the rendered buffer into an pixmap for further editing
> map = Gdk::Pixmap.new(nil, 1024, 768, 24)
> map.draw_pixbuf(nil, buf, 0, 0, 0, 0, -1, -1, Gdk::RGB::DITHER_NONE, 0, 0)

Could you show your "further editing"?
You may not need GTK+. You may be able to do "further
editing" with cairo.


Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
ruby-gnome2-devel-en mailing list