wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_shrink_dimensions › WordPress Function

Da2.0.0
Deprecato3.0.0
wp_shrink_dimensions ( $width, $height, $wmax = 128, $hmax = 96 )
Parametri: (4)
  • (int) $width Current width of the image
    Richiesto:
  • (int) $height Current height of the image
    Richiesto:
  • (int) $wmax Maximum wanted width
    Richiesto: No
    Default: 128
  • (int) $hmax Maximum wanted height
    Richiesto: No
    Default: 96
Vedi:
Ritorna:
  • (array) Shrunk dimensions (width, height).
Definito a:
Codex:

Calculates the new dimensions for a downsampled image.



Sorgenti

function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'wp_constrain_dimensions()' );
	return wp_constrain_dimensions( $width, $height, $wmax, $hmax );
}