PHPackages                             redfinch/redfinch-image-resize - 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. redfinch/redfinch-image-resize

ActiveWordpress-plugin[Image &amp; Media](/categories/media)

redfinch/redfinch-image-resize
==============================

Provides simple helper functions for resizing images uploaded to WordPress

v1.0.0(6y ago)16MITPHPPHP &gt;=7.1

Since Sep 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/RedFinch/WordPress-Image-Resize)[ Packagist](https://packagist.org/packages/redfinch/redfinch-image-resize)[ Docs](https://github.com/RedFinch/WordPress-Image-Resize)[ RSS](/packages/redfinch-redfinch-image-resize/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

WordPress Image Resize
======================

[](#wordpress-image-resize)

WordPress can be difficult to work with when using images. Especially if you want to have multiple image sizes available for templates, the result is either putting the resizing responsibility on end users or having an extremely large uploads directory.

This plugin aims to solve this issue, simply and without any additional libraries. It will automatically add your custom sizes to the Attachment meta data which means on deletion, all of the arbitrary sizes will be removed as well.

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

[](#installation)

If you are using `roots/bedrock` or a variant of this, the installation is simply to run `composer require redfinch/redfinch-image-resize`.

To install manually go to the releases page and download the latest version. Unzip the file into your WordPress plugins directory.

Using the plugin
----------------

[](#using-the-plugin)

The plugin is aimed at developers and therefore there is no admin interface. The plugin exposes four main functions:

### redfinch\_resize\_image

[](#redfinch_resize_image)

This resizes an image proportionally to fit X and Y values.

```
