使用iPhone等设备捕获的图像会在JPG中为EXIF元添加方向标记。因此,当通过Plupload上传时,图像以错误的方向存储在服务器中。我只是想知道在上传到服务器之前是否可以使用Plupload修复Image的方向。
PS。我已经使用了Plupload的<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="http://i.stack.imgur.com/Ee7Xh.jpg">
</div>
<div class="item">
<img src="http://i.stack.imgur.com/uncqm.jpg" alt="Chania">
</div>
<div class="item">
<img src="http://i.stack.imgur.com/Uv3d4.jpg" alt="Flower">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
选项。
答案 0 :(得分:4)
使用preserve_headers添加resize选项:false,修复它,如下所示:
resize: {
quality: 90,
preserve_headers: false
},