diff --git a/README.md b/README.md index b23acdf..f3d353d 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ Automatic Intro Image needs IMagick php module to be installed and enabled on yo See https://github.com/mattiaverga/JAutomaticIntroImage/wiki for more help. ## Changelog +### v1.3 +* New feature: use progressive JPEG + ### v1.2 * New feature: image in subdirectory * New feature: set custom JPEG compression diff --git a/automaticintroimage.php b/automaticintroimage.php index f3d721e..7ae5dc1 100755 --- a/automaticintroimage.php +++ b/automaticintroimage.php @@ -89,6 +89,11 @@ public function onContentBeforeSave($context, $article, $isNew) $thumb->setImageCompressionQuality($compression_level); } + if ($this->params->get('SetProgressiveJPG') == 1) + { + $thumb->setInterlaceScheme(Imagick::INTERLACE_PLANE); + } + // Get real image dimensions if maintain aspect ratio was selected if ($this->params->get('MaintainAspectRatio') == 1) { diff --git a/automaticintroimage.xml b/automaticintroimage.xml index b603b01..cd05218 100644 --- a/automaticintroimage.xml +++ b/automaticintroimage.xml @@ -2,11 +2,11 @@ Content - Automatic Intro Image Mattia Verga - 20 November 2016 - Copyright (C) 2016 Mattia Verga. All rights reserved. + 2 June 2017 + Copyright (C) 2017 Mattia Verga. All rights reserved. GNU General Public License version 3 or later. mattia.verga@tiscali.it - 1.2 + 1.3 PLG_CONTENT_AUTOMATICINTROIMAGE_XML_DESCRIPTION automaticintroimage.php @@ -99,6 +99,15 @@ required="1" showon="ChangeImageQuality:1" /> + + + + +