1.0.13 • Published 1 year ago

@simpleimg/image-js v1.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Simple Image Cloud - Image for Javascript

This module helps you integrate Simple Image Cloud - Image Component with pure Javascript. It allows you to serve images from Simple Image Cloud CDN with transformations and variations easily.

Install

Embed our client library via the <script> tag in the <head> section of each page where you’d like to use Simple Image Cloud Images.

<script data-account="[YOUR_ACCOUNT_ID]"
	data-selector="img[data-src]"
	src="https://static.simpleimg.io/image-js/index.js"></script>

You can define some global variables to customize the account and selector .

PropertyRequiredTypeComment
data-accountrequiredstringSimple Image Cloud Account ID.
data-selectoroptionalstringDefine custom selector.

Documentation

You can find the documentation for the Image JS Component here.

Quick Usage - Single Image - fit/contain

	<img data-src="image-1.jpg"
		data-width="500"/>

Quick Usage - Single Image - fill/cover

	<img data-height="500"
		data-mode="fill"
		data-src="image-1.jpg"
		data-width="500"/>

Feedback

We want to hear your issue reports and feature requests at support@simpleimagecloud.com

1.0.11

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.10

2 years ago

1.0.2

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago