Index: /branches/eam_branches/ipp-20110213/psModules/src/camera/pmFPA_JPEG.c
===================================================================
--- /branches/eam_branches/ipp-20110213/psModules/src/camera/pmFPA_JPEG.c	(revision 30892)
+++ /branches/eam_branches/ipp-20110213/psModules/src/camera/pmFPA_JPEG.c	(revision 30893)
@@ -35,5 +35,4 @@
 #include "pmFPAfile.h"
 #include "pmFPA_JPEG.h"
-
 
 bool pmFPAviewWriteJPEG(const pmFPAview *view, pmFPAfile *file, const pmConfig *config)
@@ -227,12 +226,22 @@
     char *userOptions = psMetadataLookupStr(&status, options, "OPTIONS"); // Mode for scaling image
     if (userOptions) {
-	// just use strstr for now 
-	if (strcasestr(userOptions, "+SB")) {
+	// just use strstr : strcasestr is non-standard an not always available.  replace with our own?
+	if (strstr(userOptions, "+SB")) {
 	    jpegOptions->showScale = PS_JPEG_SHOWSCALE_BOTTOM;
 	} 
-	if (strcasestr(userOptions, "-X")) {
+	if (strstr(userOptions, "-X")) {
 	    jpegOptions->xFlip = true;
 	} 
-	if (strcasestr(userOptions, "-Y")) {
+	if (strstr(userOptions, "-Y")) {
+	    jpegOptions->yFlip = true;
+	} 
+	// lowercase versions 
+	if (strstr(userOptions, "+sb")) {
+	    jpegOptions->showScale = PS_JPEG_SHOWSCALE_BOTTOM;
+	} 
+	if (strstr(userOptions, "-x")) {
+	    jpegOptions->xFlip = true;
+	} 
+	if (strstr(userOptions, "-y")) {
 	    jpegOptions->yFlip = true;
 	} 
