Search by

am-impact / amtools

hubertprein

There is no license information available for the latest version (1.4.2) of this package.

General Craft tools

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Package info

github.com/am-impact/amtools

Type:craft-plugin

pkg:composer/am-impact/amtools

Statistics

Installs: 211

Dependents: 0

Suggesters: 0

Stars: 7

Open Issues: 0

1.4.2 2017-03-20 15:07 UTC

This package is not auto-updated.

Last update: 2026-06-27 06:26:12 UTC


README

v1.4.0

Cachebust

Samples

<link rel="stylesheet" href="{{ gruntCacheBust('grunt-cache-bust.json', 'resources/css/all.css') }}">

<script src="{{ gruntCacheBust('grunt-cache-bust.json', 'resources/scripts/all.min.js') }}"></script>

Imageoptim

Resolution uploaded images to 72ppi with Imagick

v1.3.0

Image filters

Possible effects:

  • blur
  • colorize
  • gray (black & white)
  • negative
  • sharpen

Samples:

<img src="{{ craft.amTools.getImageUrl(entry.image.first(), { filters: 'gray', width: 150, height: 150 }) }}" alt="">

<img src="{{ entry.image.first()|image_url({ filters: 'gray', width: 150, height: 150, mode: 'fit' }) }}" alt="">

<img src="{{ entry.image.first()|image_url({ filters: { effect: 'colorize', color: '#FF00D0' }, width: 150, height: 150 }) }}" alt="">

<img src="{{ entry.image.first()|image_url({ filters: ['gray', 'sharpen'], width: 150, height: 150 }) }}" alt="">

<img src="{{ entry.image.first()|image_url({ filters: ['negative', 'blur', { effect: 'colorize', color: '#FF00D0' }], width: 150, height: 150 }) }}" alt="">