Permalink
Browse files

Regenerate resizes and thumbs after rotation

  • Loading branch information...
rledisez authored and talmdal committed May 17, 2010
1 parent 8562aff commit 08cd20fd4e9f24d83694e3fbc96c6511de45bb1a
Showing with 3 additions and 0 deletions.
  1. +3 −0 modules/jhead/helpers/jhead_event.php
@@ -48,6 +48,9 @@ static function item_created($item) {
$image_info = getimagesize($item->file_path());
$item->width = $image_info[0];
$item->height = $image_info[1];
+ $item->resize_dirty = 1;
+ $item->thumb_dirty = 1;
$item->save();
+ graphics::generate($item);
}
}

0 comments on commit 08cd20f

Please sign in to comment.