Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Commit

Permalink
Make sure imagick is available
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaverga committed Oct 23, 2016
1 parent ac768a4 commit 9300373
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ This is the Content - Automatic Intro Image plugin for Joomla 3.2+.

This plugin automatically create a resized version of the full size article image and set it as the intro image.Simply enable the plugin, set parameters and let blank the intro image field when saving the article.

Automatic Intro Image needs IMagick php module to be installed and enabled on your Joomla server.

See https://github.com/mattiaverga/JAutomaticIntroImage/wiki for more help.

## Changelog
Expand Down
6 changes: 6 additions & 0 deletions automaticintroimage.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public function onContentBeforeSave($context, $article, $isNew)
return true;
}

// Check ImageMagick
if (!extension_loaded('imagick'))
{
return true;
}

$images = json_decode($article->images);

// Return if full article image is not set or empty
Expand Down

0 comments on commit 9300373

Please sign in to comment.