user-accounts: Handle EXIF orientation
Apply the EXIF orientation of the picture that has been picked. https://bugzilla.gnome.org/show_bug.cgi?id=706547
This commit is contained in:
parent
c4ecb0e95d
commit
7bd7fcdf2c
1 changed files with 6 additions and 3 deletions
|
@ -124,7 +124,7 @@ file_chooser_response (GtkDialog *chooser,
|
|||
{
|
||||
gchar *filename;
|
||||
GError *error;
|
||||
GdkPixbuf *pixbuf;
|
||||
GdkPixbuf *pixbuf, *pixbuf2;
|
||||
|
||||
if (response != GTK_RESPONSE_ACCEPT) {
|
||||
gtk_widget_destroy (GTK_WIDGET (chooser));
|
||||
|
@ -141,10 +141,13 @@ file_chooser_response (GtkDialog *chooser,
|
|||
}
|
||||
g_free (filename);
|
||||
|
||||
pixbuf2 = gdk_pixbuf_apply_embedded_orientation (pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
|
||||
gtk_widget_destroy (GTK_WIDGET (chooser));
|
||||
|
||||
um_photo_dialog_crop (um, pixbuf);
|
||||
g_object_unref (pixbuf);
|
||||
um_photo_dialog_crop (um, pixbuf2);
|
||||
g_object_unref (pixbuf2);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue