You are here

README.txt in Image Zoomer 7

[Updated 31 Jan 2013]

This module provides 2 jquery plugins; The Powerzoomer and Featuredzoomer.

Powerzoomer demo can be seen here:
http://www.dynamicdrive.com/dynamicindex4/powerzoomer.htm

Featuredzoomer demo can be seen here:
http://www.dynamicdrive.com/dynamicindex4/featuredzoomer.htm

====================================================

INSTALLATION STEPS:

1. Download and place this module to your D7 as normal
(sites/all/modules/imagezoomer)

2. Download the plugins

2.1 For Powerzoomer
http://www.dynamicdrive.com/dynamicindex4/ddpowerzoomer.js

2.2 For Featuredzoomer
http://www.dynamicdrive.com/dynamicindex4/multizoom.js
http://www.dynamicdrive.com/dynamicindex4/multizoom.css
http://www.dynamicdrive.com/dynamicindex4/spinningred.gif

3. Upload all the above to libraries folder so that they look like:

sites/all/libraries/imagezoomer/ddpowerzoomer.js

sites/all/libraries/imagezoomer/multizoom.js
sites/all/libraries/imagezoomer/multizoom.css
sites/all/libraries/imagezoomer/spinningred.gif

4. Enable the module from your Drupal site: /admin/modules

5. Visit this page to configure all the plugins options: /admin/config/user-interface/imagezoomer

====================================================

HOW TO USE:

I. FOR NORMAL USERS

1. In your content type, add an image field

2. Go to "Manage display" then change display format from "Image" to "Power Zoomer" or "Featured Zoomer"

3. Click on the cog wheel and select an image style for displaying and another for zooming. For zooming, normally, select "Original" for the best resolution. You could also select other image style if the original image is too large.

4. Save your setting. Create a new node (of that content type), upload an image then save it.

5. In the node view, you should be able to zoom your image using a magnifying glass now.

II. FOR DEVELOPERS

The module provides a theme function so that developers could use it in coding.

Please take a look at this example below:

1. For Power Zoomer

<?php
print theme('imagezoomer_power_image', $variables);
?>

With $variables can be declared as such:

<?php
$variables = array(
  'file' => $file,
  'image_style_display' => 'style1',
  'image_style_zooming' => 'style2',
  'imagezoomer_power_options' => $options,
);
?>

$file: Drupal image file object. It should include a path to the image file.

'style1': Image style name for displaying. For example: 'product_thumb'.

'style2': Image style name for zooming. It should be larger style 1. For example: 'product_large'.

$options: Are the powerzoomer plug-in options. For example:
$options = array(
  'imagezoomer_power_default_power' => 2,
  'imagezoomer_power_power_range_low' => 2,
  'imagezoomer_power_power_range_high' => 7,
  'imagezoomer_power_magnifier_size_width' => 75,
  'imagezoomer_power_magnifier_size_height' => 75,
);

If you don't set the specific options as above (leave it empty, for example: 'imagezoomer_power_options' => array()) 
the theme will take default settings from the settings page.

2. For Featured Zoomer

<?php
print theme('imagezoomer_featured_image', $variables);
?>

With $variables can be declared as such:

<?php
$variables = array(
  'file' => $file,
  'image_style_display' => 'style1',
  'image_style_zooming' => 'style2',
  'imagezoomer_featured_options' => $options,
);
?>

$file: Drupal image file object. It should include a path to the image file.

'style1': Image style name for displaying. For example: 'product_thumb'.

'style2': Image style name for zooming. It should be larger style 1. For example: 'product_large'.

$options: Are the featuredzoomer plug-in options. For example:
$options = array(
  'imagezoomer_featured_power_range_low' => 2,
  'imagezoomer_featured_power_range_high' => 7,
  'imagezoomer_featured_magnifier_size_width' => 200,
  'imagezoomer_featured_magnifier_size_height' => 200,
  'imagezoomer_featured_magnifier_position' => 'right',
);

====================================================

[End of file]

File

