2017 © Pedro Peláez
 

library imageoptimbundle

Symfony Bundle - Wrapper for tinyjpg

image

poznet/imageoptimbundle

Symfony Bundle - Wrapper for tinyjpg

  • Thursday, November 30, 2017
  • by j00seph
  • Repository
  • 1 Watchers
  • 3 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 14 % Grown

The README.md

Image Optimization Bundle ( minify - tinyjpg.com)

Bundle for Symfony 2/3

Main idea is to use tinify API to shrink images, that are already stored in server. Shrinking when uploading images takes too much time, so it's better to do that with commands firedup in cron, (*1)

SensioLabsInsight, (*2)

Usage

Bundle adds new commands (for use with cron for example):, (*3)

console image:optim:scan - searches for images in given dirs, (*4)

console image:optim:minify - minify images (default is 20 images per 1 run - can be overwriten by argument), (*5)

console image:optim:stats - writes statistics info, (*6)

console image:optim:truncate - removes all images data from database, (*7)

Installation

Install with composer, (*8)

composer require poznet/imageoptimbundle, (*9)

create databes structures, (*10)

console d:s:u --force

Add API key in parameters.yml, (*11)

tinifyAPI: key

Define paths in parameters.yml All paths should be realive to main all dir (1 above app)., (*12)

This parameters are used in Finder() Component as in() and exclude(), (*13)

imageoptim_dirs:
  - web/media
  - web/media2
imageoptim_excluded:
  - cache

Other

Bundle uses custom events , so it can be easily extended, (*14)

Events : - image.add - image.minify, (*15)

Both takes Poznet\ImageOptimBundle\Event\ImageEvent class as event., (*16)

The Versions

30/11 2017

dev-master

9999999-dev https://github.com/poznet/imageoptimbundle

Symfony Bundle - Wrapper for tinyjpg

  Sources   Download

GPL-3.0

The Requires

 

symfony image tinypng tinyjpg tinify image optimization image shrinking

22/11 2017

v1.1.3

1.1.3.0 https://github.com/poznet/imageoptimbundle

Symfony Bundle - Wrapper for tinyjpg

  Sources   Download

GPL-3.0

The Requires

 

symfony image tinypng tinyjpg tinify image optimization image shrinking

11/11 2017

v1.1.2

1.1.2.0 https://github.com/poznet/imageoptimbundle

Symfony Bundle - Wrapper for tinyjpg

  Sources   Download

GPL-3.0

The Requires

 

symfony image tinypng tinyjpg tinify image optimization image shrinking

11/11 2017

v1.1.1

1.1.1.0 https://github.com/poznet/imageoptimbundle

Symfony Bundle - Wrapper for tinyjpg

  Sources   Download

GPL-3.0

The Requires

 

symfony image tinypng tinyjpg tinify image optimization image shrinking

11/11 2017

v1.0

1.0.0.0 https://github.com/poznet/imageoptimbundle

Symfony Bundle - Wrapper for tinyjpg

  Sources   Download

GPL-3.0

The Requires

 

symfony image tinypng tinyjpg tinify image optimization image shrinking