PHPackages                             vvv3/wp-responsive-images - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vvv3/wp-responsive-images

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vvv3/wp-responsive-images
=========================

WordPress responsive images easily

1.0.4(2y ago)22.5k11MITPHPPHP &gt;=8.0

Since Jan 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vvv3/wp-responsive-images)[ Packagist](https://packagist.org/packages/vvv3/wp-responsive-images)[ Docs](https://github.com/vvv3/wp-responsive-images#readme)[ RSS](/packages/vvv3-wp-responsive-images/feed)WikiDiscussions main Synced yesterday

READMEChangelog (5)DependenciesVersions (6)Used By (1)

WP Responsive Images
====================

[](#wp-responsive-images)

**A library for easy introduction of Responsive Images to WordPress site.**

Requirements
------------

[](#requirements)

- [PHP](https://secure.php.net/manual/en/install.php) 8.0
- [WordPress](https://wordpress.org/)

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

[](#installation)

Clone WP Responsive Images library or install with composer:

```
$ composer require vvv3/wp-responsive-images
```

How to use
----------

[](#how-to-use)

The library contains classes and helpers for easy introduction of Responsive Images to a WordPress site.

### ImgUtils::resizeImg()

[](#imgutilsresizeimg)

The `\WPRI\ImgUtils::resizeImg` method returns a link to the modified image according to the passed parameters.

**Usage:**

```