README.txt
View source
  1. [Updated 31 Jan 2013]
  2. This module provides 2 jquery plugins; The Powerzoomer and Featuredzoomer.
  3. Powerzoomer demo can be seen here:
  4. http://www.dynamicdrive.com/dynamicindex4/powerzoomer.htm
  5. Featuredzoomer demo can be seen here:
  6. http://www.dynamicdrive.com/dynamicindex4/featuredzoomer.htm
  7. ====================================================
  8. INSTALLATION STEPS:
  9. 1. Download and place this module to your D7 as normal
  10. (sites/all/modules/imagezoomer)
  11. 2. Download the plugins
  12. 2.1 For Powerzoomer
  13. http://www.dynamicdrive.com/dynamicindex4/ddpowerzoomer.js
  14. 2.2 For Featuredzoomer
  15. http://www.dynamicdrive.com/dynamicindex4/multizoom.js
  16. http://www.dynamicdrive.com/dynamicindex4/multizoom.css
  17. http://www.dynamicdrive.com/dynamicindex4/spinningred.gif
  18. 3. Upload all the above to libraries folder so that they look like:
  19. sites/all/libraries/imagezoomer/ddpowerzoomer.js
  20. sites/all/libraries/imagezoomer/multizoom.js
  21. sites/all/libraries/imagezoomer/multizoom.css
  22. sites/all/libraries/imagezoomer/spinningred.gif
  23. 4. Enable the module from your Drupal site: /admin/modules
  24. 5. Visit this page to configure all the plugins options: /admin/config/user-interface/imagezoomer
  25. ====================================================
  26. HOW TO USE:
  27. I. FOR NORMAL USERS
  28. 1. In your content type, add an image field
  29. 2. Go to "Manage display" then change display format from "Image" to "Power Zoomer" or "Featured Zoomer"
  30. 3. Click on the cog wheel and select an image style for displaying and another for zooming. For zooming, normally, select "Original" for the best resolution. You could also select other image style if the original image is too large.
  31. 4. Save your setting. Create a new node (of that content type), upload an image then save it.
  32. 5. In the node view, you should be able to zoom your image using a magnifying glass now.
  33. II. FOR DEVELOPERS
  34. The module provides a theme function so that developers could use it in coding.
  35. Please take a look at this example below:
  36. 1. For Power Zoomer
  37. print theme('imagezoomer_power_image', $variables);
  38. ?>
  39. With $variables can be declared as such:
  40. $variables = array(
  41. 'file' => $file,
  42. 'image_style_display' => 'style1',
  43. 'image_style_zooming' => 'style2',
  44. 'imagezoomer_power_options' => $options,
  45. );
  46. ?>
  47. $file: Drupal image file object. It should include a path to the image file.
  48. 'style1': Image style name for displaying. For example: 'product_thumb'.
  49. 'style2': Image style name for zooming. It should be larger style 1. For example: 'product_large'.
  50. $options: Are the powerzoomer plug-in options. For example:
  51. $options = array(
  52. 'imagezoomer_power_default_power' => 2,
  53. 'imagezoomer_power_power_range_low' => 2,
  54. 'imagezoomer_power_power_range_high' => 7,
  55. 'imagezoomer_power_magnifier_size_width' => 75,
  56. 'imagezoomer_power_magnifier_size_height' => 75,
  57. );
  58. If you don't set the specific options as above (leave it empty, for example: 'imagezoomer_power_options' => array())
  59. the theme will take default settings from the settings page.
  60. 2. For Featured Zoomer
  61. print theme('imagezoomer_featured_image', $variables);
  62. ?>
  63. With $variables can be declared as such:
  64. $variables = array(
  65. 'file' => $file,
  66. 'image_style_display' => 'style1',
  67. 'image_style_zooming' => 'style2',
  68. 'imagezoomer_featured_options' => $options,
  69. );
  70. ?>
  71. $file: Drupal image file object. It should include a path to the image file.
  72. 'style1': Image style name for displaying. For example: 'product_thumb'.
  73. 'style2': Image style name for zooming. It should be larger style 1. For example: 'product_large'.
  74. $options: Are the featuredzoomer plug-in options. For example:
  75. $options = array(
  76. 'imagezoomer_featured_power_range_low' => 2,
  77. 'imagezoomer_featured_power_range_high' => 7,
  78. 'imagezoomer_featured_magnifier_size_width' => 200,
  79. 'imagezoomer_featured_magnifier_size_height' => 200,
  80. 'imagezoomer_featured_magnifier_position' => 'right',
  81. );
  82. ====================================================
  83. [End of file]