PHPackages                             onadrog/imageconverterbundle - 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. onadrog/imageconverterbundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

onadrog/imageconverterbundle
============================

A simple FormType that convert images into WebP format

v1.1.0(4y ago)02GPL-3.0-or-laterPHP

Since Sep 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/onadrog/ImageConverterBundle)[ Packagist](https://packagist.org/packages/onadrog/imageconverterbundle)[ Docs](https://github.com/onadrog/ImageConverterBundle)[ RSS](/packages/onadrog-imageconverterbundle/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (34)Versions (5)Used By (0)

ImageConverterBundle
====================

[](#imageconverterbundle)

Convert your images into WebP format using the symfony form Component and Doctrine bundle to persist data.

### Requirements

[](#requirements)

#### Prod:

[](#prod)

- PHP &gt;= 8.0
- [GDImage](https://www.php.net/manual/en/intro.image.php)

### Installation:

[](#installation)

```
composer require onadrog/imageconverterbundle
php bin/console asset:install
```

Minimal configuration
---------------------

[](#minimal-configuration)

This package use php8 attributes.

Use `ImageUpload` and `ImageUploadProperties` attributes as follow.

```
// src/Entity/Foo.php
namespace App\Entity;

// ...
use Onadrog\ImageConverterBundle\Mapping\Attribute as Onadrog;

/**
 * @ORM\Entity(repositoryClass=FooRepository::class)
 */
#[Onadrog\ImageUpload]
class Foo
{
    // ...

    private $fileName;

    private $fileSlug;

    /**
     * @ORM\Column(type="json")
     */
    private ?array $fileDimension = [];

     /**
     * @ORM\Column(type="json")
     */
    private ?array $mimeTypes = [];

    private  $fileAlt;

    #[Onadrog\ImageUploadProperties(name: 'fileName', slug: 'fileSlug', alt: 'fileAlt', dimension: 'fileDimension', mimeTypes: 'mimeTypes')]
    private $file;
}
```

Once done use the `ImageConverterType` in your FormBuilder related to the property where the `ImageUploadProperties` is mapped (here `file`) .

```
// src/Form/FooType.php

namespace App\Foo\Form;

// ...
use Onadrog\ImageConverterBundle\Form\Type\ImageConverterType;

class FooType extends AbstractType
{
    //..
    public function builForm(FormBuilder $builder, array $options)
    {
        // ...

        $builder->add('file', ImageConverterType::class);
    }
}
```

Twig extension:
---------------

[](#twig-extension)

```
{% extends 'base.html.twig' %}

{% block body %}
    {{ image_converter_img(foo) }}
{% endblock %}
```

Configuration default values:
-----------------------------

[](#configuration-default-values)

```
# config/packages/image_converter.yaml

image_converter:
  media_uploads_path: "%kernel.project_dir%/public/uploads/media/"
  namer: "default"
  quality: 80
  public_path: "/uploads/media/"
  remove_orphans: true
  keep_original: false
  use_js: false
```

Console commands:
-----------------

[](#console-commands)

```
onadrog:debug:config
onadrog:dump:config
onadrog:make:entity [options]
```

For more informations read the [Wiki](https://github.com/onadrog/ImageConverterBundle/wiki)
===========================================================================================

[](#for-more-informations-read-the-wiki)

Donate:
=======

[](#donate)

Eth address: `0xB374931cc925042731d971C07708be68B115BC0d`

[![Qr_code](img/eth_qr.png)](img/eth_qr.png)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~15 days

Total

3

Last Release

1725d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46002955?v=4)[onadrog](/maintainers/onadrog)[@onadrog](https://github.com/onadrog)

---

Top Contributors

[![onadrog](https://avatars.githubusercontent.com/u/46002955?v=4)](https://github.com/onadrog "onadrog (12 commits)")

---

Tags

php8symfony-bundlesymfony5converterForm Typeimage uploads

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/onadrog-imageconverterbundle/health.svg)

```
[![Health](https://phpackages.com/badges/onadrog-imageconverterbundle/health.svg)](https://phpackages.com/packages/onadrog-imageconverterbundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)

PHPackages © 2026

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