Code Monkey home page Code Monkey logo

octobercms-imageking's Introduction

ImageKing by Code200 for OctoberCMS

##Description This plugin provides a middleware that automatic resizes images to arbitary max width, generates responsive dimensions, adds watermark and captions to all locally served images in your html.

Everything is done on the fly allowing you flexibility but at the same time be careful since it will add additional loads on your server (see todo section).

All image copies are saved in your public temp path. Remote file systems are currently untested.

##How it works When request is made plugin check for local images in response HTML. All found images are processed based on settings and then HTML with replaced image paths is sent to the client.

##Configuration Go to Settings -> System -> Image King and edit appropriate settings under all tabs.

Permissions

There is a special permission for accessing Code200 ImageKing. Check under System > Administrators > Manage Groups > Group "X" > Permissions > Code200 ImageKing

####Exclude certain image from processing You can define exclude class in settings. If you would use default noProcess class then in your blog you could use

![1](/storage/app/media/example.png "this is title that could be used as caption"){.noProcess}

##Bug report It is very likely that there will be bugs with some specific html markup. If you encounter such a bug, please report it.

##Future plans

  • only generate new image if it doesnt exist in temporary folder already - v1.1.0
  • special button under settings allowing to purge temporary folder - v1.1.2
  • generation of appropriate HTML on blog post save instead on client request
  • special button under settings allowing to regenerate all HMTL from blog posts

I would appreciate some help. However please read this before submitting a pull request

##Attributions

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.