Skip to content

SmushIt for MODX tries to optimise and compress PNG and JPEG images for better performance using the resmush.it optimisation API. This will help massively with Google Page Speed and can reduce image sizes by up to 70%. This will overwrite any existing images so is intended to be used as an output filter after pthumb or similar.

Notifications You must be signed in to change notification settings

stewartorr/SmushIt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SmushIt

SmushIt for MODX tries to optimise and compress PNG and JPEG images for better performance using the resmush.it optimisation API. This will help massively with Google Page Speed and can reduce image sizes by up to 70%. This will overwrite any existing images so is intended to be used as an output filter after pthumb or similar.

Snippet smushit

This snippet expects to be used as an output filter in the following format:

[[*MyImage:pthumb=&w=300&h=300:smushit]]

This will use pthumb to resize the image and then smush it to optimise the file. The thumbnail image is overwritten once and from then on is optimised. This affects first uncached performance so you should review if this is worthwhile. After caching it runs fine and then helps the page load speed by using the new files.

As this is a first release, your feedback and requests are welcome.

Further info

For information and support, check out my blog: https://www.stewartorr.co.uk/smushit

Or download this from MODX.com https://modx.com/extras/package/smushit

Created by Stewart Orr (https://www.stewartorr.co.uk).

About

SmushIt for MODX tries to optimise and compress PNG and JPEG images for better performance using the resmush.it optimisation API. This will help massively with Google Page Speed and can reduce image sizes by up to 70%. This will overwrite any existing images so is intended to be used as an output filter after pthumb or similar.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages