<?php
/**
 * Created by PhpStorm.
 * User: marco
 * Date: 19/06/17
 * Time: 21.08
 */

//Proporzioni 16/9

abstract class o66_image_sizes
{
	const slider_full = 'slider_full';
	const slider_container = 'slider_container';
	const nocrop_side = 'nocrop_side';
	const nocrop_container = 'nocrop_container';
	const quad = 'quad';
	const rect = 'rect';
	const rect43 = 'rect43';
	// etc.
}

//https://havecamerawilltravel.com/photographer/wordpress-thumbnail-crop/
//TODO DIREZIONE CROP, vedere se è ancora così, articolo vecchio, injectare da acf
//https://github.com/Viper007Bond/regenerate-thumbnails
//https://stackoverflow.com/questions/2749441/fastest-way-possible-to-read-contents-of-a-file
//$today = DaysOfWeek::Sunday;
//add_image_size( 'slider_full', 1600, 900,true );
//add_image_size( 'slider_container', 1140, 640,true );
//add_image_size( 'nocrop_side', 480, 9999);
//add_image_size( 'nocrop_container', 1140, 9999);
//add_image_size( 'quad', 480, 480, true);
//add_image_size( 'rect', 640, 360, true);


add_image_size( o66_image_sizes::slider_full, 1920, 680,true );
add_image_size( o66_image_sizes::slider_container, 1024, 363,true );
add_image_size( o66_image_sizes::nocrop_side, 480, 9999);
add_image_size( o66_image_sizes::nocrop_container, 1140, 9999);
add_image_size( o66_image_sizes::quad, 480, 480, true);
add_image_size( o66_image_sizes::rect, 480, 245, true);
add_image_size( o66_image_sizes::rect43, 480, 340, true);
