161
166
"loads files compressed with gzip",
162
167
"You need to have gzip installed.",
167
172
"saves files compressed with gzip",
168
173
"You need to have gzip installed.",
182
187
"loads files compressed with bzip2",
183
188
"You need to have bzip2 installed.",
188
193
"saves files compressed with bzip2",
189
194
"You need to have bzip2 installed",
210
static GimpParamDef load_args[] =
215
static const GimpParamDef load_args[] =
212
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
217
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
213
218
{ GIMP_PDB_STRING, "filename", "The name of the file to load" },
214
{ GIMP_PDB_STRING, "raw_filename", "The name entered" }
219
{ GIMP_PDB_STRING, "raw-filename", "The name entered" }
216
static GimpParamDef load_return_vals[] =
221
static const GimpParamDef load_return_vals[] =
218
223
{ GIMP_PDB_IMAGE, "image", "Output image" },
221
static GimpParamDef save_args[] =
226
static const GimpParamDef save_args[] =
223
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
224
{ GIMP_PDB_IMAGE, "image", "Input image" },
225
{ GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" },
226
{ GIMP_PDB_STRING, "filename", "The name of the file to save the image in" },
227
{ GIMP_PDB_STRING, "raw_filename", "The name of the file to save the image in" }
228
{ GIMP_PDB_INT32, "run-mode", "Interactive, non-interactive" },
229
{ GIMP_PDB_IMAGE, "image", "Input image" },
230
{ GIMP_PDB_DRAWABLE, "drawable", "Drawable to save" },
231
{ GIMP_PDB_STRING, "filename", "The name of the file to "
232
"save the image in" },
233
{ GIMP_PDB_STRING, "raw-filename", "The name entered" },
402
if (!(f = fopen (filename, "w")))
408
if (!(f = g_fopen (filename, "w")))
404
410
g_message (_("Could not open '%s' for writing: %s"),
405
411
gimp_filename_to_utf8 (filename), g_strerror (errno));
450
456
STARTUPINFO startupinfo;
451
457
PROCESS_INFORMATION processinfo;
453
in = fopen (tmpname, "rb");
454
out = fopen (filename, "wb");
459
in = g_fopen (tmpname, "rb");
460
out = g_fopen (filename, "wb");
464
g_message (_("Could not open '%s' for reading: %s"),
465
gimp_filename_to_utf8 (tmpname), g_strerror (errno));
468
return GIMP_PDB_EXECUTION_ERROR;
473
g_message (_("Could not open '%s' for writing: %s"),
474
gimp_filename_to_utf8 (filename), g_strerror (errno));
477
return GIMP_PDB_EXECUTION_ERROR;
456
480
startupinfo.cb = sizeof (STARTUPINFO);
457
481
startupinfo.lpReserved = NULL;
533
if (! (f = fopen (tmpname, "w")))
561
if (! (f = g_fopen (tmpname, "w")))
535
563
g_message (_("Could not open '%s' for writing: %s"),
536
564
gimp_filename_to_utf8 (tmpname), g_strerror (errno));
586
614
STARTUPINFO startupinfo;
587
615
PROCESS_INFORMATION processinfo;
589
in = fopen (filename, "rb");
590
out = fopen (tmpname, "wb");
617
in = g_fopen (filename, "rb");
618
out = g_fopen (tmpname, "wb");
622
g_message (_("Could not open '%s' for reading: %s"),
623
gimp_filename_to_utf8 (filename), g_strerror (errno));
626
*status = GIMP_PDB_EXECUTION_ERROR;
632
g_message (_("Could not open '%s' for writing: %s"),
633
gimp_filename_to_utf8 (tmpname), g_strerror (errno));
636
*status = GIMP_PDB_EXECUTION_ERROR;
592
640
startupinfo.cb = sizeof (STARTUPINFO);
593
641
startupinfo.lpReserved = NULL;
668
if (!ext || ext[1] == '\0' || strchr (ext, '/'))
716
if (!ext || ext[1] == '\0' || strchr (ext, G_DIR_SEPARATOR))
672
721
if (0 == g_ascii_strcasecmp (ext, compressor->xcf_extension))
674
723
return ".xcf"; /* we've found it */