This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sPathName = realpath($oFile->getPathname()); | |
$oIm = new Imagick($sPathName); | |
$iNoOfPagesInPDF = $oIm->getNumberImages(); | |
if ($iNoOfPagesInPDF) { | |
$aPdfPagePath = []; | |
for ($i = 0; $i < $iNoOfPagesInPDF; $i++) { | |
$sUrl = $sPathName . '[' . $i . ']'; | |
$sPath = '/tmp/' . $oFile->getFilename() . '_' . ($i + 1) . '.pdf'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gets the internet explorer version. | |
* | |
* @return {int} The internet explorer version. | |
*/ | |
function getInternetExplorerVersion() { | |
var rv = -1; | |
if (navigator.appName == 'Microsoft Internet Explorer') { | |
var ua = navigator.userAgent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in *.MOV; do | |
ffmpeg -i "$file" -vcodec copy -acodec copy "${file%.MOV}".mp4 | |
touch -r "$file" "${file%.MOV}".mp4 | |
done |
NewerOlder