function createThumbnail() { $this->throw_if_not_magick(); $dir = $this->main->getFullPath(); $list = lscandir_without_dot($dir); lxfile_mkdir("{$dir}/thumbs"); $geom = "{$this->main->image_width}x{$this->main->image_height}"; dprintr($list); foreach ($list as $l) { if (!coreFfile::is_image($l)) { continue; } $newf = "{$dir}/thumbs/th_{$l}"; lxuser_return($this->main->__username_o, "convert", "-scale", $geom, "{$dir}/{$l}", $newf); } }
function is_image() { return coreFfile::is_image($this->nname); }