Returns preferred mime-type and extension based on provided file’s extension and mime, or current file’s extension and mime.
WP_Image_Editor::generate_filename
Builds an output filename based on current file, and adding proper suffix
WP_Image_Editor::get_suffix
Builds and returns proper suffix for file based on height and width.
WP_Image_Editor::maybe_exif_rotate
Check if a JPEG image has EXIF Orientation tag and rotate it if needed.
Advertisement
WP_Image_Editor::make_image
Either calls editor’s save function or handles file as a stream.
WP_Image_Editor::get_mime_type
Returns first matched mime-type from extension, as mapped from wp_get_mime_types()
WP_Image_Editor::get_extension
Returns first matched extension from Mime-type, as mapped from wp_get_mime_types()
WP_Image_Editor::get_quality
Gets the Image Compression quality on a 1-100% scale.
Advertisement
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.
WP_Image_Editor::supports_mime_type
Checks to see if editor supports the mime-type specified.
Advertisement
WP_Image_Editor::load
Loads image from $this->file into editor.
WP_Image_Editor::save
Saves current image to file.
WP_Image_Editor::resize
Resizes current image.