Added extra item arg for gallery_graphics changes
This commit is contained in:
parent
abef6b5dab
commit
e88d458c74
|
@ -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)) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in New Issue
Block a user