Download the PHP package rostenkowski/resize without Composer
On this page you can find all versions of the php package rostenkowski/resize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package resize
Resize
High Performance Image Processing Component for Nette Framework
Installation
Download the latest package manually or better use the composer
Configuration
The best way is to use the built-in Nette DI container extension in application configuration, usually located in app/config.neon
. You can place the imageStore
part of the configuration to your local configuration file.
Manual configuration
If you aren't using the the DI extension the image macros should be registered to the Latte engine as described in the docs:
The storage can be created manually in presenter or registered as service this way:
Requirements
- PHP Suggested 5.6, Minimal 5.5
- Nette Suggested 2.3, Minimal 2.2
The library is tested against PHP 5.5, 5.6 and 7.0 and Nette 2.3 but it should be compatible with previous stable Nette 2.2 and the latest Nette 2.4-dev as well.
For the full list of dependencies see the composer.json
file.
API
For the full API documentation navigate to the docs/api/
directory and open index.html
file.
Storage
Technical overview
- The images are stored in regular files in the given directory.
- The files are organized in a directory tree with maximum of 256² directories in two level structure so with ~1K files in a directory the storage is able to store ~6.5M of images without performance impact.
- The directory tree is well balanced thanks to image hashes used for the directory path creation.
- The storage stores only one file even if the same image is stored multiple times.
- The image thumbnails are created on demand and cached in the cache directory.
Contribution
Feel free to open an Issue or Pull Request.
The source code of the library is fully covered by Nette Tester tests.
To run the test suite simply install the dependencies
using composer and then run the bin/run-tests.sh
script on linux. On windows u can run in eg. git bash: bin/run-tests-win.sh
.
To check the code coverage see the docs/coverage.html
file.
Example code
Please see the Usage wiki page.
All versions of resize with dependencies
ext-gd Version *
ext-tokenizer Version *
ext-json Version *
ext-mbstring Version *
nette/application Version ^3.0
nette/di Version ^3.0
nette/http Version ^3.0
latte/latte Version ^3.0
nette/utils Version ^3.0