not shows thumbnails
Added by ig mak about 1 year ago
I've already checked and readed all topics about, but nothing (my thumbnails are white).I'm using addon domain in my hosting.Everything is ok except tumbnail viewing (pctures selection and insert is ok).
in my connector I have. /public_html/mysite/elfinder/connectors/php/connector.php$opts = array(
'root' => '../../files', // path to root directory
'URL' => '/elfinder/files/', // root directory URL
'rootAlias' => 'Home', // display this instead of root directory name
//'uploadAllow' => array('images/*'),
//'uploadDeny' => array('all'),
//'uploadOrder' => 'deny,allow'
// 'disabled' => array(), // list of not allowed commands
// 'dotFiles' => false, // display dot files
// 'dirSize' => true, // count total directories sizes
// 'fileMode' => 0666, // new files mode
// 'dirMode' => 0777, // new folders mode
// 'mimeDetect' => 'auto', // files mimetypes detection method (finfo, mime_content_type, linux (file -ib), bsd (file -Ib), internal (by extensions))
// 'uploadAllow' => array(), // mimetypes which allowed to upload
// 'uploadDeny' => array(), // mimetypes which not allowed to upload
// 'uploadOrder' => 'deny,allow', // order to proccess uploadAllow and uploadAllow options
// 'imgLib' => 'auto', // image manipulation library (imagick, mogrify, gd)
// 'tmbDir' => '.tmb', // directory name for image thumbnails. Set to "" to avoid thumbnails generation
// 'tmbCleanProb' => 1, // how frequiently clean thumbnails dir (0 - never, 100 - every init request)
// 'tmbAtOnce' => 5, // number of thumbnails to generate per request
// 'tmbSize' => 48, // images thumbnails size (px)
// 'fileURL' => true, // display file URL in "get info"
// 'dateFormat' => 'j M Y H:i', // file modification date format
// 'logger' => null, // object logger
// 'defaults' => array( // default permisions
// 'read' => true,
// 'write' => true,
// 'rm' => true
// ),
I tried to change 'tmbDir' with http://mysite/elfinder/... (starts to show only images icons).
Please attention: my thumbnails in .tmb folder was made with big dimensions (not 48x48) WITH ORIGINAL SIZES.
Please help me with this problem.
Thanks for your WYSIWYG editor.
Untitled-1.jpg (66.9 kB)
Replies (5)
RE: not shows thumbnails
-
Added by Troex Nevelin about 1 year ago
tmbDir must be set relative to your root folder and be inside root, you can set it to just thumbs.
I recommend you to set URL to absolute URL like http://mysite.com/path/to/elfinder/root/
Next try to play with imgLib option and try set it to gd, imagick or mogrify. And remember to clean your thumbs after changing it.
RE: not shows thumbnails
-
Added by ig mak 6 months ago
after changing imgLib I have right thumbnails in .tmb folder.
please help with showing.
and I'm working with /elfinder/connectors/php/connector.php right?
not this: /elfinder/src/connectors/php/connector.php
and about comments, I must open comments yes?
RE: not shows thumbnails
-
Added by Troex Nevelin 6 months ago
src directory for uncompressed version of elFinder, you can delete this directory at all in production environment, so make changes to connectors/php/connector.php
RE: not shows thumbnails
-
Added by Don Robertson 6 months ago
Hi - had the same problem installing elFinder into Drupal.
Thumbnails were being created but not being displayed in the file browser.
I was also getting a permission denied error in the apache log files.
What I found is that there is a mod rewrite directive that denies access to all dot files and directories (eg .git) in the .htaccess file. This is as a security precaution.
RewriteRule "(^|/)\." - [F]
If this is the case, you can remove the . from the name of the thumbnail directory - and have the thumbnails show up in elFinder, or modify the .htaccess file.
This is what works for me - but could very well be different on different systems :-)
RewriteCond %{REQUEST_URI} !(.*)\.tmb(.*)
RewriteRule "(^|/)\." - [F]
Hope this helps :-)
Excellent file browser, btw. Works with both the WYSIWYG module and CKeditor and the standalone CKeditor module in Drupal.
Cheers,
Don
RE: not shows thumbnails
-
Added by Troex Nevelin 6 months ago
other option is to set 'tmbDir' => '_tmb', in connector options I guess
(1-5/5)