Knigodej gem is a tool to make a PDF, and DJVU books from the XCF (GIMP image) source.