Skip to content

jayism/Dynamic-Image-Resize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Dynamic Image resizing in WordPress

version: v0.6

“Dynamic Image Resize” is a WordPress (MU-)plugin that offers a shortcode and a template tag to resize images “on the flight” without the need of TimThumb, but with WP core functions.

Original Idea, Concept & Script by Konstantin Kovshenin

License: extended MIT/Expat

Known issues: none

Visit Franz Josef Kaiser at his homepage or get social on Google+


Shortcode How-to

Place [dynamic_image] in your content. The shortcode has four arguments:

  • src Full path to the image in your upload directory or the ID
  • width Integer value
  • height Integer value
  • classes Css classes – separated by a space

Template Tag How-to

// The args need to be an array
dynamic_image_resize( array(
	 // The full path to the image in your uploads folder
	 'src'     => 'http://example.com/wp-content/uploads/2012/03/some_image.png'
	 // OR: the ID
	 'src'     => 6

	,'width'   => 60
	,'height'  => 100
	,'classes' => 'some classes to align and style the image'
) );

Releases

No releases published

Packages

No packages published