diff -r e00582ce7ecd -r fbb813aef148 mobilemessaging/unieditor/application/src/UniEditorProcessImageOperation.cpp --- a/mobilemessaging/unieditor/application/src/UniEditorProcessImageOperation.cpp Tue Apr 27 16:33:37 2010 +0300 +++ b/mobilemessaging/unieditor/application/src/UniEditorProcessImageOperation.cpp Tue May 11 16:10:04 2010 +0300 @@ -44,6 +44,8 @@ #include +#include + #include "UniClientMtm.h" #include "UniEditorEnum.h" #include "UniEditorDocument.h" @@ -464,12 +466,20 @@ } TBool largeImageQuery = EFalse; + TInt conformanceWidth = KImageRichWidth; + TInt conformanceHeight = KImageRichHeight; + + if (iDocument.DataModel()->MmsConformance().ConformanceVersion()> KMmsVersion12) + { + conformanceWidth = KImageMegapixelWidth; + conformanceHeight = KImageMegapixelHeight; + } if ( iProcessMethod == EUniProcessImgMethodNone ) { // Image won't be processed - if ( ( origSize.iWidth > KImageRichWidth || - origSize.iHeight > KImageRichHeight ) && + if ( ( origSize.iWidth > conformanceWidth || + origSize.iHeight > conformanceHeight ) && ( iImageInfo->FileSize() + iMessageSize ) < iDocument.MaxMessageSize() ) { // Original image width or height is "non-conformant" and original image would @@ -480,8 +490,8 @@ else { // Image will be processed - if ( scaleSize.iWidth > KImageRichWidth || - scaleSize.iHeight > KImageRichHeight ) + if ( scaleSize.iWidth > conformanceWidth || + scaleSize.iHeight > conformanceHeight ) { // Processed image is "non-conformant" after processing. largeImageQuery = ETrue;