diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-09 19:03:00 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-09 19:03:00 +0000 |
commit | 1bfbae15f6a0f186d385c4ad073555de12c46e04 (patch) | |
tree | 33efd8ac8658c28d9347eb8cedf5627c3779c560 /modules/g2_import/controllers | |
parent | db465072f5a56b1a7334379a0cbb3c179ae26866 (diff) |
Usability and performance improvements
Significantly speed up the process by copying Gallery2 thumbnails and
resizes wherever possible instead of regenerating them. This requires
us to figure out the dimensions of the original G2 derivative and make
sure that it matches in some reasonable way.
To allow users to take advantage of this, calculate the optimal thumb
and resize size to set in G3 to match what was used in G2. While
we're at it, give the user some idea of how much data is available in
G2 to import.
Diffstat (limited to 'modules/g2_import/controllers')
-rw-r--r-- | modules/g2_import/controllers/admin_g2_import.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/g2_import/controllers/admin_g2_import.php b/modules/g2_import/controllers/admin_g2_import.php index 6197240b..5ef97b5a 100644 --- a/modules/g2_import/controllers/admin_g2_import.php +++ b/modules/g2_import/controllers/admin_g2_import.php @@ -21,11 +21,17 @@ class Admin_g2_import_Controller extends Admin_Controller { public function index() { if (g2_import::is_configured()) { g2_import::init(); + $g2_stats = g2_import::stats(); + $g2_sizes = g2_import::common_sizes(); } $view = new Admin_View("admin.html"); $view->content = new View("admin_g2_import.html"); $view->content->form = $this->_get_import_form(); + $view->content->g2_stats = $g2_stats; + $view->content->g2_sizes = $g2_sizes; + $view->content->thumb_size = module::get_var("core", "thumb_size"); + $view->content->resize_size = module::get_var("core", "resize_size"); print $view; } |