diff --git a/application/views/eqslcard/index.php b/application/views/eqslcard/index.php
index ec940db6..f8cea5fd 100644
--- a/application/views/eqslcard/index.php
+++ b/application/views/eqslcard/index.php
@@ -121,18 +121,21 @@
-
+
result())) {
foreach ($qslarray->result() as $qsl) {
+ if ($thumb_generations >=0) {
$src = $folder_name.'/'.$qsl->image_file;
$dest = $folder_name.'/_'.$qsl->image_file;
- if (file_exists($folder_name.'/_'.$qsl->image_file) == false) {
- /* read the source image */
+ if (!file_exists($folder_name.'/_'.$qsl->image_file)) {
+ $thumb_generations--;
+ /* read the source image */
$data = file_get_contents( $src );
$source_image = imagecreatefromstring( $data );
$width = imagesx( $source_image );
@@ -151,8 +154,11 @@
imagejpeg( $virtual_image, $dest, 60 );
}
echo '';
+ }
}
}
+ } else {
+ echo 'Gallery requires GD libraries to be installed https://www.php.net/manual/en/image.installation.php';
}
?>