
jpeg渐进式编码
Using ImageMagick ($ brew install imagemagick
) certainly helps. E.g.
使用ImageMagick( $ brew install imagemagick
)当然可以。 例如
$ identify -verbose baseline.jpg | grep Interlace
Interlace: None
$ identify -verbose progressive.jpg | grep Interlace
Interlace: JPEG
As you can see baseline.jpg
is baseline, i.e. not progressive, while progressive.jpg
is indeed progressive.
如您所见, baseline.jpg
是基线,即不是渐进式的,而progressive.jpg
的确是渐进式的。
新颖性 (Newness)
Apparently in newer IM (v7.0.3.8+) you should be able to tell without resorting to grep, like so
显然,在较新的IM(v7.0.3.8 +)中,您应该无需诉诸grep就可以知道,就像这样
$ identify -format "%[interlace]" progressive.jpg
See https://www.imagemagick.org/script/escape.php
参见https://www.imagemagick.org/script/escape.php
快速提醒 (A quick reminder)
You can use jpegtran (or MozJPEG) to convert to and fro the baseline/progressive.
您可以使用jpegtran(或MozJPEG )在基线/渐进线之间来回转换。
In MozJPEG the -progressive
option is default, so you need -baseline
apparently (did not work for me with the brew install of MozJPEG). In jpegtran baseline is default, so you need to say -progressive
, as in
在MozJPEG的-progressive
选项是默认的,所以你需要-baseline
显然(对我来说与BREW没有工作安装MozJPEG的)。 在jpegtran中,基线是默认设置,因此您需要说-progressive
,如
$ jpegtran -progressive in.jpg > out.jpg
Tell your friends about this post on Facebook and Twitter
在Facebook和Twitter上告诉您的朋友有关此帖子的信息
jpeg渐进式编码