From 1bfbae15f6a0f186d385c4ad073555de12c46e04 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 9 May 2009 19:03:00 +0000 Subject: 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. --- modules/g2_import/views/admin_g2_import.html.php | 50 +++++++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) (limited to 'modules/g2_import/views') diff --git a/modules/g2_import/views/admin_g2_import.html.php b/modules/g2_import/views/admin_g2_import.html.php index 5c2cfa6d..329a55a8 100644 --- a/modules/g2_import/views/admin_g2_import.html.php +++ b/modules/g2_import/views/admin_g2_import.html.php @@ -12,10 +12,56 @@

- g2_import::version())) ?> +

+ g2_import::version())) ?> +

- maintenance page", +
+

+ +

+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+ + +
+ Using the same value will speed up your import.", + array("g2_pixels" => $g2_sizes["thumb"]["size"], + "g3_pixels" => $thumb_size, + "url" => url::site("admin/theme_details"))) ?> +
+ + + +
+ Using the same value will speed up your import.", + array("g2_pixels" => $g2_sizes["resize"]["size"], + "g3_pixels" => $resize_size, + "url" => url::site("admin/theme_details"))) ?> +
+ + + maintenance page", array("url" => url::site("admin/maintenance"))) ?>
-- cgit v1.2.3