Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 315 | Rev 362 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 315 Rev 320
Line 4... Line 4...
4
	public $img = array();
4
	public $img = array();
5
	public function __construct($info) {
5
	public function __construct($info) {
6
		$this->info = $info;
6
		$this->info = $info;
7
	}
7
	}
8
	public function img() {
8
	public function img() {
9
		$qualite = 90;
9
		$qualite = 9;
10
		imagejpeg($this->img['cel'], Config::get('cache.stockageChemin').$this->dest_map['cel'], $qualite);
10
		imagepng($this->img['cel'], Config::get('cache.stockageChemin').$this->dest_map['cel'], $qualite);
11
	}
11
	}
12
	//+----------------------------------------------------------------------------------------------------------------+
12
	//+----------------------------------------------------------------------------------------------------------------+
13
	// Méthodes d'accès aux objets du Framework
13
	// Méthodes d'accès aux objets du Framework
14
	/**
14
	/**
15
	* Méthode de connection à la base de données sur demande.
15
	* Méthode de connection à la base de données sur demande.
Line 29... Line 29...
29
	}
29
	}
30
	public function initialiserImage() {
30
	public function initialiserImage() {
31
		// Nom du fichier image en sortie
31
		// Nom du fichier image en sortie
32
		$this->cheminCartesBase = Config::get('Cartes.chemin');
32
		$this->cheminCartesBase = Config::get('Cartes.chemin');
33
		$this->dest_map['cel'] = 'cel_nt'.$this->info['nt'].'_'.$this->info['src_map'];
33
		$this->dest_map['cel'] = 'cel_nt'.$this->info['nt'].'_'.$this->info['src_map'];
34
		$this->img['cel'] = imagecreatefromjpeg($this->cheminCartesBase.$this->info['src_map']);
34
		$this->img['cel'] = imagecreatefrompng($this->cheminCartesBase.$this->info['src_map']);
35
	}
35
	}
Line 36... Line 36...
36
	
36
	
37
	public function chargerDonnees() {
37
	public function chargerDonnees() {