From 5ccb3887f61af7b670f0fafe077401529c141700 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 9 Sep 2009 00:58:37 +0000 Subject: added ability to create thumbnails for images that previously failed --- views/default/tidypics/admin/imagelib.php | 8 ++++--- views/default/tidypics/admin/thumbnails.php | 33 +++++++++++++++++++++++++++++ views/default/tidypics/admin/tidypics.php | 8 +++++++ 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 views/default/tidypics/admin/thumbnails.php (limited to 'views/default/tidypics/admin') diff --git a/views/default/tidypics/admin/imagelib.php b/views/default/tidypics/admin/imagelib.php index 8f71c75f2..deb32d0f3 100644 --- a/views/default/tidypics/admin/imagelib.php +++ b/views/default/tidypics/admin/imagelib.php @@ -18,24 +18,26 @@ if (get_plugin_setting('tagging', 'tidypics') != "disabled") $num_tags = count_annotations(0, 'object', 'image', 'phototag'); ?> -


+

Overview

+

An image library is required by Tidypics to perform various manipulations: resizing on upload, watermarking, rotation, and cropping. There are three image library options with Tidypics: PHP extension GD, ImageMagick called via a system call, and the PHP extension imagick. GD is the most common of the three on hosted servers but suffers from serious memory usage problems when resizing photos. If you have access to ImageMagick (whether through system calls or the PHP extension), we recommend that you use that. -

+

Testing ImageMagick Commandline

+

To use the ImageMagick executables, PHP must be configured to allow calls to exec(). You can check our server analysis page to find out the configuration of your server. Next, you need to determine the path to ImageMagick on your server. Your hosting service should be able to provide this to you. You can test if the location is correct below. If successful, it should display the version of ImageMagick installed on your server.

-


+


diff --git a/views/default/tidypics/admin/thumbnails.php b/views/default/tidypics/admin/thumbnails.php new file mode 100644 index 000000000..0af59090e --- /dev/null +++ b/views/default/tidypics/admin/thumbnails.php @@ -0,0 +1,33 @@ +
+

Overview

+

+This page allows you to create thumbnails for images when the thumbnail creation failed during upload. +You may experience problems with thumbnail creation if your image library in not configured properly or +if there is not enough memory for the GD library to load and resize an image. If your users have +experienced problems with thumbnail creation and you have modified your setup, you can try to redo the +thumbnails. Find the unique identifier of the photo (it is the number near the end of the url when viewing +a photo) and enter it below. +

+

Thumbnail Creation

+

+: + + +

+
+ \ No newline at end of file diff --git a/views/default/tidypics/admin/tidypics.php b/views/default/tidypics/admin/tidypics.php index 3d31bd52e..7aeb3a195 100644 --- a/views/default/tidypics/admin/tidypics.php +++ b/views/default/tidypics/admin/tidypics.php @@ -7,6 +7,7 @@ $settingsselect = ''; $statsselect = ''; $imagelibselect = ''; + $thumbnailselect = ''; switch($tab) { case 'settings': $settingsselect = 'class="selected"'; @@ -17,6 +18,9 @@ case 'imagelib': $imagelibselect = 'class="selected"'; break; + case 'thumbnail': + $thumbnailselect = 'class="selected"'; + break; } ?> @@ -26,6 +30,7 @@
  • >
  • >
  • >
  • +
  • >
  • -- cgit v1.2.3