Commit 0f3b7da2 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

allow to save metadata only for jpeg and png images

[bug #594515]
parent 63264a72
......@@ -87,6 +87,12 @@ gth_metadata_provider_exiv2_write (GthMetadataProvider *self,
GError *error = NULL;
GObject *metadata;
if (! g_content_type_equals (gth_file_data_get_mime_type (file_data), "image/jpeg")
&& ! g_content_type_equals (gth_file_data_get_mime_type (file_data), "image/png"))
{
return;
}
if (! g_load_file_in_buffer (file_data->file, &buffer, &size, &error))
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment