Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function resize_single_image($file_with_path = NULL) {
- if (empty($file_with_path)) return FALSE;
- $image = wp_get_image_editor( $file_with_path );
- if ( ! is_wp_error( $image ) ) {
- $image->resize( 125, 125, true );
- $image->set_quality( 70 );
- $image->save( $file_with_path );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement