Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues getting Preview to work. #191

Open
chartpak opened this issue Apr 20, 2017 · 1 comment
Open

issues getting Preview to work. #191

chartpak opened this issue Apr 20, 2017 · 1 comment

Comments

@chartpak
Copy link

Basically we implemented the previewer for JPG, and we don't seem to be able to see previews of jpg images in when in thumbnail view. We had this working on a old install of mollify, but havn't been able to get the thumbnail with preview of jpg working again.

Here is what we implemented.

" "FileViewerEditor" => array(
"viewers" => array(
"Image" => array("gif", "png", "jpg"),
"TextFile" => array("txt", "php", "html"),
"Google" => array("pdf", "tiff", "doc")
),
"previewers" => array(
"Image" => array("gif", "png", "jpg")
),
"editors" => array(
"TextFile" => array("txt")
)
)"

@sjarvela
Copy link
Owner

Previewer and thumbnails are actually two different things, but both should work with jpg.

Preview is shown in the popup when you click a file, in a tab "Preview". Thumbnail, on the other hand, is shown in icon list view in place of the file type icon.

The configuration sample, why is it in quotes? In configuration.php it should not.

It should be like this:

<?php
$CONFIGURATION = array(
	...
	"plugins" => array(
		"FileViewerEditor" => array(
			"viewers" => array(
				"Image" => array("gif", "png", "jpg"),
				...
			),
			"previewers" => array(
				"Image" => array("gif", "png", "jpg"),
				...
			),
			...
		),
		...
	),
	...
);
?>

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

No branches or pull requests

2 participants