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

Unknown image format/encoding #181

Open
ghost opened this issue Oct 9, 2019 · 1 comment
Open

Unknown image format/encoding #181

ghost opened this issue Oct 9, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 9, 2019

Hi I am using kcfinder. Is embeded in phplist as plugin.

When I try to upload an image I get the following error:

Unknown image format/encoding

What could be the cause of this?

response body:

<html><body><script type='text/javascript'>
var par = window.parent,
    op = window.opener,
    o = (par && par.CKEDITOR) ? par : ((op && op.CKEDITOR) ? op : false);
if (o !== false) {
    if (op) window.close();
    o.CKEDITOR.tools.callFunction(0, '', 'Unknown image format/encoding.');
} else {
    alert('Unknown image format/encoding.');
    if (op) window.close();
}
</script></body></html>
@ghost
Copy link
Author

ghost commented Oct 17, 2019

after digging into it I found the problem.

in the config file of kcfinder I had to change the drivers for images. Apparently I do not have imagemagick or gmagick. I think kcfinder should check if the software is installed before trying to use it.

kcfinder/conf/config.php

    'imageDriversPriority' => "gd", //"imagick gmagick gd"  <<< I changed this.phplist
    'jpegQuality' => 90,
    'thumbsDir' => ".thumbs",

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants