Skip to content

MST-SymphonyCMS/smart_image_resize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

A utility for Symphony CMS that proportionally resizes an image using JIT only if the image is larger than the given size.

Original by Andrey Lubinov (andrrr).

Example usage

<xsl:call-template name="smart-resize-image">
	<xsl:with-param name="xml" select="image"/>
	<xsl:with-param name="max-w" select="640"/>
	<xsl:with-param name="max-h" select="480"/>
	<xsl:with-param name="alt" select="title"/> <!-- (optional) -->
	<xsl:with-param name="class" select="'entry-img'"/> <!-- (optional) -->
</xsl:call-template>

About

A utility for Symphony CMS that proportionally resizes an image using JIT only if the image is larger than the given size.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • XSLT 100.0%