return $fixed;
}
+ public function getVideosFormats()
+ {
+ return ['mp4', 'jpg'];
+ }
+
public function copyLinkFile($source, $dest, $video = false)
{
-// $types = $this->getVideosFormats();
-// if ($video) {
-// wsTools::encodeWebVideos($origDir . $source, null, true);
-// $e = explode('.', $source);
-// array_pop($e);
-// $base = implode('.', $e);
-// $source = array();
-// foreach ($types as $type) {
-// $source[] = $base . '.' . $type;
-// }
-// }
+ $types = $this->getVideosFormats();
+ if ($video) {
+ $e = explode('.', $source);
+ array_pop($e);
+ $base = implode('.', $e);
+ $source = array();
+ foreach ($types as $type) {
+ $source[] = $base . '.' . $type;
+ }
+ }
if (!is_array($source)) {
$source = array($source);
{
if (!Url::isDistant($this->to)) {
$this->copyExternalFile($this->to, true);
+
}
$w = round($this->width * $this->getCssScale());