field_checkbox( array(
'option_name' => 'auto_optimize',
'label' => __( 'Auto-Optimize images on upload', 'imagify' ),
'info' => __( 'Automatically optimize every image you upload to WordPress.', 'imagify' ),
) );
?>
field_checkbox( array(
'option_name' => 'backup',
'label' => __( 'Backup original images', 'imagify' ),
'info' => __( 'Keep your original images in a separate folder before optimization process.', 'imagify' ),
) );
$backup_error_class = $options->get( 'backup' ) && ! Imagify_Requirements::attachments_backup_dir_is_writable() ? '' : ' hidden';
?>
filesystem->make_path_relative( get_imagify_backup_dir_path( true ) );
/* translators: %s is a file path. */
printf( __( 'The backup folder %s cannot be created or is not writable by the server, original images cannot be saved!', 'imagify' ), "$backup_path" );
?>
field_checkbox( array(
'option_name' => 'lossless',
'label' => __( 'Lossless compression', 'imagify' ),
'info' => __( 'By default, Imagify optimizes your images by using a smart compression to get the best compression rate with an optimal quality.', 'imagify' ) . '
' . __( 'If you are a photographer or focus on the quality of your images rather than the performance, you may be interested in this option to make sure not a single pixel looks different in the optimized image compared with the original.', 'imagify' ),
) );
?>