Permalink
Browse files

added filter hook for image resize interlace setting

  • Loading branch information...
Robert Gregor
Robert Gregor committed Jan 30, 2012
1 parent 17ac9eb commit 218d3ba7020854fe7daab7f3f8db8b1528d794e5
Showing with 3 additions and 0 deletions.
  1. +3 −0 wp-includes/media.php
View
@@ -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

This comment has been minimized.

Show comment
Hide comment
Owner

bobbravo2 commented on 218d3ba Jan 30, 2012

Also made a trac ticket entry:
http://core.trac.wordpress.org/ticket/19931

Please sign in to comment.