# akamai-image-converter

> 🏞 Simple javascript util for Akamai image converter

Latest version **0.0.3** (published 2018-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install akamai-image-converter
pnpm add akamai-image-converter
yarn add akamai-image-converter
bun add akamai-image-converter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-05-07 |
| First published | 2018-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Irfan Maulana |
| Maintainers | dodotdot, irfan.maulana |
| Keywords | image converter, image compression, image optimization, akamai image converter |

## Links

- npm: https://www.npmjs.com/package/akamai-image-converter
- Repository: https://github.com/mazipan/akamai-image-converter
- Homepage: https://github.com/mazipan/akamai-image-converter/
- Issues: https://github.com/mazipan/akamai-image-converter/issues
- npm.io page: https://npm.io/package/akamai-image-converter

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2018-05-07
- 0.0.2 — 2018-04-19
- 0.0.1 — 2018-04-19

## README

# 🏞 akamai-image-converter

> Simple javascript util for Akamai image converter

[![License](https://img.shields.io/github/license/mazipan/akamai-image-converter.svg?longCache=true)](https://github.com/mazipan/akamai-image-converter) [![version](https://img.shields.io/npm/v/akamai-image-converter.svg?maxAge=3600)](https://www.npmjs.com/package/akamai-image-converter)
[![downloads](https://img.shields.io/npm/dt/akamai-image-converter.svg?maxAge=86400)](https://www.npmjs.com/package/akamai-image-converter) [![Travis](https://img.shields.io/travis/mazipan/akamai-image-converter.svg?maxAge=86400)](https://travis-ci.org/mazipan/akamai-image-converter)
[![codecov](https://codecov.io/gh/mazipan/akamai-image-converter/branch/master/graph/badge.svg?maxAge=86400)](https://codecov.io/gh/mazipan/akamai-image-converter)


## About Akamai Image Converter

https://tech.akamai.com/image_converter/


## Download & Usage

### Download via NPM/YARN

```js
npm i akamai-image-converter
// OR
yarn add akamai-image-converter
```

### Basic Usage

```js
import imageConverter from 'akamai-image-converter'

// call convert methods will return optimized url
imageConverter.convert(TEST_IMAGE, format, quality, width, height)

// let say we have url: //tech.akamai.com/image-manager/img/mountain.jpeg
// this method will return url :
// //tech.akamai.com/image-manager/img/mountain.jpeg?resize=${width}px:${height}px&output-quality=${quality}&output-format=${format}
```

### Advance Usage

You can define your combination by your self


```js
import imageConverter from 'akamai-image-converter'

// you can call these available function
let result = imageConverter._withOutputFormat(TEST_IMAGE, format)
let result = imageConverter._withQuality(TEST_IMAGE, quality)
let result = imageConverter._withDimension(TEST_IMAGE, width, height)
```



Copyright © 2018 by [Irfan Maulana](https://github.com/mazipan/)

---
_Source: https://npm.io/package/akamai-image-converter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
