_flip_image_resource( GD_Resource $img, boolean $horz, boolean $vert )


Description Description


Parameters Parameters

$img

(GD_Resource) (Required)

$horz

(boolean) (Required)

$vert

(boolean) (Required)


Top ↑

Return Return

(GD_Resource)


Top ↑

Source Source

File: wp-admin/includes/image-edit.php

		 * @param string          $filename  Name of the file to be saved.
		 * @param WP_Image_Editor $image     WP_Image_Editor instance.
		 * @param string          $mime_type Image mime type.
		 * @param int             $post_id   Post ID.
		 */
		$saved = apply_filters( 'wp_save_image_file', null, $filename, $image, $mime_type, $post_id );

		if ( null !== $saved ) {
			return $saved;
		}

		switch ( $mime_type ) {
			case 'image/jpeg':
				/** This filter is documented in wp-includes/class-wp-image-editor.php */
				return imagejpeg( $image, $filename, apply_filters( 'jpeg_quality', 90, 'edit_image' ) );
			case 'image/png':
				return imagepng( $image, $filename );
			case 'image/gif':

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.