PHPackages                             rosell-dk/webp-convert-cloud-service - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. rosell-dk/webp-convert-cloud-service

ActiveLibrary[Image &amp; Media](/categories/media)

rosell-dk/webp-convert-cloud-service
====================================

Cloud service for converting JPEG &amp; PNG to WebP

2.0.1(7y ago)546.0k↓82.3%14[4 issues](https://github.com/rosell-dk/webp-convert-cloud-service/issues)3MITPHPCI failing

Since Apr 26Pushed 5y ago3 watchersCompare

[ Source](https://github.com/rosell-dk/webp-convert-cloud-service)[ Packagist](https://packagist.org/packages/rosell-dk/webp-convert-cloud-service)[ RSS](/packages/rosell-dk-webp-convert-cloud-service/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (3)

WebPConvert Cloud Service
=========================

[](#webpconvert-cloud-service)

This library allows you to set up your own WebP conversion cloud service. This way you can have a cloud converter for free. You won't have to worry about licenses expiring or being stolen and abused. And you will be completely in control of it (and downtime)

After setting up the cloud service, you will be able to use it to convert jpeg and png images into webp images. You can do that, using [webp-convert](https://github.com/rosell-dk/webp-convert/), or one of its implementations, such as the Wordpress plugin, [WebP Express](https://github.com/rosell-dk/webp-express/).

Alternatively to installing this library, you could install Wordpress and the the *WebP Express* plugin mentioned above. *WebP Express* can be configured to act as a conversion service. The plugin actually uses this library to achieve that functionality.

Installation
------------

[](#installation)

### 1. Require the library with composer

[](#1-require-the-library-with-composer)

```
composer require rosell-dk/webp-convert-cloud-service

```

### 2. Create a script, which calls the library with configuration options

[](#2-create-a-script-which-calls-the-library-with-configuration-options)

Here is an example to get started with:

```

```

### 3. Test if it works

[](#3-test-if-it-works)

You can call the API with curl. First thing you might do is to test if service is available. You can do that by asking for the api-version, as this does not require any authorization:

```
curl --form action="api-version" http://wpc.example.com/wpc.php

```

Next, you can test access. If you have set *require-api-key-to-be-crypted-in-transfer* to `false`, you can test access like this:

```
curl --form action="check-access" --form api-key="my dog is white" http://wpc.example.com/wpc.php

```

Finally, you can make a test conversion like this. First, place a file *test.jpg* in your current dir, then run:

```
curl --form action="convert" --form api-key="my dog is white" --form file=@test.jpg http://wpc.example.com/wpc.php > test.webp

```

If you get a corrupt file, then it is probably because the output contains an error message. To see it, run the above command again, but remove the piping of the output to a file.

You will probably not need to know more of the API. But in case you do, check out [docs/api.md](https://github.com/rosell-dk/webp-convert-cloud-service/blob/master/docs/api.md)

Mad Scientist-ware
------------------

[](#mad-scientist-ware)

If you enjoy this software, feel free to conduct some secret experiments and go mad. If you like.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~107 days

Total

5

Last Release

2561d ago

Major Versions

0.1.0 → 1.0.0-beta2018-11-08

1.0.0 → 2.0.02019-06-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17592708?v=4)[Bjørn Rosell](/maintainers/rosell-dk)[@rosell-dk](https://github.com/rosell-dk)

---

Top Contributors

[![rosell-dk](https://avatars.githubusercontent.com/u/17592708?v=4)](https://github.com/rosell-dk "rosell-dk (40 commits)")[![niklaskeerl](https://avatars.githubusercontent.com/u/33728607?v=4)](https://github.com/niklaskeerl "niklaskeerl (1 commits)")

---

Tags

gdimagickimagespngjpgWebpcwebpimage-conversionjpg2webppng2webp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rosell-dk-webp-convert-cloud-service/health.svg)

```
[![Health](https://phpackages.com/badges/rosell-dk-webp-convert-cloud-service/health.svg)](https://phpackages.com/packages/rosell-dk-webp-convert-cloud-service)
```

###  Alternatives

[rosell-dk/webp-convert

Convert JPEG &amp; PNG to WebP with PHP

6049.0M63](/packages/rosell-dk-webp-convert)[codeblog/conveter-php-webp

Easy WebP conversion library for PHP

124.4k1](/packages/codeblog-conveter-php-webp)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k53.3M146](/packages/league-glide)[choowx/rasterize-svg

A PHP library for converting SVG to JPEG, PNG, and WEBP

2283.6k](/packages/choowx-rasterize-svg)[christianbarkowsky/contao-tiny-compress-images

This plugin automatically optimizes your images (JPG, PNG, WebP) by integrating with the popular image compression services TinyJPG and TinyPNG.

2720.6k](/packages/christianbarkowsky-contao-tiny-compress-images)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
