return trailingslashit( $dir ) . "{
$name}-{
$suffix}.{
$new_ext}";
} /**
* Builds and returns proper suffix for file based on height and width.
*
* @since 3.5.0
*
* @return string|false suffix
*/
public function get_suffix() { if ( !
$this->
get_size() ) { return false;
} return "{
$this->size
['width'
]}x{
$this->size
['height'
]}";
} /**
* Check if a JPEG image has EXIF Orientation tag and rotate it if needed.
*
* @since 5.3.0
*
* @return bool|WP_Error True if the image was rotated. False if not rotated (no EXIF data or the image doesn't need to be rotated).
* WP_Error if error while rotating.
*/