Download the PHP package amphibee/thumbnail-on-demand without Composer

On this page you can find all versions of the php package amphibee/thumbnail-on-demand. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package thumbnail-on-demand

Thumbnail On Demand

EN

Thumbnail On Demand is a WordPress plugin designed to better control image thumbnail generation and generate them on-the-fly. This plugin optimizes the management of thumbnails by generating only those that are truly necessary, thus reducing server resource consumption and storage space usage.

How it works

The plugin intercepts thumbnail requests for images and generates the required sizes on-the-fly if they don't already exist. It also allows you to define your own image resizing class by implementing the ImageResizerInterface and defining the IMAGE_RESIZER_CLASS constant.

Customizing the image resizing class

To use your own image resizing class, define the IMAGE_RESIZER_CLASS constant in your wp-config.php file or in a custom plugin:

Your custom class should implement the AmphiBee\ThumbnailOnDemand\Contracts\ImageResizerInterface and define the resize() method.

Available filters

The plugin provides two filters to customize the automatically generated thumbnail sizes.

tod/include_thumbnail_sizes This filter allows you to include specific thumbnail sizes that will be automatically generated when an image is uploaded. By default, no sizes are included.

Example usage:

tod/exclude_thumbnail_sizes This filter allows you to exclude specific thumbnail sizes that will not be automatically generated when an image is uploaded. By default, all registered sizes are excluded.

Example usage:

License

The Thumbnail On Demand plugin is released under the GPL-3.0-or-later license.

FR

Thumbnail On Demand est une extension WordPress permettant de mieux contrôler la génération de miniatures d'images et de les générer à la volée. Cette extension optimise la gestion des miniatures en ne générant que celles qui sont réellement nécessaires, réduisant ainsi la consommation de ressources serveur et d'espace de stockage.

Fonctionnement

L'extension intercepte les demandes de miniatures pour les images et génère les tailles requises à la volée si elles n'existent pas déjà. Elle permet également de définir sa propre classe de redimensionnement d'image en implémentant l'interface ImageResizerInterface et en définissant la constante IMAGE_RESIZER_CLASS.

Personnaliser la classe de redimensionnement d'image

Pour utiliser votre propre classe de redimensionnement d'image, définissez la constante IMAGE_RESIZER_CLASS dans votre fichier wp-config.php ou dans un plugin personnalisé :

Votre classe personnalisée doit implémenter l'interface AmphiBee\ThumbnailOnDemand\Contracts\ImageResizerInterface et définir la méthode resize().

Filtres disponibles

L'extension met à disposition deux filtres pour personnaliser les tailles de miniatures générées automatiquement.

tod/include_thumbnail_sizes Ce filtre vous permet d'inclure des tailles de miniatures spécifiques qui seront générées automatiquement lors de l'upload d'une image. Par défaut, aucune taille n'est incluse.

Exemple d'utilisation :

tod/exclude_thumbnail_sizes Ce filtre vous permet d'exclure des tailles de miniatures spécifiques qui ne seront pas générées automatiquement lors de l'upload d'une image. Par défaut, toutes les tailles enregistrées sont exclues.

Exemple d'utilisation :

Licence

L'extension Thumbnail On Demand est publiée sous licence GPL-3.0-or-later.


All versions of thumbnail-on-demand with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
spatie/image Version ^2.2
ext-fileinfo Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package amphibee/thumbnail-on-demand contains the following files

Loading the files please wait ....