private boolean saveStoredJPEGImage(String file_name,final BufferedImage image,final boolean file_name_is_path){
  if (!file_name_is_path) {
    file_name=temp_dir + key + file_name;
  }
  final String s=file_name.toLowerCase();
  if (!s.endsWith(".jpg") && !s.endsWith(".jpeg")) {
    file_name+=".jpg";
  }
  try {
    DefaultImageHelper.write(image,"jpg",file_name);
    tempFileNames.put(file_name,"#");
  }
 catch (  final Exception e) {
    LogWriter.writeLog("Exception " + e + " writing image "+ image+ " as "+ file_name);
  }
  return false;
}

private boolean saveStoredJPEGImage ( String file_name , final BufferedImage image , final boolean file_name_is_path ) { if ( ! file_name_is_path ) { file_name = temp_dir + key + file_name ; } final String s = file_name . toLowerCase ( ) ; if ( ! s . endsWith ( ".jpg" ) && ! s . endsWith ( ".jpeg" ) ) { file_name += ".jpg" ; } try { DefaultImageHelper . write ( image , "jpg" , file_name ) ; tempFileNames . put ( file_name , "#" ) ; } catch ( final Exception e ) { LogWriter . writeLog ( "Exception " + e + " writing image " + image + " as " + file_name ) ; } return false ; }
save buffered image as jpeg
