395
397
/* create new thumbnail */
396
398
if ( file_is_video == FALSE )
398
thumbnail = gdk_pixbuf_new_from_file_at_size( file_path, 128, 128, NULL );
401
404
thumbnail = gdk_pixbuf_apply_embedded_orientation( thumbnail );
402
405
sprintf( mtime_str, "%lu", mtime );
403
406
gdk_pixbuf_save( thumbnail, thumbnail_file, "png", NULL,
404
"tEXt::Thumb::URI", uri, "tEXt::Thumb::MTime", mtime_str, NULL );
407
"tEXt::Thumb::URI", uri, "tEXt::Thumb::MTime",
405
409
chmod( thumbnail_file, 0600 ); /* only the owner can read it. */