[f-spot/taglib-metadata] Fix FolderExport.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/taglib-metadata] Fix FolderExport.
- Date: Tue, 6 Jul 2010 20:58:18 +0000 (UTC)
commit 219b5f917dc0a8d54edd001a63a3740358c802f6
Author: Ruben Vermeersch <ruben savanne be>
Date: Tue Jul 6 22:58:00 2010 +0200
Fix FolderExport.
extensions/Exporters/FolderExport/FolderExport.cs | 58 ++++++++++-----------
1 files changed, 27 insertions(+), 31 deletions(-)
---
diff --git a/extensions/Exporters/FolderExport/FolderExport.cs b/extensions/Exporters/FolderExport/FolderExport.cs
index 65fa113..9b8fb43 100644
--- a/extensions/Exporters/FolderExport/FolderExport.cs
+++ b/extensions/Exporters/FolderExport/FolderExport.cs
@@ -37,7 +37,6 @@ using FSpot.Filters;
using FSpot.Widgets;
using FSpot.Utils;
using FSpot.UI.Dialog;
-using FSpot.Imaging.Exif;
namespace FSpotFolderExport {
public class FolderExport : FSpot.Extensions.IExporter {
@@ -468,37 +467,34 @@ namespace FSpotFolderExport {
new SafeUri (path).ToString ());
}
- using (ExifData data = new ExifData (photo_path)) {
- for (int i = 1; i < requests.Length; i++) {
+ for (int i = 1; i < requests.Length; i++) {
- req = requests [i];
- if (scale && req.AvoidScale (size))
- continue;
+ req = requests [i];
+ if (scale && req.AvoidScale (size))
+ continue;
- FilterSet req_set = new FilterSet ();
- req_set.Add (new ResizeFilter ((uint)Math.Max (req.Width, req.Height)));
+ FilterSet req_set = new FilterSet ();
+ req_set.Add (new ResizeFilter ((uint)Math.Max (req.Width, req.Height)));
- bool sharpen;
- try {
- sharpen = Preferences.Get<bool> (FolderExport.SHARPEN_KEY);
- } catch (NullReferenceException) {
- sharpen = true;
- Preferences.Set (FolderExport.SHARPEN_KEY, true);
- }
-
- if (sharpen) {
- if (req.Name == "lq")
- req_set.Add (new SharpFilter (0.1, 2, 4));
- if (req.Name == "thumbs")
- req_set.Add (new SharpFilter (0.1, 2, 5));
- }
- using (FilterRequest tmp_req = new FilterRequest (photo.DefaultVersion.Uri)) {
- req_set.Convert (tmp_req);
- MakeDir (SubdirPath (req.Name));
- path = SubdirPath (req.Name, ImageName (image_num));
- System.IO.File.Copy (tmp_req.Current.LocalPath, path, true);
- }
+ bool sharpen;
+ try {
+ sharpen = Preferences.Get<bool> (FolderExport.SHARPEN_KEY);
+ } catch (NullReferenceException) {
+ sharpen = true;
+ Preferences.Set (FolderExport.SHARPEN_KEY, true);
+ }
+ if (sharpen) {
+ if (req.Name == "lq")
+ req_set.Add (new SharpFilter (0.1, 2, 4));
+ if (req.Name == "thumbs")
+ req_set.Add (new SharpFilter (0.1, 2, 5));
+ }
+ using (FilterRequest tmp_req = new FilterRequest (photo.DefaultVersion.Uri)) {
+ req_set.Convert (tmp_req);
+ MakeDir (SubdirPath (req.Name));
+ path = SubdirPath (req.Name, ImageName (image_num));
+ System.IO.File.Copy (tmp_req.Current.LocalPath, path, true);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]