def _load_megapixels(self,directory):
<EOL>fullfile=os.path.join(directory,MEGAPIXEL_FILE)<EOL>try:<EOL><INDENT>mp=float(open(fullfile).readline())<EOL>logger.debug("<STR_LIT>",mp)<EOL><DEDENT>except:<EOL><INDENT>logger.warning("<STR_LIT>"%(directory))<EOL>return None<EOL><DEDENT>return mp<EOL>
Opens megapixel file, if contains '3.5' for instance,
        will scale all uploaded photos in directory this this size,
        the original photo is untouched. Returns None if
        file not found