Skip to content

Instantly share code, notes, and snippets.

@coding-sunshine
coding-sunshine / ImageOptimize
Last active August 29, 2015 14:27 — forked from Spir/ImageOptimize
Simple command for Laravel 4 to optimize your images using jpegoptim and optipng. Fill in the $imagesFolders array and run. http://freecode.com/projects/jpegoptim http://optipng.sourceforge.net/
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class ImageOptimize extends Command {
/**
* The console command name.