Download the PHP package wa72/adaptimage without Composer

On this page you can find all versions of the php package wa72/adaptimage. 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 adaptimage

AdaptImage

Build Status Latest Version

A small PHP library that lets you easily resize images to pre-defined sizes (useful for adaptive images), generate thumbnails, and cache them.

Built on top of the Imagine library, it is designed to be framework agnostic, object orientated, customizable, and extendable.

Features:

Installation

Usage

First, define the allowed image sizes in the application, matching your CSS media query breakpoints. This is done using ImageResizeDefinition objects that besides the desired image width and height may contain additional transformation filters, such as for sharpening or adding watermarks.

Next, we need an object implementing OutputPathGeneratorInterface that is able to compute the path and filename where a resized image should be stored (depending on the input file and the applied transformations). OutputPathGeneratorBasedir is a class that generates output filenames that are all placed in per-transformation subdirectories within a common base directory.

Now we are ready to define an AdaptiveImageResizer and a ThumbnailGenerator that will do the work for us:

Both the ThumbnailGenerator and the AdaptiveImageResizer get an ImageFileInfo object of the original file as input and will return another ImageFileInfo object pointing to the generated resized image file. The ThumbnailGenerator will generate a thumbnail with the dimensions defined in the constructor, while the AdaptiveImageResizer will from the defined image sizes select the one that best matches $client_screen_width and will scale the image to the defined size. Both will resize the image only if there isn't a resized version yet or if the original file is newer than the resized one, but just return the cached file if it is already there.

$thumbnail and $resized_image are ImageFileInfo objects containing the path and name of the generated file as well as it's image type, width, and height. Use this information for generating html img tags or deliver the resized image to the user, e.g. using a BinaryFileResponse from Symfony:

For more documentation, please see the source code, it should be well commented.

© 2015 Christoph Singer. Licensed under the MIT license.


All versions of adaptimage with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-exif Version *
ext-fileinfo Version *
imagine/imagine Version ^1
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 wa72/adaptimage contains the following files

Loading the files please wait ....