PHPackages                             tigron/skeleton-file-picture - 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. tigron/skeleton-file-picture

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

tigron/skeleton-file-picture
============================

Tigron File utilities

v0.2.22(7mo ago)017.7k↓30%1MITPHP

Since Aug 14Pushed 7mo ago4 watchersCompare

[ Source](https://github.com/tigron/skeleton-file-picture)[ Packagist](https://packagist.org/packages/tigron/skeleton-file-picture)[ RSS](/packages/tigron-skeleton-file-picture/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (32)Used By (0)

skeleton-file-picture
=====================

[](#skeleton-file-picture)

Description
-----------

[](#description)

This library can resize images. The image must be of type \\Skeleton\\File\\File

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

[](#installation)

Installation via composer:

```
composer require tigron/skeleton-file-picture

```

Create a new table in your database:

```
CREATE TABLE IF NOT EXISTS `picture` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_id` int(11) NOT NULL,
  `width` int(11) NOT NULL,
  `height` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `file_id` (`file_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

```

Howto
-----

[](#howto)

Check the \\Skeleton\\File README to initialize the File Store

Initialize the picture library:

```
/**
 * This function adds a picture configuration
 *
 * $params = [
 *	'width' => width in px,
 * 	'height' => height in px
 * 	'mode' => exact/crop/auto
 *		exact => The $height/$width will be used, ratio is ignored
 *		crop => The image is cropped in in order to fill the $height/$width frame
 *		auto => The image is resized to fit the $height/$width frame, ratio is kept
 *	'format' => image/jpeg|image/gif|image/png|image/webp|original
 */
\Skeleton\File\Picture\Config::add_configuration($params);

/**
 * Set the cache path
 * This is default set to the system TMP path
 *
 * \Skeleton\File\Picture\Config::$tmp_dir is deprecated
 */
\Skeleton\File\Picture\Config::$tmp_path = $your_very_temporary_path

```

Show a resized picture:

```
$picture = Picture::get_by_id(1);
$picture->resize($configuration_name);

```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance64

Regular maintenance activity

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

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

Recently: every ~212 days

Total

31

Last Release

221d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bff1383483dacb0c3f89d2d3856ae03d4cf3e80de26a2998248dd1175317285?d=identicon)[tigron](/maintainers/tigron)

---

Top Contributors

[![christopheg](https://avatars.githubusercontent.com/u/199087?v=4)](https://github.com/christopheg "christopheg (17 commits)")[![LionelLaffineur](https://avatars.githubusercontent.com/u/21120913?v=4)](https://github.com/LionelLaffineur "LionelLaffineur (15 commits)")[![gerryd](https://avatars.githubusercontent.com/u/3003371?v=4)](https://github.com/gerryd "gerryd (3 commits)")[![davidvandemaele](https://avatars.githubusercontent.com/u/1914033?v=4)](https://github.com/davidvandemaele "davidvandemaele (3 commits)")[![SanderTigron](https://avatars.githubusercontent.com/u/45229883?v=4)](https://github.com/SanderTigron "SanderTigron (3 commits)")[![Niels-verbist](https://avatars.githubusercontent.com/u/103761570?v=4)](https://github.com/Niels-verbist "Niels-verbist (1 commits)")[![RoanB](https://avatars.githubusercontent.com/u/77972728?v=4)](https://github.com/RoanB "RoanB (1 commits)")

### Embed Badge

![Health badge](/badges/tigron-skeleton-file-picture/health.svg)

```
[![Health](https://phpackages.com/badges/tigron-skeleton-file-picture/health.svg)](https://phpackages.com/packages/tigron-skeleton-file-picture)
```

###  Alternatives

[andrewcarteruk/cryptokey

A command line tool for generating keys using a CSPRNG.

6124.2k](/packages/andrewcarteruk-cryptokey)

PHPackages © 2026

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