linux convert命令把gif转jpg的问题

WBOY
Release: 2016-06-23 13:47:19
Original
1923 people have browsed it

convert xx.gif xx.jpg  会把gif的帧拆开为很多独立的xx-1.jpg ,xx-2.jpg, xx-3.jpg。。。。
有没有参数可以只取某一帧的,我的需求很简单就是不想让gif的图片动。取其中一帧的图片即可。

前端简单的限制了不让传gif,但是用户可以把xx.gif 改成xx.jpg上传,实际用getimagesize判断 还是会存成gif。 如果指定存成jpg就出现是上面说的情况。郁闷。。。

求助。。。


回复讨论(解决方案)

已解决。官方有文档说明。
convert ‘images.gif[0]‘ image.png

http://www.imagemagick.org/script/command-line-processing.php

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template