FieldtypeCropImage by apeisa

Three modules that offer nice thumbnail cropping for ProcessWire. Fully compatible with normal image field.

How to install
==============

Just add files and folders to your site/modules/ folder and install one of the modules (it installs others). After that create new field or edit existing image field and make it use fieldtype "CropImage".

You can change the settings for each field in the Setup->Files->CropImageField Input tab:

thumbnail,100,100
portrait,100,150
largethumb,200,200,basic-page,home


Usage on templates
==================

FieldtypeCropImage adds getThumb-method to Pageimage. getThumb returns url to the thumbnail you have asked for, ie:
echo $page->images->eq(0)->getThumb('thumbnail');

If you haven't cropped that thumbnail yet, this module provides default cropping from center


Credits
=======

Developed by Antti Peisa (twitter.com/apeisa)
Sponsored by http://stillmovingdesign.com.au/ (thanks Martin!)

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #514
    In the 514th issue of ProcessWire Weekly we'll check out the latest blog post from Ryan, introduce two new third party modules — Page List Versions Counter and Fieldtype Fieldset Panel — and more. Read on!
    Weekly.pw / 16 March 2024
  • Invoices Site Profile
    The new invoices site profile is a free invoicing application developed in ProcessWire. It enables you to create invoices, record payments to them, email invoices to clients, print invoices, and more. This post covers all the details.
    Blog / 15 March 2024
  • Subscribe to weekly ProcessWire news

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits