Favourite posts

What it Takes to Get an e-Commerce Site Online

Getting an e-Commerce website online might sound like a huge undertaking,...

WebView Interactions with JavaScript

WebView displays web pages. But we are interested not only in web-content...

Google Maps API for Android

Google Maps is a very famous and helpful service, which firmly entrenched...

Unit Testing with RSpec

RSpec is an integral part of Test Drive Development (TDD) and its main id...

Client side JavaScript: Knockout in practice

When developing a web application that extensively works with user input ...

Accessing Field Configurations in JIRA for changing field description

Field configuration defines behavior of all standart (system) fields and ...

A Guide for Upgrading to Ruby on Rails 4.2.0

As you might have already heard, the latest stuff for upgrading rails was...

plugins

27 Feb 2015

Cropping Images in LocomotiveCMS

In the LocomotiveCMS such assets as images are available as well. Often while uploading an image via admin panel user needs to crop/resize an image. In this post we provide several examples how to do achieve it easily.

So, here bellow there are several variants how to do it even in LocomotiveCMS:

1. Some Liquid filters will allow you to format your entries attributes.
Resize image:
An image rendered from a file's field is done this way:

<img src="{{  item.attached.url }}">

But the the DragonFly gem can resize any image on the fly behind the scene. The ...