Update to latest media alchemyst api

This commit is contained in:
Romain Neutron
2013-06-26 17:59:23 +02:00
parent 4b06608caa
commit f95bd97fc3
7 changed files with 14 additions and 37 deletions

View File

@@ -101,10 +101,7 @@ class appbox extends base
$tmp = tempnam(sys_get_temp_dir(), 'tmpdatabox') . '.jpg';
try {
$alchemyst
->open($pathfile->getPathname())
->turninto($tmp, $imageSpec)
->close();
$alchemyst->turninto($pathfile->getPathname(), $tmp, $imageSpec);
$filename = $tmp;
} catch (\MediaAlchemyst\Exception $e) {
@@ -118,10 +115,7 @@ class appbox extends base
$tmp = tempnam(sys_get_temp_dir(), 'tmpdatabox') . '.jpg';
try {
$alchemyst
->open($pathfile->getPathname())
->turninto($tmp, $imageSpec)
->close();
$alchemyst->turninto($pathfile->getPathname(), $tmp, $imageSpec);
$filename = $tmp;
} catch (\MediaAlchemyst\Exception $e) {
@@ -196,10 +190,7 @@ class appbox extends base
$tmp = tempnam(sys_get_temp_dir(), 'tmpdatabox') . '.jpg';
try {
$alchemyst
->open($pathfile->getPathname())
->turninto($tmp, $imageSpec)
->close();
$alchemyst->turninto($pathfile->getPathname(), $tmp, $imageSpec);
$filename = $tmp;
} catch (\MediaAlchemyst\Exception $e) {