wp_stream_image [ WordPress Function ]
wp_stream_image ( $image, $mime_type, $post_id )
| Defined at: |
|
Benzer Fonksiyonlar: wp_save_image, wp_crop_image, wp_load_image, wp_restore_image, stream_preview_image
No description yet.
Source
<?php
function wp_stream_image($image, $mime_type, $post_id) {
$image = apply_filters('image_save_pre', $image, $post_id);
switch ( $mime_type ) {
case 'image/jpeg':
header('Content-Type: image/jpeg');
return imagejpeg($image, null, 90);
case 'image/png':
header('Content-Type: image/png');
return imagepng($image);
case 'image/gif':
header('Content-Type: image/gif');
return imagegif($image);
default:
return false;
}
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- admin-ajax.php imgedit-preview header problem - WordPress
In the wp-admin/includes/image-edit.php you can found these lines (beginning at line 239): function wp_stream_image($image, $mime_type, $post_id) { $image ...
wordpress.org - Docs for page image-edit.php
void wp_stream_image ( $image, $mime_type, $post_id). $image; $mime_type; $post_id. _crop_image_resource (line 270). void _crop_image_resource ( $img ...
phpdoc.wordpress.org - Wordpress Image editor error on admin panel - Stack Overflow
edit the file /wp-admin/includes/image-edit.php and in the function wp_stream_image() add ob_clean(); right before the `switch? statement.
stackoverflow.com - stream_preview_image (WordPress Function) - WPSeek.com
Similar Functions: wp_stream_image, post_preview, _set_preview, is_random_header_image, is_preview. Get short description ... Loading .
wpseek.com