1
0

Added extra item arg for gallery_graphics changes

This commit is contained in:
colings 2011-02-23 20:30:23 -06:00
parent abef6b5dab
commit e88d458c74
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class autorotate {
}
if($degrees) {
$tmpfile = tempnam(TMPPATH, "rotate");
gallery_graphics::rotate($item->file_path(), $tmpfile, array("degrees" => $degrees));
gallery_graphics::rotate($item->file_path(), $tmpfile, array("degrees" => $degrees), $item);
// Update EXIF info
$data = new PelDataWindow(file_get_contents($tmpfile));
if (PelJpeg::isValid($data)) {

View File

@ -106,7 +106,7 @@ class Embedded_videos_Controller extends Controller {
$file = fopen($temp_filename, "wb");
fwrite($file, $content);
fclose($file);
gallery_graphics::composite($temp_filename, $temp_filename, array("file" => "modules/embed_videos/images/embed_video_icon.png", "position" => "center", "transparency" => 95));
gallery_graphics::composite($temp_filename, $temp_filename, array("file" => "modules/embed_videos/images/embed_video_icon.png", "position" => "center", "transparency" => 95), $item);
$item->set_data_file($temp_filename);
$item->name = basename($itemname);
$item->title = $title;

View File

@ -247,7 +247,7 @@ class Json_Album_Controller extends Controller {
}
if ($degrees) {
gallery_graphics::rotate($item->file_path(), $item->file_path(), array("degrees" => $degrees));
gallery_graphics::rotate($item->file_path(), $item->file_path(), array("degrees" => $degrees), $item);
list($item->width, $item->height) = getimagesize($item->file_path());
$item->resize_dirty= 1;