Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added filter hook for image resize interlace setting

  • Loading branch information...
commit 218d3ba7020854fe7daab7f3f8db8b1528d794e5 1 parent 17ac9eb
Robert Gregor authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  wp-includes/media.php
View
3  wp-includes/media.php
@@ -446,6 +446,9 @@ function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $de
if ( !is_null($dest_path) and $_dest_path = realpath($dest_path) )
$dir = $_dest_path;
$destfilename = "{$dir}/{$name}-{$suffix}.{$ext}";
+
+ //Set the interlace flag
+ imageinterlace($newimage, apply_filters('image_interlace',false);
if ( IMAGETYPE_GIF == $orig_type ) {
if ( !imagegif( $newimage, $destfilename ) )

1 comment on commit 218d3ba

@bobbravo2
Owner

Also made a trac ticket entry:

http://core.trac.wordpress.org/ticket/19931

Please sign in to comment.
Something went wrong with that request. Please try again.