Gets the Image Compression quality on a 1-100% scale.
WP_Image_Editor::set_quality
Sets Image Compression quality on a 1-100% scale.
WP_Image_Editor::__construct
Each instance handles a single file.
WP_Image_Editor::test
Checks to see if current environment supports the editor chosen.
Advertisement
WP_Image_Editor::supports_mime_type
Checks to see if editor supports the mime-type specified.
WP_Image_Editor::load
Loads image from $this->file into editor.
WP_Image_Editor::save
Saves current image to file.
WP_Image_Editor::get_extension
Returns first matched extension from Mime-type, as mapped from wp_get_mime_types()
Advertisement
WP_Image_Editor::get_mime_type
Returns first matched mime-type from extension, as mapped from wp_get_mime_types()
WP_Image_Editor::make_image
Either calls editor’s save function or handles file as a stream.
wp_image_maybe_exif_rotate
Filters the `$orientation` value to correct it before rotating or to prevemnt rotating the image.
WP_Image_Editor::get_suffix
Builds and returns proper suffix for file based on height and width.
Advertisement
WP_Image_Editor::maybe_exif_rotate
Check if a JPEG image has EXIF Orientation tag and rotate it if needed.
WP_Image_Editor::generate_filename
Builds an output filename based on current file, and adding proper suffix
image_editor_default_mime_type
Filters default mime type prior to getting the file extension.