Giter Site home page Giter Site logo

autorotate's Introduction

AutoRotate

Version License Kirby Version

Kirby plugin to automatically rotate images.

Installation

1. Kirby CLI

If you are using the Kirby CLI you can install this plugin by running the following command in your shell from the root folder of your Kirby installation:

kirby plugin:install mightymango/autorotate

2. Manual

Download this archive, extract it and rename it to autorotate. Copy the folder to your site/plugins folder.

3. Git Submodule

If you know your way around git, you can download this as a submodule:

git submodule add https://github.com/mightymango/autorotate/ site/plugins/autorotate

Usage

The plugin adds a hook so that any image is automatically processed when it is uploaded.

If you wish to disable the hook for any reason just add the following to your config.php file:

c::set('autorotate.enabled', false);

Note

This plugin only autorotates images that have EXIF orientation flags, in both landscape and portrait orientation. Typically these are images that have been created on an iPhone etc.

If an image has been edited and it's orientation changed prior to uploading, this plugin will have no effect. Neither will it fix images that have been uploaded before the plugin was installed.

For this plugin to work it requires that Imagick has been compiled against ImageMagick version 6.3.0 or higher.

Looking for images to test?

Check out recurser/exif-orientation-examples

Credits

Based on code from orrd101 at yahoo dot com .

Readme file based on template by Thiousi

License

MIT

Changelog

1.0.2

  • Checks if imageick is installed

1.0.1

  • Small bug fix

1.0.0

  • Initial release

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.