You are here

README.txt in Imagecache External 7.2

Same filename and directory in other branches
  1. 8 README.txt
========================
ABOUT
------------------------
Imagecache External is a utility module that allows you to store external
images on your server and apply your own imagecache (D6) / Image Styles (D7).

========================
CONFIGURATION
------------------------
To get the module to work, you need to visit
admin/config/media/imagecache_external and either:

 - Add some domains to the whitelist -or-
 - De-activate whitelist functionality


========================
 USAGE INSTRUCTIONS
------------------------
 In your module or theme, you may call the following theme function to
 process an image via Imagecache External:

 <?php
  print theme('imagecache_external', array(
    'path' => 'https://drupal.org/files/druplicon.large_.png',
    'style_name'=> 'thumbnail',
    'alt' => 'Druplicon'
  ));

or, in a render array, like this:

<?php
  return array(
    '#theme' => 'imagecache_external',
    '#path' => 'https://drupal.org/files/druplicon.large_.png',
    '#style_name' => 'thumbnail',
    '#alt' => 'Druplicon',
  );
?>

You can also use external images without coding at all by adding an Text or
Link field to a Node Type and then use the Imagecache External Image formatter.


========================
ADDITIONAL RESOURCES
------------------------
View the Imagecache External project page for additional information
https://drupal.org/project/imagecache_external

File

README.txt
View source
  1. ========================
  2. ABOUT
  3. ------------------------
  4. Imagecache External is a utility module that allows you to store external
  5. images on your server and apply your own imagecache (D6) / Image Styles (D7).
  6. ========================
  7. CONFIGURATION
  8. ------------------------
  9. To get the module to work, you need to visit
  10. admin/config/media/imagecache_external and either:
  11. - Add some domains to the whitelist -or-
  12. - De-activate whitelist functionality
  13. ========================
  14. USAGE INSTRUCTIONS
  15. ------------------------
  16. In your module or theme, you may call the following theme function to
  17. process an image via Imagecache External:
  18. print theme('imagecache_external', array(
  19. 'path' => 'https://drupal.org/files/druplicon.large_.png',
  20. 'style_name'=> 'thumbnail',
  21. 'alt' => 'Druplicon'
  22. ));
  23. or, in a render array, like this:
  24. return array(
  25. '#theme' => 'imagecache_external',
  26. '#path' => 'https://drupal.org/files/druplicon.large_.png',
  27. '#style_name' => 'thumbnail',
  28. '#alt' => 'Druplicon',
  29. );
  30. ?>
  31. You can also use external images without coding at all by adding an Text or
  32. Link field to a Node Type and then use the Imagecache External Image formatter.
  33. ========================
  34. ADDITIONAL RESOURCES
  35. ------------------------
  36. View the Imagecache External project page for additional information
  37. https://drupal.org/project/imagecache_external