PHPackages                             swissup/module-image - 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. swissup/module-image

ActiveMagento2-module[Image &amp; Media](/categories/media)

swissup/module-image
====================

Detect image dimensions

1.0.7(3y ago)2145.8k—0.4%1MITPHP

Since Jul 15Pushed 3y ago3 watchersCompare

[ Source](https://github.com/swissup/module-image)[ Packagist](https://packagist.org/packages/swissup/module-image)[ RSS](/packages/swissup-module-image/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

swissup/module-image
====================

[](#swissupmodule-image)

**swissup/module-image** - is a Magento module to calculate image dimensions using PHP. It uses `getimagesize` function when image is found in filesystem, otherwise uses fallback to [marc1706/fast-image-size](https://github.com/marc1706/fast-image-size)library. Supported formats: bmp, gif, ico, iff, jp2, jpeg, png, psd, svg, tif, wbmpm, webp.

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

[](#installation)

```
composer require swissup/module-image
bin/magento setup:upgrade
```

Usage
-----

[](#usage)

```
use Swissup\Image\Helper\Dimensions;

$this->dimensions->getWidth($imageUrl);      // 600
$this->dimensions->getHeight($imageUrl);     // 400
$this->dimensions->getDimensions($imageUrl); // ['width' => 600, 'height' => 400]
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~119 days

Total

8

Last Release

1123d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1108bccc259ec1b0fc93f04a182965faf1213460894ee297f1acf3482e3296ac?d=identicon)[vovayatsyuk](/maintainers/vovayatsyuk)

![](https://www.gravatar.com/avatar/33aea824c2948821ee367ad65fab9d355c71d86ce4ff021a40882a410f14ef94?d=identicon)[swissup](/maintainers/swissup)

---

Top Contributors

[![0m3r](https://avatars.githubusercontent.com/u/412612?v=4)](https://github.com/0m3r "0m3r (7 commits)")[![ci-swissuplabs](https://avatars.githubusercontent.com/u/40459861?v=4)](https://github.com/ci-swissuplabs "ci-swissuplabs (7 commits)")[![vovayatsyuk](https://avatars.githubusercontent.com/u/306080?v=4)](https://github.com/vovayatsyuk "vovayatsyuk (5 commits)")

### Embed Badge

![Health badge](/badges/swissup-module-image/health.svg)

```
[![Health](https://phpackages.com/badges/swissup-module-image/health.svg)](https://phpackages.com/packages/swissup-module-image)
```

###  Alternatives

[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)[imagekit/imagekit

PHP library for Imagekit

47795.6k9](/packages/imagekit-imagekit)

PHPackages © 2026

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