Update of /cvsroot/ufraw/ufraw
In directory vz-cvs-3.sog:/tmp/cvs-serv13810
Modified Files:
ufraw_ufraw.c
Log Message:
Apply auto-crop in ufraw-batch.
Index: ufraw_ufraw.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_ufraw.c,v
retrieving revision 1.266
retrieving revision 1.267
diff -u -d -r1.266 -r1.267
--- ufraw_ufraw.c 18 Aug 2011 05:05:14 -0000 1.266
+++ ufraw_ufraw.c 22 Aug 2011 03:20:21 -0000 1.267
@@ -805,6 +805,13 @@
*img = *img2;
img2->buffer = NULL;
}
+ if (uf->conf->autoCrop && !uf->LoadingID) {
+ ufraw_get_image_dimensions(uf);
+ uf->conf->CropX1 = (uf->rotatedWidth - uf->autoCropWidth) / 2;
+ uf->conf->CropX2 = (uf->rotatedWidth + uf->autoCropWidth) / 2;
+ uf->conf->CropY1 = (uf->rotatedHeight - uf->autoCropHeight) / 2;
+ uf->conf->CropY2 = (uf->rotatedHeight + uf->autoCropHeight) / 2;
+ }
return UFRAW_SUCCESS;
}
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs