fabianmichael / kirby-imagekit

Asynchronous thumbnail creation and optimization for Kirby 2
MIT License
101 stars 4 forks source link

Scanning pages... but no progress #25

Closed jklue closed 6 years ago

jklue commented 6 years ago

I just installed the ImageKit and ImageSet, along with ImageMagick command line tools. When I click "Create" in the panel I see the "Scanning pages..." message and bar, but no progress occurs.

Apache on MAMP PRO
Kirby version 2.5.7
PHP version 7.1.8

I don't know 100% on my permissions. What could be wrong here?

screenshot 2017-12-17 23 14 26

EDIT: I don't know if this is related, but when I visit the front-end of a page with an image via the browser, the related thumb/* folder is created along with an *.jpg-imagekitjob.php file. But no image is created there.

The *.jpg-imagekitjob.php file looks like:

<?php
return array (
  'imagekit.version' => '1.1.3',
  'source' => 
  array (
    'filename' => 'HistoricDyessColony.jpg',
    'dir' => NULL,
    'page' => 'features/this-is-a-placeholder-for-essay-title-1',
  ),
  'options' => 
  array (
    'filename' => '{safeName}-1760x920-50-50-q40.{extension}',
    'url' => 'http://***.loc:3000/thumbs',
    'root' => '/Users/luke/Sites/vd/***.org/code/thumbs',
    'driver' => 'gd',
    'memory' => '128M',
    'quality' => 40,
    'blur' => false,
    'blurpx' => 10,
    'width' => 1760,
    'height' => 920,
    'upscale' => false,
    'crop' => false,
    'grayscale' => false,
    'overwrite' => false,
    'autoOrient' => false,
    'interlace' => false,
    'bin' => 'convert',
    'fit' => 'width',
    'focus' => true,
    'ratio' => '1.91',
    'focusX' => '0.50',
    'focusY' => '0.50',
  ),
);

I've also boosted the following settings in the related MAMP Pro php.ini:

max_execution_time = 240     ; Maximum execution time of each script, in seconds
max_input_time = 240    ; Maximum amount of time each script may spend parsing request data
memory_limit = 1024M      ; Maximum amount of memory a script may consume (8MB)
jklue commented 6 years ago

Sorry, I don't exactly know what I was doing wrong, but it's working now! I know I worked a bit on getting ImageMagick installed on my machines. Thanks for the plugin!

EDIT: Just remembered! I had a custom route to show search results on every page. That was preventing the plugin from working. This was my route that broke it.