About Thumbnails

User Favorite Module

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

Category 1Admin Helpers
Admin helper modules are those that provide helpful tools, UI enhancements or optimizations to the admin panel (excluding Fieldtype or Inputfield modules).
Category 2Field Types
Fieldtype modules that represent a data type used by fields.
Category 3Input Fields
Inputfield modules that provide a UI input widget in the ProcessWire admin.
Category 4Photo/Video/Audio
Modules that perform some function related to media such as photos and audio/video.
Category 5Process Modules
Process modules are apps that run in the ProcessWire admin.
Release StateStable
Should be safe for use in production environments. *
Authorapeisa
Module Version1.0.3
Class NameFieldtypeCropImage
Compatibility2.1, 2.2, 2.3, 2.4
Date AddedJuly 25, 2012
Recommended ByNew recommendations may take up to 1 day to appear.

Details

pwcrop.jpeg

Instructions

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:
Code:
thumbnail,100,100portrait,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:
Code:
echo $page->cropImages->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!)

README

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!)

Comments

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.