Skip to content

Instantly share code, notes, and snippets.

@janfabry
Created May 19, 2011 20:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save janfabry/981666 to your computer and use it in GitHub Desktop.
Save janfabry/981666 to your computer and use it in GitHub Desktop.
Dump WP image resize information
<?php
/*
Plugin Name: WPSE 17728
Plugin URI: http://wordpress.stackexchange.com/questions/17728/large-image-size-is-cropped-not-proportional
Description: Large image size is cropped, not proportional?
Author: jimilesku
*/
add_filter( 'intermediate_image_sizes_advanced', 'wpse17728_intermediate_image_sizes_advanced' );
function wpse17728_intermediate_image_sizes_advanced( $sizes )
{
var_dump( $sizes );
return $sizes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment