Giter Site home page Giter Site logo

lisandi / thumbnails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apeisa/thumbnails

0.0 2.0 0.0 248 KB

Three modules that offer nice thumbnail cropping for ProcessWire. Fully compatible with normal image field. Sponsored by http://stillmovingdesign.com.au/

Home Page: http://processwire.com/talk/index.php/topic,705.0.html

thumbnails's Introduction

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

thumbnails's People

Contributors

apeisa avatar horst-n avatar hani79 avatar jdiderik avatar bfncs avatar pawelgix avatar somatonic avatar ryancramerdesign avatar shehbaz avatar

Watchers

James Cloos avatar Andreas Becker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.