Skip to content

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

Notifications You must be signed in to change notification settings

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • XSLT 100.0%