Menu

#3 Thumb size config

open
nobody
None
5
2010-12-10
2010-12-10
Jagibu
No

Przydatna funkcja jak się pracuje w większych rozdzielczościach ( domyślnie jest tylko na 64 px ).
Zmiany w 3 plikach:

myconfig.php
PGRFileManagerConfig::$thumbMaxWidth = 120; // size in px
PGRFileManagerConfig::$thumbMaxHeight = 120;

config.php
static public $thumbMaxWidth;
static public $thumbMaxHeight;

files.php
$w = PGRFileManagerConfig::$thumbMaxWidth ;
$h = PGRFileManagerConfig::$thumbMaxHeight ;
$file['thumb'] = PGRFileManagerUtils::getPhpThumb("src=" . urlencode(PGRFileManagerConfig::$rootPath . $_POST['dir'] . '/' .$elem) . "&w=$w&h=$h&md5=" . $file['md5']);

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.