Giter VIP home page Giter VIP logo

melody-plugin-image-asset-from-entry's Introduction

Image Asset from Entry Overview

The Image Asset from Entry plugin for Melody and Movable Type will look in the Entry Body for a non-local image URL. If found, that image URL is used to create a new image asset in Melody. An asset-entry association is created (to add the asset to the Entry Asset Manager). The resulting asset URL can replace the original, or the original URL can simply be removed. Lastly, the new asset can be associated with an Image Custom Field.

I wrote this plugin specifically to help me publish my photos on Flickr to my blog: when an entry is published through the XML-RPC API to the blog, normally the Flickr image URL is displayed in the entry.

If a Flickr URL is supplied, this plugin will also update the URL to grab the "Large" size image (1024 pixels wide). Using the Large image makes it easy to get exactly the size image you need because it's a big-ish file that can be sized with the AssetThumbnailURL tag to any dimensions required.

This plugin works for entries created through the API, and also works when on the Edit Entry screen: save an entry and the Entry Body is reviewed for any non-local image URLs that can be converted into image assets.

Take note that this plugin makes it easy to accidentally steal content: any image linked on another site will be saved to your site. For my use -- saving my photos to my blog -- this isn't a concern, however it's something to be aware of.

Prerequisites

Melody 1.0 or greater

Installation

The latest version of the plugin can be downloaded from the its Github repo. Packaged downloads are also available if you prefer.

Installation follows the standard plugin installation procedures.

Use

Publish an entry through the API or save an entry through Melody's administrative interface.

License

This plugin is licensed under the same terms as Perl itself.

melody-plugin-image-asset-from-entry's People

Contributors

danwolfgang avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.