PHPackages                             wernerdweight/microbe-image-manager - 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. wernerdweight/microbe-image-manager

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

wernerdweight/microbe-image-manager
===================================

Support for image resizing, cropping and encrypting for Microbe.

v2.0.0(9y ago)1131MITPHPPHP &gt;=7.0

Since Dec 13Pushed 9y ago2 watchersCompare

[ Source](https://github.com/wernerdweight/Microbe.wdImageManager)[ Packagist](https://packagist.org/packages/wernerdweight/microbe-image-manager)[ Docs](https://github.com/wernerdweight/Microbe.wdImageManager)[ RSS](/packages/wernerdweight-microbe-image-manager/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (14)Used By (0)

Werner Dweight's ImageManager Bundle
====================================

[](#werner-dweights-imagemanager-bundle)

This utility adds support for image resizing and cropping to Microbe.

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

[](#installation)

1. Download using composer

```
	{
		"require": {
			"wernerdweight/microbe-image-manager": "~2.0"
		}
	}
```

3. Setup config

```
# app/config/microbe.yml
wd_image_manager:
	enabled: true
    upload_root: path/to/web/directory # public/uploads
    upload_path: relative/path/for/storing/images # e.g. images/image-manager
    secret: thisIsNotSecret # you can use app secret (%secret%) or any other custom secret (needed for encryption)
    versions:
        version_name_x:	# this key will be used as name of directory to where this version of images will be saved
            width: 200	# desired image width in pixels (if you ommit width or height image will keep its original dimensions)
            height: 200 # desired image height in pixels (if you ommit width or height image will keep its original dimensions)
            crop: true	# set this to true if you want the resulting image to have EXACTLY the dimensions specified (default false)
            watermark: # if you don't want your images to be watermarked, do not set this key at all
                file: absolute/path/to/watermark/file # e.g. %kernel.root_dir%/../web/watermark.png
                size: 50 # css-like watermark size; possible values: cover/contain/percentage (integer 0 - 100)
                position:
                    top: 50 # css-like position from top in percent (integer 0 - 100; default 100 - align to bottom)
                    left: 50 # css-like position from left in percent (integer 0- 100; default 100 - align to right)
        encrypted_version_name:
            encrypted: true	# if encrypted is set to true original image will be saved encrypted (intended for image download restrictions)
        ...

```

Usage
-----

[](#usage)

Code to be used inside a controller:

```
		/// get manager
		$im = $this->kernel->service('imageManager');

		/// upload your image file(s), create database records etc.
		...

		/// process image (one by one)
		/// 1st parameter ($file) is instance of WernerDweight\MicrobeImageManager\File\UploadedFile (mandatory)
		/// 2nd parameter is the filename of newly created file (mandatory)
		/// 3rd parameter is a path under upload_path from config (optional)
		$processedImageInfo = $im->processImage($file,'destination-filename','/optional/subpath');
```

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the root directiory of the bundle.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~45 days

Recently: every ~103 days

Total

13

Last Release

3302d ago

Major Versions

v1.0.11 → v2.0.02017-06-15

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.9

v2.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b1454d4a92d76c33018ef518335ec921cf3eadbe591437c47622510f465c9ed?d=identicon)[wernerdweight](/maintainers/wernerdweight)

---

Top Contributors

[![wernerdweight](https://avatars.githubusercontent.com/u/2445436?v=4)](https://github.com/wernerdweight "wernerdweight (15 commits)")

---

Tags

imageencryptresizecrop

### Embed Badge

![Health badge](/badges/wernerdweight-microbe-image-manager/health.svg)

```
[![Health](https://phpackages.com/badges/wernerdweight-microbe-image-manager/health.svg)](https://phpackages.com/packages/wernerdweight-microbe-image-manager)
```

###  Alternatives

[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

854936.5k12](/packages/sybio-image-workshop)[ctessier/nova-advanced-image-field

An advanced image field for Nova with cropping and resizing.

102563.4k1](/packages/ctessier-nova-advanced-image-field)[jbzoo/image

A PHP class that simplifies working with images

171128.5k3](/packages/jbzoo-image)[stefangabos/zebra_image

A single-file, lightweight PHP library designed for efficient image manipulation featuring methods for modifying images and applying filters

138115.5k7](/packages/stefangabos-zebra-image)[bodom78/kohana-imagefly

Create resized / cropped images directly through url parameters.

5517.9k](/packages/bodom78-kohana-imagefly)[sadovojav/yii2-image-thumbnail

Yii2 image thumbnail component

2243.5k](/packages/sadovojav-yii2-image-thumbnail)

PHPackages © 2026

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