Parsed: 110439

function _image_get_preview_ratio( $w, $h ) {
  $max = max( $w, $h );
  return $max > 400 ? ( 400 / $max ) : 1;
}