试图让Packery.js使用我正在使用的angularjs应用程序.
出于某种原因,他们似乎并不能很好地在一起.我认为它可能会被isInitLayout错误的设置解决,但仍然没有爱.
这是我的(bootstrap 3)HTML:
<div class="row" class="js-packery"
data-packery-options='{ "itemSelector": ".packery-item",
"gutter": 10,
"columnWidth": 60,
"isInitLayout": false }'>
<artifact class="packery-item" ng-repeat="(index, thing) in data | limitObjectTo:4" thing="thing"></artifact>
</div>
Run Code Online (Sandbox Code Playgroud)
我开始怀疑这是不是因为我使用的神器指令......
我有以下问题:
我在一个新继承的项目中从事维护工作。在这个项目中,开发人员通过以下方式处理图像和视频的元数据:
function getRotationFromFile($realPath) {
$retVal = Array();
$cmd = variable_get("exiftool",null) . "\"$realPath\"" . " | grep -E 'Rotation|Camera Identifier'";
exec($cmd, $output);
foreach ($output as $row){
$key = trim(strstr($row, ':', true));
$value = trim(str_replace(": ", "", strstr($row, ': ')));
$retVal[$key] = $value;
}
return $retVal;
}
Run Code Online (Sandbox Code Playgroud)
正如您所读到的,这个函数调用exec(exiftool..)并检索一些元数据。我知道在 php 中存在exif_read_data,它做了同样的事情。
我的问题是:
先感谢您!