static void query (void) { /* * Description: * Register the services provided by this plug-in */ static const GimpParamDef load_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_STRING, "filename", "The name of the file to load" }, { GIMP_PDB_STRING, "raw-filename", "The name entered" } }; static const GimpParamDef load_return_vals[] = { { GIMP_PDB_IMAGE, "image", "Output image" } }; static const GimpParamDef save_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_IMAGE, "image", "Input image" }, { GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" }, { GIMP_PDB_STRING, "filename", "The name of the file to save the image in" }, { GIMP_PDB_STRING, "raw-filename", "The name of the file to save the image in" } }; gimp_install_procedure (LOAD_PROC, "loads files of the Alias|Wavefront Pix file format", "loads files of the Alias|Wavefront Pix file format", "Michael Taylor", "Michael Taylor", "1997", N_("Alias Pix image"), NULL, GIMP_PLUGIN, G_N_ELEMENTS (load_args), G_N_ELEMENTS (load_return_vals), load_args, load_return_vals); gimp_register_file_handler_uri (LOAD_PROC); gimp_register_load_handler (LOAD_PROC, "pix,matte,mask,alpha,als", ""); gimp_install_procedure (SAVE_PROC, "save file in the Alias|Wavefront pix/matte file format", "save file in the Alias|Wavefront pix/matte file format", "Michael Taylor", "Michael Taylor", "1997", N_("Alias Pix image"), "RGB*, GRAY*, INDEXED*", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_register_file_handler_uri (SAVE_PROC); gimp_register_save_handler (SAVE_PROC, "pix,matte,mask,alpha,als", ""); }
static void query (void) { static const GimpParamDef save_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0) }" }, { GIMP_PDB_IMAGE, "image", "Input image" }, { GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" }, { GIMP_PDB_STRING, "filename", "The name of the file to save the image in" }, { GIMP_PDB_STRING, "raw-filename", "The name of the file to save the image in" } }; gimp_install_procedure (SAVE_PROC, "Dump image data in RGB(A) format for C source", "CSource cannot be run non-interactively.", "Tim Janik", "Tim Janik", "1999", N_("C source code"), "RGB*", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_register_file_handler_mime (SAVE_PROC, "text/x-csrc"); gimp_register_file_handler_uri (SAVE_PROC); gimp_register_save_handler (SAVE_PROC, "c", ""); }
static void query (void) { static const GimpParamDef load_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_STRING, "filename", "Filename to load image from" }, { GIMP_PDB_STRING, "raw-filename", "Name entered" }, { GIMP_PDB_STRING, "palette-filename", "Filename to load palette from" } }; static const GimpParamDef load_return_vals[] = { { GIMP_PDB_IMAGE, "image", "Output image" } }; static const GimpParamDef save_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_IMAGE, "image", "Input image" }, { GIMP_PDB_DRAWABLE, "drawable", "Drawable to export" }, { GIMP_PDB_STRING, "filename", "Filename to export image to" }, { GIMP_PDB_STRING, "raw-filename", "Name entered" }, { GIMP_PDB_STRING, "palette-filename", "Filename to save palette to" }, }; gimp_install_procedure (LOAD_PROC, "Loads files in KISS CEL file format", "This plug-in loads individual KISS cell files.", "Nick Lamb", "Nick Lamb <*****@*****.**>", "May 1998", N_("KISS CEL"), NULL, GIMP_PLUGIN, G_N_ELEMENTS (load_args), G_N_ELEMENTS (load_return_vals), load_args, load_return_vals); gimp_register_magic_load_handler (LOAD_PROC, "cel", "", "0,string,KiSS\\040"); gimp_install_procedure (SAVE_PROC, "Exports files in KISS CEL file format", "This plug-in exports individual KISS cell files.", "Nick Lamb", "Nick Lamb <*****@*****.**>", "May 1998", N_("KISS CEL"), "RGB*, INDEXED*", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_register_file_handler_uri (SAVE_PROC); gimp_register_save_handler (SAVE_PROC, "cel", ""); }
static void query (void) { static const GimpParamDef gih_save_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_IMAGE, "image", "Input image" }, { GIMP_PDB_DRAWABLE, "drawable", "Drawable to export" }, { GIMP_PDB_STRING, "uri", "The URI of the file to export the brush pipe in" }, { GIMP_PDB_STRING, "raw-uri", "The URI of the file to export the brush pipe in" }, { GIMP_PDB_INT32, "spacing", "Spacing of the brush" }, { GIMP_PDB_STRING, "description", "Short description of the brush pipe" }, { GIMP_PDB_INT32, "cell-width", "Width of the brush cells" }, { GIMP_PDB_INT32, "cell-height", "Width of the brush cells" }, { GIMP_PDB_INT8, "display-cols", "Display column number" }, { GIMP_PDB_INT8, "display-rows", "Display row number" }, { GIMP_PDB_INT32, "dimension", "Dimension of the brush pipe" }, /* The number of rank and sel args depend on the dimension */ { GIMP_PDB_INT8ARRAY, "rank", "Ranks of the dimensions" }, { GIMP_PDB_INT32, "dimension", "Dimension (again)" }, { GIMP_PDB_STRINGARRAY, "sel", "Selection modes" } }; gimp_install_procedure (SAVE_PROC, "exports images in GIMP brush pipe format", "This plug-in exports an image in the GIMP brush pipe " "format. For a colored brush pipe, RGBA layers are " "used, otherwise the layers should be grayscale " "masks. The image can be multi-layered, and " "additionally the layers can be divided into a " "rectangular array of brushes.", "Tor Lillqvist", "Tor Lillqvist", "1999", N_("GIMP brush (animated)"), "RGB*, GRAY*", GIMP_PLUGIN, G_N_ELEMENTS (gih_save_args), 0, gih_save_args, NULL); gimp_plugin_icon_register (SAVE_PROC, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) GIMP_ICON_BRUSH); gimp_register_file_handler_mime (SAVE_PROC, "image/x-gimp-gih"); gimp_register_file_handler_uri (SAVE_PROC); gimp_register_save_handler (SAVE_PROC, "gih", ""); }
static void query (void) { static const GimpParamDef load_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_STRING, "uri", "The URI of the file to load" }, { GIMP_PDB_STRING, "raw-uri", "The URI of the file to load" } }; static const GimpParamDef load_return_vals[] = { { GIMP_PDB_IMAGE, "image", "Output image" } }; static const GimpParamDef save_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_IMAGE, "image", "Input image" }, { GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" }, { GIMP_PDB_STRING, "uri", "The URI of the file to save the image in" }, { GIMP_PDB_STRING, "raw-uri", "The URI of the file to save the image in" }, { GIMP_PDB_INT32, "spacing", "Spacing of the brush" }, { GIMP_PDB_STRING, "description", "Short description of the brush" } }; gimp_install_procedure (LOAD_PROC, "Loads GIMP brushes", "Loads GIMP brushes (1 or 4 bpp and old .gpb format)", "Tim Newsome, Jens Lautenbacher, Sven Neumann", "Tim Newsome, Jens Lautenbacher, Sven Neumann", "1997-2005", N_("GIMP brush"), NULL, GIMP_PLUGIN, G_N_ELEMENTS (load_args), G_N_ELEMENTS (load_return_vals), load_args, load_return_vals); gimp_plugin_icon_register (LOAD_PROC, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) GIMP_STOCK_BRUSH); gimp_register_file_handler_mime (LOAD_PROC, "image/x-gimp-gbr"); gimp_register_file_handler_uri (LOAD_PROC); gimp_register_magic_load_handler (LOAD_PROC, "gbr, gpb", "", "20, string, GIMP"); gimp_install_procedure (SAVE_PROC, "Saves files in the GIMP brush file format", "Saves files in the GIMP brush file format", "Tim Newsome, Jens Lautenbacher, Sven Neumann", "Tim Newsome, Jens Lautenbacher, Sven Neumann", "1997-2000", N_("GIMP brush"), "RGB*, GRAY*, INDEXED*", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_plugin_icon_register (SAVE_PROC, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) GIMP_STOCK_BRUSH); gimp_register_file_handler_mime (SAVE_PROC, "image/x-gimp-gbr"); gimp_register_file_handler_uri (SAVE_PROC); gimp_register_save_handler (SAVE_PROC, "gbr", ""); }
static void query (void) { static const GimpParamDef load_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_STRING, "filename", "The name of the file to load" }, { GIMP_PDB_STRING, "raw-filename", "The name entered" } }; static const GimpParamDef load_return_vals[] = { { GIMP_PDB_IMAGE, "image", "Output image" } }; static const GimpParamDef save_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_IMAGE, "image", "Input image" }, { GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" }, { GIMP_PDB_STRING, "filename", "The name of the file to save the image in" }, { GIMP_PDB_STRING, "raw-filename", "The name of the file to save the image in" } }; GError *error = NULL; if (! uri_backend_init (PLUG_IN_BINARY, FALSE, GIMP_RUN_NONINTERACTIVE, &error)) { g_message ("%s", error->message); g_clear_error (&error); return; } if (uri_backend_get_load_protocols ()) { gimp_install_procedure (LOAD_PROC, "loads files given an URI", uri_backend_get_load_help (), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-2008", N_("URI"), NULL, GIMP_PLUGIN, G_N_ELEMENTS (load_args), G_N_ELEMENTS (load_return_vals), load_args, load_return_vals); gimp_plugin_icon_register (LOAD_PROC, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) GIMP_STOCK_WEB); gimp_register_load_handler (LOAD_PROC, "", uri_backend_get_load_protocols ()); gimp_register_file_handler_uri (LOAD_PROC); } if (uri_backend_get_save_protocols ()) { gimp_install_procedure (SAVE_PROC, "saves files given an URI", uri_backend_get_save_help (), "Michael Natterer, Sven Neumann", "Michael Natterer", "2005-2008", N_("URI"), "RGB*, GRAY*, INDEXED*", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_plugin_icon_register (SAVE_PROC, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) GIMP_STOCK_WEB); gimp_register_save_handler (SAVE_PROC, "", uri_backend_get_save_protocols ()); gimp_register_file_handler_uri (SAVE_PROC); } uri_backend_shutdown (); }
static void query (void) { static const GimpParamDef load_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_STRING, "filename", "The name of the file to load" }, { GIMP_PDB_STRING, "raw-filename", "The name of the file to load" } }; static const GimpParamDef load_return_vals[] = { { GIMP_PDB_IMAGE, "image", "Output image" } }; static const GimpParamDef save_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_IMAGE, "image", "Input image" }, { GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" }, { GIMP_PDB_STRING, "filename", "The name of the file to save the image in" }, { GIMP_PDB_STRING, "raw-filename", "The name of the file to save the image in" }, { GIMP_PDB_INT32, "raw", "TRUE for raw output, FALSE for ascii output" } }; gimp_install_procedure (LOAD_PROC, "Loads files in the PNM file format", "This plug-in loads files in the various Netpbm portable file formats.", "Erik Nygren", "Erik Nygren", "1996", N_("PNM Image"), NULL, GIMP_PLUGIN, G_N_ELEMENTS (load_args), G_N_ELEMENTS (load_return_vals), load_args, load_return_vals); gimp_register_file_handler_mime (LOAD_PROC, "image/x-portable-anymap"); gimp_register_file_handler_uri (LOAD_PROC); gimp_register_magic_load_handler (LOAD_PROC, "pnm,ppm,pgm,pbm", "", "0,string,P1,0,string,P2,0,string,P3,0," "string,P4,0,string,P5,0,string,P6"); gimp_install_procedure (PNM_SAVE_PROC, "Saves files in the PNM file format", "PNM saving handles all image types without transparency.", "Erik Nygren", "Erik Nygren", "1996", N_("PNM image"), "RGB, GRAY, INDEXED", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_install_procedure (PBM_SAVE_PROC, "Saves files in the PBM file format", "PBM saving produces mono images without transparency.", "Martin K Collins", "Erik Nygren", "2006", N_("PBM image"), "RGB, GRAY, INDEXED", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_install_procedure (PGM_SAVE_PROC, "Saves files in the PGM file format", "PGM saving produces grayscale images without transparency.", "Erik Nygren", "Erik Nygren", "1996", N_("PGM image"), "RGB, GRAY, INDEXED", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_install_procedure (PPM_SAVE_PROC, "Saves files in the PPM file format", "PPM saving handles RGB images without transparency.", "Erik Nygren", "Erik Nygren", "1996", N_("PPM image"), "RGB, GRAY, INDEXED", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_register_file_handler_mime (PNM_SAVE_PROC, "image/x-portable-anymap"); gimp_register_file_handler_mime (PBM_SAVE_PROC, "image/x-portable-bitmap"); gimp_register_file_handler_mime (PGM_SAVE_PROC, "image/x-portable-graymap"); gimp_register_file_handler_mime (PPM_SAVE_PROC, "image/x-portable-pixmap"); gimp_register_file_handler_uri (PNM_SAVE_PROC); gimp_register_file_handler_uri (PBM_SAVE_PROC); gimp_register_file_handler_uri (PGM_SAVE_PROC); gimp_register_file_handler_uri (PPM_SAVE_PROC); gimp_register_save_handler (PNM_SAVE_PROC, "pnm", ""); gimp_register_save_handler (PBM_SAVE_PROC, "pbm", ""); gimp_register_save_handler (PGM_SAVE_PROC, "pgm", ""); gimp_register_save_handler (PPM_SAVE_PROC, "ppm", ""); }
static void query (void) { static const GimpParamDef load_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_STRING, "uri", "The URI of the file to load" }, { GIMP_PDB_STRING, "raw-uri", "The URI of the file to load" } }; static const GimpParamDef load_return_vals[] = { { GIMP_PDB_IMAGE, "image", "Output image" } }; static const GimpParamDef save_args[] = { { GIMP_PDB_INT32, "run-mode", "The run mode { RUN-INTERACTIVE (0), RUN-NONINTERACTIVE (1) }" }, { GIMP_PDB_IMAGE, "image", "Input image" }, { GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" }, { GIMP_PDB_STRING, "uri", "The URI of the file to save the image in" }, { GIMP_PDB_STRING, "raw-uri", "The URI of the file to save the image in" }, { GIMP_PDB_STRING, "description", "Short description of the pattern" } }; gimp_install_procedure (LOAD_PROC, "Loads Gimp's .PAT pattern files", "The images in the pattern dialog can be loaded " "directly with this plug-in", "Tim Newsome", "Tim Newsome", "1997", N_("GIMP pattern"), NULL, GIMP_PLUGIN, G_N_ELEMENTS (load_args), G_N_ELEMENTS (load_return_vals), load_args, load_return_vals); gimp_plugin_icon_register (LOAD_PROC, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) GIMP_STOCK_PATTERN); gimp_register_file_handler_mime (LOAD_PROC, "image/x-gimp-pat"); gimp_register_file_handler_uri (LOAD_PROC); gimp_register_magic_load_handler (LOAD_PROC, "pat", "", "20,string,GPAT"); gimp_install_procedure (SAVE_PROC, "Saves Gimp pattern file (.PAT)", "New Gimp patterns can be created by saving them " "in the appropriate place with this plug-in.", "Tim Newsome", "Tim Newsome", "1997", N_("GIMP pattern"), "RGB*, GRAY*, INDEXED*", GIMP_PLUGIN, G_N_ELEMENTS (save_args), 0, save_args, NULL); gimp_plugin_icon_register (SAVE_PROC, GIMP_ICON_TYPE_ICON_NAME, (const guint8 *) GIMP_STOCK_PATTERN); gimp_register_file_handler_mime (SAVE_PROC, "image/x-gimp-pat"); gimp_register_file_handler_uri (SAVE_PROC); gimp_register_save_handler (SAVE_PROC, "pat", ""); }